-
-
Notifications
You must be signed in to change notification settings - Fork 801
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
Simple form integration #1487
base: main
Are you sure you want to change the base?
Simple form integration #1487
Commits on Apr 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a1c670d - Browse repository at this point
Copy the full SHA a1c670dView commit details -
Add #search_simple_form_for with custom builder
Next: - Implement the builder
Configuration menu - View commit details
-
Copy full SHA for 24a4717 - Browse repository at this point
Copy the full SHA 24a4717View commit details
Commits on Apr 9, 2024
-
Add Ransack::Helpers::SimpleFormBuilder
* It inherits from normal Ransack::Helpers::FormBuilder * It composes with an instance of SimpleForm:Builder, so it may delegate methods like SimpleForm "input" Next: - Extract "label_text" - Resolve simple_form dependency
Configuration menu - View commit details
-
Copy full SHA for c0c9721 - Browse repository at this point
Copy the full SHA c0c9721View commit details -
Extracts #label_text to inject as SimpleForm label
This allows SimpleForm to use the correct label like "name_cont" -> "Name contains"
Configuration menu - View commit details
-
Copy full SHA for b929d5b - Browse repository at this point
Copy the full SHA b929d5bView commit details -
Add simple_form as development dependency
It will not be "required" by default. So it doesn't increases gem's size.
Configuration menu - View commit details
-
Copy full SHA for c2ac845 - Browse repository at this point
Copy the full SHA c2ac845View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7be5edb - Browse repository at this point
Copy the full SHA 7be5edbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bd3ed4 - Browse repository at this point
Copy the full SHA 4bd3ed4View commit details -
It checks if SimpleForm#input method is callable. And checks for correct wrapping of a normal text field.
Configuration menu - View commit details
-
Copy full SHA for ad9e367 - Browse repository at this point
Copy the full SHA ad9e367View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1886b10 - Browse repository at this point
Copy the full SHA 1886b10View commit details
Commits on Apr 14, 2024
-
Add spec for 'type guessing' done by SimpleFormBuilder
It should generate boolean fields whe the predicate is boolean. e.g.: _blank, _present, _true, _not_null It should respect the type of the ActiveRecord attribute otherwise. e.g.: Generate the proper date field for date attributes.
Configuration menu - View commit details
-
Copy full SHA for 963337b - Browse repository at this point
Copy the full SHA 963337bView commit details -
Add methods for SimpleForm's attribute type inference
Integrating with existing methods, even those not designated as 'public API', to minimize code duplication and maintain compatibility with future changes.
Configuration menu - View commit details
-
Copy full SHA for 72e65f7 - Browse repository at this point
Copy the full SHA 72e65f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 273e84e - Browse repository at this point
Copy the full SHA 273e84eView commit details