-
Notifications
You must be signed in to change notification settings - Fork 1
Update UI Dashboard 2 #38
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
PR Code Suggestions ✨Explore these optional code suggestions:
|
Deploying wildcat-dashboard with
|
Latest commit: |
76a6883
|
Status: | ✅ Deploy successful! |
Preview URL: | https://19b75125.wildcat-dashboard.pages.dev |
Branch Preview URL: | https://stefan-update3.wildcat-dashboard.pages.dev |
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 👍
src/pages/quotes/QuotePage.tsx
Outdated
enabled: shouldFetchKeyset, | ||
}) | ||
|
||
let keysetActive = false |
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.
Could this be something like
const keysetActive = keysetData?.data?.active ?? false;
It would also check for null
in addition to undefined
. Basically, anything that's not { data: { active: true } }
would be false, which it looks like you're trying to do here
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.
Thank you ! Yes I will try your approach it seems simpler.
Display whether ebill is paid @mtbitcr |
User description
📝 Description
Depends on Wildcat Keysets being exposed, Wildcat discounted being exposed and Wildcat enable keyset getting merged.
✅ Checklist
Please ensure the following tasks are completed before requesting a review:
npm run lint
or the equivalent linting command.PR Type
Enhancement
Description
Added support for new quote statuses: Canceled and OfferExpired
Displayed discounted amount and keyset information in quote details
Improved keyset activation logic and button state
Enhanced API client and types for keyset info
Changes walkthrough 📝
types.gen.ts
Extend quote types and add keyset info types
src/generated/client/types.gen.ts
tstamp)
sdk.gen.ts
Add keyset info API endpoint
src/generated/client/sdk.gen.ts
AppSidebar.tsx
Add sidebar navigation for new quote statuses
src/components/AppSidebar.tsx
main.tsx
Add routing for new quote statuses
src/main.tsx
QuotePage.tsx
Show discounted amount and keyset info in quote details
src/pages/quotes/QuotePage.tsx
StatusQuotePage.tsx
Support new quote statuses in status page
src/pages/quotes/StatusQuotePage.tsx