-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TUI] Add validation to create folders #276
[TUI] Add validation to create folders #276
Conversation
ce6c6c7
to
c8369aa
Compare
d16bf05
to
79d89a7
Compare
79d89a7
to
ae40cdc
Compare
TODO: for some reason the right-click autofill is not working on macos. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Joe, thanks a lot for this very extensive (and very cool) PR! I've added a few additional commits to clean up some redundant code in the .tcss
files and template_settings.py
, but otherwise this seems great as is!
One note: As you likely already noticed yourself, create_folders.py
is starting to get a bit bloated (and hard to read!), so I think we'll need to come back and refactor out some of the auxiliary logic down the line (esp. things like validators). We can meet to discuss this once #265 is done and dusted if that works?
e1d0058
to
fb7440a
Compare
…in project config folder.
…lected in `datatype_dict`.
960a6bb
to
79a8917
Compare
* Add validation to subject and session Inputs. * Load datatype checkbox status from a persistent settings file stored in project config folder. * Introduce CreateFolderSettings page to manage the template names. * Format and give functionality to the template settings page. * Add hyperlink, small tidy ups. * Tidy up css and add light-mode for new widgets. * Refactoring and tidy ups on TUI modules. * Handle nonetype templates properly. * Small refactorings and tidy-ups. * Align + tidy up CreateFoldersTab button widgets * Minor cleanups `tui_menu.tcss` * Update project selector menubar to allow vertical scroll bar. * Update datatype dict on mount so that any persistent settings are reflected in `datatype_dict`. * Some more minor cleanup --------- Co-authored-by: b-peri <[email protected]>
* Add validation to subject and session Inputs. * Load datatype checkbox status from a persistent settings file stored in project config folder. * Introduce CreateFolderSettings page to manage the template names. * Format and give functionality to the template settings page. * Add hyperlink, small tidy ups. * Tidy up css and add light-mode for new widgets. * Refactoring and tidy ups on TUI modules. * Handle nonetype templates properly. * Small refactorings and tidy-ups. * Align + tidy up CreateFoldersTab button widgets * Minor cleanups `tui_menu.tcss` * Update project selector menubar to allow vertical scroll bar. * Update datatype dict on mount so that any persistent settings are reflected in `datatype_dict`. * Some more minor cleanup --------- Co-authored-by: b-peri <[email protected]>
This PR makes improvement to the 'Create' tab on the project manager screen that is used to create folders. It adds:
sub-
.As part of the above two general features atr introduced:
require_double_click
. This will run the function it decorates if a double-click signal is detected, otherwise nothing will happen (the logic is the same as previous implementation only generalised).There are no tests except for manual testing. There is no TUI documentation at the moment.