feat(ui): convert topup & raise modals to inline cards (v1.14) - #38
Merged
Merged
Conversation
Replace the remaining P1 modals (topup-modal, raise-modal) with inline expanding cards on the wallet page (#topup-card / #raise-card), following the established #share-form-card / #dept-form-card pattern: - wallet buttons expand the card in place; topup and raise cards are mutually exclusive (opening one collapses the other) - preset amounts + custom amount + confirm/cancel kept identical - remove the modal overlays, data-modal-close binding, and the now-unused .modal-actions CSS rule - docs: user-stories v1.14 §1.1 P1 done (only P2 chat-modal remains) - rant 2026-08-17T15:50:05 (UI polish & UE, item B.7 modal→inline first)
8 tasks
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
Convert the remaining P1 modals (topup-modal, raise-modal) to inline expanding cards on the Wallet page, per the host's UI/UE polish instruction (rant
2026-08-17T15:50:05, item B.7 "少弹窗改造(优先)").The wallet "充值 / 申请加额" buttons now expand a card in place (
#topup-card/#raise-card), following the existing#share-form-card/#dept-form-cardinline pattern:data-modal-closebinding, and the now-unused.modal-actionsCSS rule removedAlso syncs docs:
user-stories.md→ v1.14 (§1.1 marks P1 done),ui/README.mdbacklog updated.Related Issue
(no issue — host rant driven:
2026-08-17T15:50:05)Changes
#topup-card行内卡片)、申请加额(raise-modal →#raise-card行内卡片)Tests
cargo test全部通过(1 passed)cargo fmt --check通过(无 Rust 改动)node --check通过;全部$("#id")引用与 HTML id 交叉校验无缺失;无残留 modal 引用Checklist