Merged
Conversation
Collaborator
Author
|
You can check now sentry test page by localhost:3000/sentry-test |
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.
This pull request introduces several improvements to authentication handling and error monitoring in the client application. The most significant changes are the addition of authentication checks to key pages, enabling queries only for authenticated users, and enhancing error reporting by integrating Sentry for exception tracking. Additionally, the Sentry example API route was removed, and the Sentry test page was simplified and renamed.
Authentication enforcement and query control:
isAuthenticated) to the discovery, feed, profile, and profile edit pages, displaying a prompt to log in if the user is not authenticated. Queries for user data are now only enabled when authenticated, preventing unnecessary API calls. [1] [2] [3] [4] client/src/app/app/profile/[id]/page.tsxR11-R18, client/src/app/app/profile/[id]/page.tsxR27-R35, client/src/app/app/profile/[id]/page.tsxR109-R116, [5] [6] [7] [8]Error monitoring improvements:
Sentry.captureException) across login, register, password reset, feed, profile, and profile edit pages, replacing or supplementing existingconsole.errorstatements to improve error visibility and debugging. [1] client/src/app/app/profile/[id]/page.tsxR51, [2] [3] [4] [5] [6] [7] [8]Sentry example/test simplification:
Dependency adjustments:
import-in-the-middleand updatedrequire-in-the-middledependencies inpackage.jsonto resolve compatibility issues.These changes collectively improve user experience by preventing unauthenticated access to sensitive pages, reduce unnecessary API calls, and enhance error reporting and debugging capabilities.