mirror of
https://github.com/games-on-whales/wolfmanager.git
synced 2026-10-15 13:02:05 +00:00
[GH-ISSUE #56] Implement Notification History Functionality #26
Labels
No labels
a11y
bug
enhancement
enhancement
good first issue
pull-request
question
refactor
security
shadcn
tech-debt
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolfmanager#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @salty2011 on GitHub (Jul 21, 2025).
Original GitHub issue: https://github.com/games-on-whales/wolfmanager/issues/56
Description
The notification history feature in the top menu bar is currently implemented as a visual placeholder only. The UI elements are present but the actual notification system and history tracking functionality needs to be implemented.
Current State
Requirements
Backend Implementation
Frontend Implementation
Notification Sources
UI/UX Features
Technical Considerations
Acceptance Criteria
Priority
Medium - Improves user experience but not critical for core functionality
Dependencies
@salty2011 commented on GitHub (Jul 31, 2025):
Status update: Notification History feature introduced an auth regression with Next.js request-scoped APIs
Observed error (from container logs):
Interpretation
cookies(),headers(), anddraftMode()must be invoked within a valid request scope: only inside server components, route handlers, or server actions called during a request.cookies()) is being executed in one of these contexts:Recent change likely implicated
Key areas to inspect in this repo
Immediate remediation checklist (safe changes)
export const dynamic = 'force-dynamic' | 'auto'as needed in route handlers only.cookies()resides exclusively in server files (e.g.,src/lib/auth/server.ts) and is only imported by server components/route handlers. Avoid importing these from client components or shared modules.*.server.tsand*.client.ts(or separate files). Client code must not import the server one.fetch('/api/...')or SWR/React Query; do not import server code.cookies()are insideapp/api/**/route.tsfunctions or server actions (i.e.,(req: NextRequest) => { cookies(); ... }). No top-levelcookies()at module load time.cookies(,headers(usage in non-route files and in any file imported by client components. Move those callers into server-only locations.Diagnostics to capture
/app/.next/server/chunks/2293.jsand6306.jsin source (map via source map/stack traces in dev): likely an imported helper.pnpm devand reproduce locally to capture a readable stack trace with file paths.export const runtime = 'edge'routes usecookies(): on edge runtime, userequest.headers.get('cookie')patterns instead.Follow-up plan