29-feature/swearjar/[id]/view-page#31
Merged
Merged
Conversation
…n `GetSwearJarsByUserId` method
…T `/swearjar`, provided a query parameter is provided - rest pkg: Update `swearjar` route and add `GetSwearJarById` method in handler - swearjar pkg: Update Service and Repository interfaces to include `GetSwearJarById` method - mongodb pkg: Implement `GetSwearJarById` method in MongoRepository
…mically based on the presence of a `swearJarId` query parameter
- Previously, the endpoint did not check for an `id` query parameter.
- Now, if an `id` is provided, the endpoint calls `/swearjar?id={id}` to retrieve a specific swear jar
- If no `id` is provided, it calls `/swearjar` to retrieve swear jars by user ID
- Corresponding backend logic differentiates handling based on the presence of `swearJarId`
…tch-fix to recharts resolve disappearing grid line issue
- Added error handling with `ErrorAlert` to display messages when data fetching fails
…render BreadcrumbHeader, SwearJarTrends, and SwearJarInfo components
…Info and SwearJarTrends buttons
… page to include it
Closed
Owner
Author
|
|
Owner
Author
|
disappearing grid lines in recharts issue - recharts/recharts#1286 |
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.
Description
This PR introduces the 'swearjar/[id]/view' page, along with key frontend and backend components necessary for the functionality of the SwearJar system. It includes updating the existing
/api/swearjarnextjs endpoint, writing new golang endpoints, resolving mobilesticky hoverissue, and addressing visual inconsistencies in charts.SwearJar View Page
Next.js Backend
/api/swearJarto/api/swearjarfor consistency/api/swearjarto fetch details of a specific SwearJar if anidquery parameter is presentidquery parameter.idis provided, the endpoint calls/swearjar?id={id}to retrieve a specific swear jaridis provided, it calls/swearjarto retrieve swear jars by user IDGolang Backend
/swearjarto fetch Swear Jar by it's ID, provided a query parameter is provided. Otherwise, it will retrieve a user's swearjar listrestpackage: Updateswearjarroute and addGetSwearJarByIdmethod in handlerswearjarpackage: Update Service and Repository interfaces to includeGetSwearJarByIdmethodmongodbpackage: ImplementGetSwearJarByIdmethod in MongoRepositoryGetUserIdFromCookiemethod and implemented inGetSwearJarsByUserIdmethodMisc
swearjar/layout, which affects all pages within that folder