-
Notifications
You must be signed in to change notification settings - Fork 16
fix: resolve cancel button loading state and improve cancel dialog UX #144
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
WalkthroughA controller was introduced for the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TradeDetailScreen
participant MostroReactiveButton
participant MostroReactiveButtonController
User->>TradeDetailScreen: Tap "Cancel" button
TradeDetailScreen->>User: Show confirmation dialog ("Yes"/"No")
User->>TradeDetailScreen: Select "No"
TradeDetailScreen->>MostroReactiveButtonController: Call resetLoading()
MostroReactiveButtonController->>MostroReactiveButton: resetLoading()
MostroReactiveButton->>MostroReactiveButton: Reset loading state
Assessment against linked issues
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🧰 Additional context used📓 Path-based instructions (4)`lib/l10n/intl_{en,es,it}.arb`: Add new localization keys to all three ARB files (en, es, it)
📄 Source: CodeRabbit Inference Engine (CLAUDE.md) List of files the instruction was applied to:
`lib/l10n/*.arb`: Use proper ARB metadata for strings with parameters
📄 Source: CodeRabbit Inference Engine (CLAUDE.md) List of files the instruction was applied to:
`lib/**/*.dart`: Use `S.of(context).yourKey` for all user-facing strings
📄 Source: CodeRabbit Inference Engine (CLAUDE.md) List of files the instruction was applied to:
`**/*.dart`: Remove unused imports and dependencies Use `const` constructors where possible
📄 Source: CodeRabbit Inference Engine (CLAUDE.md) List of files the instruction was applied to:
🧠 Learnings (6)📓 Common learningslib/l10n/intl_es.arb (3)lib/l10n/intl_en.arb (2)lib/l10n/intl_it.arb (2)lib/features/trades/screens/trade_detail_screen.dart (2)lib/shared/widgets/mostro_reactive_button.dart (2)⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (11)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
grunch
left a comment
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.
LGTM
fix #132
This PR fixes the issue where, after clicking the Cancel button in the order cancellation modal, the app returned to the previous screen but the Cancel button there remained stuck in a loading state.
Additionally, the modal buttons were updated from Cancel / Confirm to No / Yes to improve UX. The previous labels could be confusing for users canceling an order, as seeing "Cancel" twice might lead them to think they need to cancel the action instead of confirming it.

Summary by CodeRabbit
New Features
Improvements