feat/manual-max-file-size-input: Add option to manually input max file size #240
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
Added a toggle to manually input the max file size instead of using the slider.
Major changes:
Files modified:
git_form.jinjaindex.pyprocess_query.pyutils.jsAdded three form values / new params in the POST endpoint in
index.pycalled:use_manual_input: boolmax_file_size_manual: intsize_unit:strThese are also added to the context in
process_query.pyAdded three new inputs elements
checkbox: toggle use of slider vs. manual inputnumber: accepts manual file size in by manually inputing a value of using the increment/decrement triggersradio: switch between accepted file sizes betweenkbormbKeep new form/input states after receving results and submitting form
utils.jscalledrestoreFormStateto keep current input/form values after a successfull POST requestMinor changes
Removed console log in
changePatternfunction ingit_form.jinjaReduced height of the absolute div (shadow effect) at large screens to 90% (
lg:h-90% sm:h-fulll)) using media query in Tailwind to compensate to the slight change in dimesion of the div containg the form due to the addition of the new input elementRemoved unused variable
minpinutils.jsAdded new context values in the home page to pass in default values called
default_file_size_manual,use_manual_inputandsize_unit