Schedule kind filter + brand-matched day styling + smooth scroll#17
Merged
Schedule kind filter + brand-matched day styling + smooth scroll#17
Conversation
Adds a Kind filter (All / Talk / Lightning / Embassy / Activity) to both the public Schedule page and the admin Schedule Items page, backed by a junk-safe `by_kind` scope that returns all rows when the URL param is missing or unknown. Filter state lives in the query string so filtered URLs are shareable. Day section visuals now mirror blueridgeruby.com/schedule: combined "Wednesday, April 29th" heading with ordinal sup, 4px navy item-table top-border, and plain underlined day-nav links (no pills). Kind filter keeps a pill treatment because its active/inactive state is meaningful.
Adds `scroll-behavior: smooth` on `html`, gated by `prefers-reduced-motion: no-preference` so users who request reduced motion at the OS level keep instant jumps. The day-nav anchor links (and any future in-page anchors) now glide instead of snapping.
|
🚅 Deployed to the ruby-embassy-pr-17 environment in ruby-embassy
|
# Conflicts: # app/views/admin/schedule_items/index.html.erb
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.
Summary
/scheduleand/admin/schedule_items, backed by a junk-safeby_kindscope; filter state lives in the query string so filtered URLs are shareable and refresh-safe.scroll-behavior: smooth(gated byprefers-reduced-motion) so day-nav anchor jumps glide instead of snapping.Test plan
/schedule— click each Kind pill, confirm content filters and URL updates; reload a filtered URL and confirm it persists/schedule?kind=garbage— page renders normally with "All" active (junk-safe)/admin/schedule_items— same Kind filter behavior; empty-state shows when filter excludes everything