Conversation
|
Cursor Agent can help with this pull request. Just |
- Add status field to drinks schema with 'published' | 'unpublished' type - Generate and apply database migration for status field - Add getPublishedDrinks() function to filter published drinks - Update public routes to show only published drinks - Update search to index only published drinks - Update admin UI to display and edit status field - Add status column to admin drinks list with visual indicator Co-authored-by: Justin Hall <[email protected]>
320bd53 to
cb4f6b3
Compare
Co-authored-by: Justin Hall <[email protected]>
Increase admin container from max-w-5xl to max-w-7xl to accommodate the status column without overflowing. Co-Authored-By: Claude Opus 4.6 <[email protected]>
The native <select> looked bad on the dark admin UI. Replaced with a data-driven segmented toggle that visually matches the status pill badges in the drinks table. Adding future statuses (e.g. draft) is a one-line addition to the STATUS_OPTIONS array. Co-Authored-By: Claude Opus 4.6 <[email protected]>
wKovacs64
added a commit
that referenced
this pull request
Feb 22, 2026
The publish status feature (#261) filtered unpublished drinks from listings, tags, and search but not from the individual drink route. Direct URL access still served unpublished drinks. Add a status check so unpublished drinks return 404. Co-Authored-By: Claude Opus 4.6 <[email protected]>
2 tasks
wKovacs64
added a commit
that referenced
this pull request
Feb 22, 2026
fix: return 404 for unpublished drinks on public detail page The publish status feature (#261) filtered unpublished drinks from listings, tags, and search but not from the individual drink route. Direct URL access still served unpublished drinks. Add a status check so unpublished drinks return 404. Co-authored-by: Claude Opus 4.6 <[email protected]>
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.
Implement published/unpublished functionality for drinks to control their visibility on public routes.
This PR introduces a
statusfield to thedrinksschema, allowing drinks to be marked as 'published' or 'unpublished'. Public-facing routes (home, tags, search) now only display published drinks, while admin routes continue to show all drinks, including a new status column and a dropdown for managing the status in the drink form.