Closed cundus closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
humblfinance-frontend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 5, 2024 0:41am |
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
This update introduces several enhancements across various components of the frontend application. Key changes include improved URL handling for API requests, optimized state management in the UserTable
and WatchListModal
components, and the adoption of new dependencies for the AG Grid library. Additionally, significant refactoring has streamlined data fetching and state updates, ensuring better performance and code maintainability while enhancing user experience.
Files | Change Summary |
---|---|
frontend/app/api/refresh-limit/route.ts |
Modified PATCH function to preserve updated_at timestamp from existedCookie . |
frontend/app/api/user-table/route.ts |
Updated URL construction for GET requests to use a URL object for robustness. |
frontend/components/(dashboard)/portfolio/UserTable.tsx |
Integrated @ag-grid-community for modularity; refactored state initialization and data fetching. |
frontend/components/(dashboard)/portfolio/WatchListModal.tsx |
Implemented debouncing for symbol search input to improve performance. |
frontend/components/(dashboard)/portfolio/hooks/usePortfolio.ts |
Improved API request handling and response processing for clarity. |
frontend/components/(dashboard)/portfolio/hooks/useRefreshLimit.ts |
Removed logging to streamline data fetching function. |
frontend/components/(dashboard)/portfolio/hooks/useWatchlist.ts |
Added return statement for fetched watchlists data to enhance usability. |
frontend/components/(dashboard)/portfolio/types.d.ts |
Changed getWatchlists return type to allow a return of IWatchlist[] | void . |
frontend/package.json |
Added dependencies: @ag-grid-community packages and use-debounce for enhanced functionality. |
sequenceDiagram
participant User
participant WatchListModal
participant API
User->>WatchListModal: Input symbols
WatchListModal->>WatchListModal: Call debounced findSymbols
WatchListModal->>API: Fetch symbols
API-->>WatchListModal: Return symbol data
WatchListModal-->>User: Display symbols
sequenceDiagram
participant User
participant UserTable
participant API
User->>UserTable: Request user data
UserTable->>API: Fetch user table data
API-->>UserTable: Return user data
UserTable-->>User: Display user table
🐰 "In the garden of code, changes bloom bright,
With URLs in order and features just right.
A hop here, a skip there, logic refined,
Our app’s now a treasure, a joy to unwind!"
🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Chores