Add Tags sections to Stories, CommunityNews, Events, and Resources edit pages#914
Merged
Add Tags sections to Stories, CommunityNews, Events, and Resources edit pages#914
Conversation
Copilot
AI
changed the title
[WIP] Add tags section to edit page for various content types
Add Tags sections to Stories, CommunityNews, Events, and Resources edit pages
Feb 10, 2026
4944713 to
fea1589
Compare
…it pages Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
* add show page image upload * clean up old asset upload * add stimulus with status bar * fix progress bar * fix spec * use turbo-frame top disable broken test * add policy to button * rubocop
803eff6 to
ade1343
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What is the goal of this PR and why is this important?
Stories, CommunityNews, Events, and Resources edit pages lacked UI for assigning categories and sectors, despite models already having the necessary associations and TagFilterable concern. This adds the missing UI following the Workshop edit page pattern.
How did you approach the change?
Controllers (stories, community_news, events, resources):
assign_associationsmethod to convert checkbox params to ActiveRecord associationsset_form_variablesto load@sectorsand@categories_groupedcategory_ids: []andsector_ids: []to strong paramsViews (_form.html.erb for each resource):
Anything else to add?
Resources controller already permitted tag params but lacked the assignment logic and form UI. No model changes required - all associations were already configured.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.