Skip to content

Add label manager for demo messages#1072

Open
eleven-smg wants to merge 8 commits into
Stellar-Mail:mainfrom
eleven-smg:feat/label-manager-185
Open

Add label manager for demo messages#1072
eleven-smg wants to merge 8 commits into
Stellar-Mail:mainfrom
eleven-smg:feat/label-manager-185

Conversation

@eleven-smg

Copy link
Copy Markdown
Contributor

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 under src/features/demo-admin-dashboard/, following the same structure as the existing snooze/ and templates/ features.

What's included

  • labels/types.tsDemoLabel, LabeledDemoMessage, and LabelUsage types.
  • 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.
  • Exposed the public API from the feature index.ts.

Notes

  • All data is deterministic and synthetic; nothing references real mail, addresses, or secrets.
  • Label ids are derived from names, so they stay stable and case-insensitive.

Closes #185

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.

Create label manager for demo messages

1 participant