Commit Graph
18 Commits
Author SHA1 Message Date
adrianbonpin f7eda2bfc0 feat: add better-auth api-key plugin, import endpoint, and API key UI 2026-06-28 05:30:48 +08:00
adrianbonpin 32386ce170 fix: resolve all ESLint errors and warnings
- Replace  types with  and proper type casting
- Remove unused imports and variables across multiple files
- Fix React set-state-in-effect by suppressing with eslint-disable
- Wrap handleFile in useCallback to stabilize hook dependencies
- Remove dead MetaItem component from game-page-client
- Add public/sw.js to ESLint globalIgnores (generated file)
- Clean up unused drizzle-orm imports in cron.ts, dashboard-public.ts
- Remove unused _configured flag from r2-client.ts
2026-05-09 16:38:29 +08:00
adrianbonpin f808b8325a feat: wire photo upload/delete changes upward for instant page-wide refresh 2026-05-09 14:00:13 +08:00
adrianbonpin 11d944bef2 fix: profile photo upload field name mismatch ('file'→'photo'), sitemap auto-run only on CLI 2026-05-09 13:55:22 +08:00
adrianbonpin d4a12fe19d feat: add profile photo upload UI component and integrate into settings 2026-05-09 12:58:11 +08:00
adrianbonpin 91de833417 feat: replace fsrVersion with upscalerType/upscalerVersion, add battery & custom system columns 2026-04-27 07:18:43 +08:00
adrianbonpin 0a3738a778 chore: fix lint issues — move OAuth callback to lazy init, remove unused eslint-disable directives 2026-04-26 12:27:24 -05:00
adrianbonpin 36323f3ba3 refactor(settings-accounts-tab): use better-auth SDK, add error handling and OAuth callback
- Replace raw fetch calls with authClient.listAccounts(), linkSocial(), unlinkAccount()
- Accept authMethods, isLoadingAuthMethods, onRefreshAuthMethods as props
- Add error/retry states for failed account fetches
- Detect OAuth callback return (?linked=true) and show success message
- Show single auth method warning only when isLoadingAuthMethods is false
2026-04-26 12:25:23 -05:00
adrianbonpin 2063c0cb83 Task 5: Refactor SettingsSecurityTab
- Accept authMethods, isLoadingAuthMethods, onRefreshAuthMethods as props
- Fix passkey list URL to /api/auth/passkey/list-user-passkeys
- Fix passkey delete/rename to use /api/auth/passkey/delete-passkey and /api/auth/passkey/update-passkey
- Add error feedback with retry UI for passkey loading failures
- Add passkeyMessage state for success/error feedback
- Keep password validation at 10 characters minimum
- Call onRefreshAuthMethods after password and passkey operations
2026-04-26 12:22:06 -05:00
adrianbonpin 45c071692e feat: create SettingsContainer component with shared auth-methods state
- Add SettingsContainer component with vertical sidebar navigation
- Fetch auth-methods from /api/user/me/auth-methods endpoint
- Pass authMethods props to Security and Accounts tabs
- Update profile page to use SettingsContainer instead of inline sub-tabs
- Use LinkIcon alias to avoid conflict with Next.js Link component
2026-04-26 12:17:47 -05:00
adrianbonpin 12bebf5389 fix: unify password minimum length to 10 characters across all flows 2026-04-26 12:13:08 -05:00
adrianbonpin b0688f8f2a Refactor: Remove server state files and update server log handling
- Deleted server-stopped, server.log, and server.pid files to clean up unused state.
- Updated game-page-client.tsx to enhance button accessibility with cursor-pointer class.
- Modified not-found.tsx, page.tsx, and profile/page.tsx for consistent cursor-pointer usage on links.
- Adjusted search/page.tsx and components/auth/*.tsx for improved button interactions with cursor-pointer.
- Refined navbar.tsx for better user experience with cursor-pointer on navigation links.
- Updated settings-security-tab.tsx for passkey management API endpoints and improved error handling.
- Enhanced saved-games components for better user interaction with cursor-pointer on buttons.
- General code cleanup and consistency improvements across various components.
2026-04-26 12:09:37 -05:00
adrianbonpin 18b9e5d0db fix: resolve lint issues in settings components
- Fix react-hooks/set-state-in-effect by inlining data fetch in useEffect
- Replace useCallback-wrapped fetch functions with plain async functions
- Replace window.location.href with window.location.assign()
- Remove unused eslint-disable directives
- Fix double res.json() call in passkey refresh
2026-04-26 11:31:01 -05:00
adrianbonpin dd4f40b50e feat: add linked accounts settings tab with link/unlink 2026-04-26 11:18:05 -05:00
adrianbonpin bea155005f feat: add security settings tab with password and passkey management 2026-04-26 11:11:48 -05:00
adrianbonpin 9b8b4290dc feat: add settings profile sub-tab with name editing 2026-04-26 11:05:22 -05:00
adrianbonpin ae22a65a9f refactor: widen profile to max-w-7xl and remove avatar from header 2026-04-26 11:03:37 -05:00
adrianbonpin b586ceb837 feat: add profile components (header, stats, contributions) 2026-04-26 09:53:56 -05:00