Add label manager for demo messages#1072
Open
eleven-smg wants to merge 8 commits into
Open
Conversation
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
Adds a label manager for the Demo Admin Dashboard so maintainers can create, apply, and clean up labels across demo messages. It lives in a self-contained
labels/module undersrc/features/demo-admin-dashboard/, following the same structure as the existingsnooze/andtemplates/features.What's included
labels/types.ts—DemoLabel,LabeledDemoMessage, andLabelUsagetypes.labels/labelNormalization.ts— pure helpers for name normalization, stable id generation, add/remove, usage counts, and unused-label detection.labels/labelFixtures.ts— deterministic demo labels and labeled messages using the reserved demo sender handles.labels/LabelManager.tsx— UI for creating labels, applying or removing them per message, reviewing usage counts, and surfacing unused labels for cleanup.labels/labelNormalization.test.ts— unit coverage for the helpers.labels/README.md— short overview of the module.index.ts.Notes
Closes #185