-
Notifications
You must be signed in to change notification settings - Fork 12
feat: creator token is live dialog #3008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a "Creator token is live" dialog feature that displays when someone buys a user's token for the first time. The implementation subscribes to Nostr event kind 31175 (CommunityTokenDefinitionEntity) globally and shows a celebration dialog to the token creator when the first purchase occurs.
Key Changes:
- Added localization strings for the new dialog across 11 languages
- Implemented a new dialog component with gradient styling and share functionality
- Created an event handler to detect first-buy events and trigger the dialog
- Extended GradientBorderPainter to support background colors
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/l10n/app_*.arb | Added localized title and subtitle strings for the creator token live dialog |
| lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart | New dialog component displaying creator token live notification with share functionality |
| lib/app/features/tokenized_communities/providers/community_token_definition_handler.r.dart | Event handler that detects first-buy events and triggers the dialog via UI event queue |
| lib/app/features/ion_connect/providers/global_subscription.r.dart | Registered kind 31175 (CommunityTokenDefinitionEntity) in global subscription |
| lib/app/features/ion_connect/providers/events_management_service.r.dart | Registered the community token definition handler in the events management service |
| lib/app/components/gradient_border_painter/gradient_border_painter.dart | Extended painter to optionally render background color behind gradient border |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Outdated
Show resolved
Hide resolved
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Outdated
Show resolved
Hide resolved
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Show resolved
Hide resolved
lib/app/features/tokenized_communities/providers/community_token_definition_handler.r.dart
Outdated
Show resolved
Hide resolved
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Show resolved
Hide resolved
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Show resolved
Hide resolved
lib/app/features/tokenized_communities/providers/community_token_definition_handler.r.dart
Outdated
Show resolved
Hide resolved
1e05538 to
8beef78
Compare
8beef78 to
c3310d0
Compare
578e112 to
1a54226
Compare
1a54226 to
777774f
Compare
777774f to
8508697
Compare
a649d11 to
0f31d88
Compare
9fab019 to
912b8a2
Compare
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Outdated
Show resolved
Hide resolved
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Outdated
Show resolved
Hide resolved
lib/app/features/tokenized_communities/views/creator_token_is_live_dialog.dart
Outdated
Show resolved
Hide resolved
16e2b2e to
46c80d2
Compare
f02fce8
f02fce8 to
1081eb8
Compare
1081eb8 to
407cbac
Compare
Description
Task ID
ION-4905, ION-5027
Type of Change