Repository navigation
Watchface page: a "more" menu with Unpublish and Delete for the owner and moderators - #113
Merged
Merged
Conversation
$canRemove mirrors the watchfaces deleteRule (owner, or users.moderator), so the menu never offers what the server refuses. Deleting from the showcase page goes back to /. The menu is the place for the face's further actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CQSU8QaiMzNR2mxbb6VVG9
Owner and moderators can take a published face off the market; unpublishing from the showcase page reloads the market and goes back to /, as a delete does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CQSU8QaiMzNR2mxbb6VVG9
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.
A moderator (the
users.moderatorflag, set by a superuser in the PocketBase admin UI) can now take down anyone's watchface from its showcase page.$canModerate(market model): the owner or a moderator. It's the same test the backend'swatchfacesrules use, so the menu never offers what the server would refuse./, since a moderator can't even view an unpublished face. The menu is meant to collect the face's further actions.Backend:
fmc_pocketbasemigration1755200000_moderator_faces.js. A moderator may delete any face, and their only update ispublished: falsewith no other field. Already deployed, and checked against a local PocketBase 0.39.8: owner, moderator and stranger, each allowed and refused case.tests/editor-rotate.browser.test.tsfails onmainas well. It's unrelated.🤖 Generated with Claude Code
https://claude.ai/code/session_01CQSU8QaiMzNR2mxbb6VVG9