-
Notifications
You must be signed in to change notification settings - Fork 0
🧹 Fix broken empty state in profile page #68
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
Open
APPLEPIE6969
wants to merge
1
commit into
main
Choose a base branch
from
fix-profile-empty-state-1566306432302172909
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,3 +39,4 @@ yarn-error.log* | |
| # typescript | ||
| *.tsbuildinfo | ||
| next-env.d.ts | ||
| dev_server.log | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,29 @@ | ||
| npm error code ETIMEDOUT | ||
| npm error errno ETIMEDOUT | ||
| npm error network request to https://registry.npmjs.org/next failed, reason: | ||
| npm error network This is a problem related to network connectivity. | ||
| npm error network In most cases you are behind a proxy or have bad network settings. | ||
| npm error network | ||
| npm error network If you are behind a proxy, please make sure that the | ||
| npm error network 'proxy' config is set properly. See: 'npm help config' | ||
| npm error A complete log of this run can be found in: /home/jules/.npm/_logs/2026-03-12T14_03_17_778Z-debug-0.log | ||
|
|
||
| > study-app@0.1.0 dev | ||
| > next dev | ||
|
|
||
| ▲ Next.js 16.1.6 (Turbopack) | ||
| - Local: http://localhost:3000 | ||
| - Network: http://192.168.0.2:3000 | ||
|
|
||
| ✓ Starting... | ||
| ⚠ The "middleware" file convention is deprecated. Please use "proxy" instead. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy | ||
| ✓ Ready in 3.2s | ||
| ○ Compiling /profile ... | ||
| GET /profile 200 in 5.9s (compile: 5.3s, proxy.ts: 145ms, render: 448ms) | ||
| [31m[auth][error][0m MissingSecret: Please define a `secret`. Read more at https://errors.authjs.dev#missingsecret | ||
| at assertConfig (/app/.next/dev/server/chunks/node_modules_@auth_core_56a04589._.js:513:16) | ||
| at Auth (/app/.next/dev/server/chunks/node_modules_@auth_core_56a04589._.js:5330:204) | ||
| at process.processTicksAndRejections (node:internal/process/task_queues:103:5) | ||
| at async AppRouteRouteModule.do (/app/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.dev.js:5:37866) | ||
| GET /profile 200 in 239ms (compile: 78ms, proxy.ts: 9ms, render: 153ms) | ||
| [31m[auth][error][0m MissingSecret: Please define a `secret`. Read more at https://errors.authjs.dev#missingsecret | ||
| at assertConfig (/app/.next/dev/server/chunks/node_modules_@auth_core_56a04589._.js:513:16) | ||
| at Auth (/app/.next/dev/server/chunks/node_modules_@auth_core_56a04589._.js:5330:204) | ||
| at async AppRouteRouteModule.do (/app/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.dev.js:5:37866) | ||
| GET /api/auth/session 500 in 46ms (compile: 31ms, render: 15ms) | ||
| [31m[auth][error][0m MissingSecret: Please define a `secret`. Read more at https://errors.authjs.dev#missingsecret | ||
| at assertConfig (/app/.next/dev/server/chunks/node_modules_@auth_core_56a04589._.js:513:16) | ||
| at Auth (/app/.next/dev/server/chunks/node_modules_@auth_core_56a04589._.js:5330:204) | ||
| at async AppRouteRouteModule.do (/app/node_modules/next/dist/compiled/next-server/app-route-turbo.runtime.dev.js:5:37866) | ||
| GET /api/auth/session 500 in 17ms (compile: 10ms, render: 7ms) |
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.
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.
Keep
Go Backwired to the local tab state.activeTabonly lives in component state at Line 24. By switching Line 222 toactionHref, this CTA stops explicitly returning users to"overview"and now relies on navigation instead.components/EmptyState.tsxonly invokes the tab-reset logic in theonActionbranch, so this can leave users stuck on the placeholder view.Suggested fix
actionLabel={t("profile.go_back")} - actionHref="/profile" + onAction={() => setActiveTab("overview")}📝 Committable suggestion
🤖 Prompt for AI Agents