-
Notifications
You must be signed in to change notification settings - Fork 0
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
29-feature/swearjar/[id]/view-page #31
Merged
Merged
Conversation
This file contains 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
…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
|
disappearing grid lines in recharts issue - recharts/recharts#1286 |
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/swearjar
nextjs endpoint, writing new golang endpoints, resolving mobilesticky hover
issue, and addressing visual inconsistencies in charts.SwearJar View Page
Next.js Backend
/api/swearJar
to/api/swearjar
for consistency/api/swearjar
to fetch details of a specific SwearJar if anid
query parameter is presentid
query parameter.id
is provided, the endpoint calls/swearjar?id={id}
to retrieve a specific swear jarid
is provided, it calls/swearjar
to retrieve swear jars by user IDGolang Backend
/swearjar
to fetch Swear Jar by it's ID, provided a query parameter is provided. Otherwise, it will retrieve a user's swearjar listrest
package: Updateswearjar
route and addGetSwearJarById
method in handlerswearjar
package: Update Service and Repository interfaces to includeGetSwearJarById
methodmongodb
package: ImplementGetSwearJarById
method in MongoRepositoryGetUserIdFromCookie
method and implemented inGetSwearJarsByUserId
methodMisc
swearjar/layout
, which affects all pages within that folder