-
Notifications
You must be signed in to change notification settings - Fork 25
Frontend changes, Made compatible with new contracts. #67
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
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces significant enhancements across the application, including robust role-based access control, paginated and role-aware CAT listing, improved contract ABIs, dynamic fee calculations, and enforced light theme defaults. Key UI components now support network and role filtering, while contract interactions feature retry logic and dynamic formatting. Server-side rendering is enabled. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant InteractionClient
participant Contract
participant UI
User->>InteractionClient: Connect wallet
InteractionClient->>Contract: Fetch user roles (admin/minter) with retry
Contract-->>InteractionClient: Return role status
InteractionClient->>Contract: Fetch token decimals with retry
Contract-->>InteractionClient: Return decimals
InteractionClient->>Contract: calculateUserAmountAfterFees(amount)
Contract-->>InteractionClient: Return net amount after fees
InteractionClient->>UI: Update UI with role-based controls, formatted values, and fee info
User->>InteractionClient: Attempt admin/minter action
alt User has required role
InteractionClient->>Contract: Execute action
else Not authorized
InteractionClient->>UI: Show "Admin Only" or "Minter Role Required" message
end
sequenceDiagram
participant User
participant MyCATsPage
participant FactoryContract
participant CATContract
participant UI
User->>MyCATsPage: Load page / change filter / paginate
MyCATsPage->>FactoryContract: Fetch total CAT counts by role and chain
FactoryContract-->>MyCATsPage: Return counts
MyCATsPage->>FactoryContract: Fetch CAT addresses for page (by role, chain, paginated)
FactoryContract-->>MyCATsPage: Return CAT addresses
MyCATsPage->>CATContract: Batch fetch token details (name, symbol, etc.) with retry
CATContract-->>MyCATsPage: Return details
MyCATsPage->>UI: Render CAT cards with network and role badges, pagination controls
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (17)
✨ Finishing Touches
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 (
|
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Refactor
Style
Chores