Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

feat: publish status#261

Merged
wKovacs64 merged 5 commits intomainfrom
cursor/drink-publish-status-bdc2
Feb 22, 2026
Merged

feat: publish status#261
wKovacs64 merged 5 commits intomainfrom
cursor/drink-publish-status-bdc2

Conversation

@wKovacs64
Copy link
Owner

Implement published/unpublished functionality for drinks to control their visibility on public routes.

This PR introduces a status field to the drinks schema, 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.


Open in Web Open in Cursor 

@cursor
Copy link

cursor bot commented Feb 21, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@wKovacs64 wKovacs64 marked this pull request as ready for review February 21, 2026 19:56
@wKovacs64 wKovacs64 changed the title Drink publish status feat: publish status Feb 21, 2026
- 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]>
@cursor cursor bot force-pushed the cursor/drink-publish-status-bdc2 branch from 320bd53 to cb4f6b3 Compare February 21, 2026 21:44
cursoragent and others added 4 commits February 21, 2026 21:48
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 wKovacs64 merged commit 2f59ece into main Feb 22, 2026
8 checks passed
@wKovacs64 wKovacs64 deleted the cursor/drink-publish-status-bdc2 branch February 22, 2026 01:21
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]>
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]>
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