HOLD: Add display_in_video_gallery flag to split Tutorials and Video Gallery#1228
Open
HOLD: Add display_in_video_gallery flag to split Tutorials and Video Gallery#1228
Conversation
d1cbee0 to
ee7b6f3
Compare
- Add type column to tutorials table for STI (Single Table Inheritance) - Rename Tutorial to VideoLibrary base class, keeping table_name as 'tutorials' - Create Tutorial, Podcast, Intro subclasses - Add scopes: :tutorials, :podcasts, :intros to VideoLibrary - Update tutorials controller: - Index action shows Tutorial type only - Add video_library action shows all types - Add /video_library route - Update navigation menus: - Help → "Tutorials" (Tutorial type only) → tutorials_path - Community → "Video Library" (all types) → video_library_path - Add type selector dropdown in form (admin-only) - Create video_library and video_library_lazy views - Update home video gallery controller to use VideoLibrary - Update factory with :video_library base, :tutorial/:podcast/:intro subclasses Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Rename Home::VideoGalleryController to Home::VideoLibraryController - Rename home/video_gallery views directory to home/video_library - Update home namespace routes: video_gallery → video_library - Update controller to render home/video_library/index Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Add model specs for .tutorials, .podcasts, .intros scopes - Add request specs for tutorials#index (Tutorial type only) and tutorials#video_library (all types) - Add routing specs for /video_library route - Add home video library controller specs: - All content types displayed with youtube_url - Excludes records without youtube_url - Correct ordering by position then created_at Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
ee7b6f3 to
feb2e00
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.
Summary
display_in_video_galleryboolean flag to tutorials (default: false)Changes
display_in_video_gallerycolumn with indexvideo_galleryandnot_video_gallery/video_galleryroute points totutorials#index?video_gallery=true:video_gallerytraitTest plan
bundle exec rails db:migrate🤖 Generated with Claude Code