Skip to content
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

Generate fields/rich_text/form with documentation #2693

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

seanpdoyle
Copy link
Contributor

All form partials include guiding documentation atop the template files. Those comments are valuable additions, since view template overrides installed via generators will include them.

This commit updates the new fields/rich_text/form partial to include documentation.

On the test side, this commit also includes changes to view specs to generate Form Builders using real Action View form builders and view helpers.

Removing code that mimicked that builder instantiation uncovered an error in a how the Rich Text form partial coverage expected the <trix-editor> element's corresponding <input type="hidden"> element generated its [id].

@seanpdoyle seanpdoyle force-pushed the rich-text-documentation branch 2 times, most recently from 2c0b08c to c61961e Compare October 25, 2024 15:17
@seanpdoyle seanpdoyle requested a review from pablobm November 1, 2024 14:18
All form partials include guiding documentation atop the template files.
Those comments are valuable additions, since view template overrides
installed via generators will include them.

This commit updates the new `fields/rich_text/form` partial to include
documentation.

On the test side, this commit also includes changes to view specs to
generate Form Builders using *real* Action View form builders and view
helpers.

Removing code that mimicked that builder instantiation uncovered an
error in a how the Rich Text form partial coverage expected the
`<trix-editor>` element's corresponding `<input type="hidden">` element
generated its `[id]`.
@seanpdoyle seanpdoyle force-pushed the rich-text-documentation branch from c61961e to 9f1efce Compare November 1, 2024 14:19
Copy link
Collaborator

@pablobm pablobm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! 🚀 Those view helpers are always tricky and a bit of unknown territory. Glad to see them coming back to convention.

@seanpdoyle seanpdoyle merged commit 010ea1c into main Nov 1, 2024
11 checks passed
@seanpdoyle seanpdoyle deleted the rich-text-documentation branch November 1, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants