Skip to content

feat: Add user settings page#131

Draft
BenGWeeks wants to merge 4 commits into
mainfrom
claude/select-mvp-issue-OK0C8
Draft

feat: Add user settings page#131
BenGWeeks wants to merge 4 commits into
mainfrom
claude/select-mvp-issue-OK0C8

Conversation

@BenGWeeks
Copy link
Copy Markdown
Contributor

@BenGWeeks BenGWeeks commented Jan 4, 2026

Create settings page to fix the broken /settings link in the header user menu.

Features:

  • Notification preferences (desktop, email for updates/mentions/assignments)
  • Timezone selection with common timezones
  • Default ticket view configuration
  • Settings persist to localStorage
image

Closes #126

Create settings page to fix the broken /settings link in the header user menu.

Features:
- Notification preferences (desktop, email for updates/mentions/assignments)
- Timezone selection with common timezones
- Default ticket view configuration
- Settings persist to localStorage

Closes #126
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a user settings page to fix the broken /settings link in the header user menu. The page provides a clean interface for managing notification preferences, timezone selection, and default ticket view configuration, with all settings persisting to localStorage.

Key Changes:

  • Created a new settings page at src/app/settings/page.tsx with notification, timezone, and default view preferences
  • Implemented localStorage-based persistence for user settings
  • Added custom toggle components following the application's existing design patterns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/settings/page.tsx Outdated
Comment thread src/app/settings/page.tsx
Comment thread src/app/settings/page.tsx Outdated
Comment thread src/app/settings/page.tsx
Comment thread src/app/settings/page.tsx Outdated
Comment thread src/app/settings/page.tsx
Comment thread src/app/settings/page.tsx
Comment thread src/app/settings/page.tsx Outdated
Comment thread src/app/settings/page.tsx
@BenGWeeks BenGWeeks marked this pull request as draft February 9, 2026 10:07
- Fix default timezone evaluated on server by adding window check
- Deep merge stored settings to preserve nested notification properties
- Remove artificial 300ms save delay, save to localStorage immediately
- Auto-clear save success indicator after 2 seconds
- Ensure user's detected timezone is always in the dropdown list
- Add aria-label to toggle buttons for screen reader accessibility
- Add Space key support to toggle buttons for keyboard accessibility
- Extract toggle offset to named constant

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@akash2017sky
Copy link
Copy Markdown
Collaborator

@EdiWeeks This is ready to test

@EdiWeeks EdiWeeks self-requested a review February 9, 2026 15:32
EdiWeeks
EdiWeeks previously approved these changes Feb 9, 2026
Copy link
Copy Markdown
Collaborator

@EdiWeeks EdiWeeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. @BenGWeeks please merge

@akash2017sky akash2017sky marked this pull request as ready for review February 9, 2026 15:51
Comment thread src/app/settings/page.tsx Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/settings/page.tsx Outdated
Comment thread src/app/settings/page.tsx
Comment thread src/app/settings/page.tsx Outdated
@BenGWeeks
Copy link
Copy Markdown
Contributor Author

Please add a screenshot @EdiWeeks / @akash2017sky

@EdiWeeks
Copy link
Copy Markdown
Collaborator

Screenshot added @BenGWeeks

- Replace hardcoded timezone list with Intl.supportedValuesOf('timeZone')
- Rename localStorage key from devdesk-settings to zapdesk-settings
- Fix misleading copy for default ticket view setting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@EdiWeeks
Copy link
Copy Markdown
Collaborator

All comments resolved, screenshot added @BenGWeeks please merge

@BenGWeeks
Copy link
Copy Markdown
Contributor Author

BenGWeeks commented Feb 10, 2026

Doesn't look like this implementation actually witch on any DevOps notifications or am I missing something? This should amend user settings in DevOps ... if available to amend programmatically.

@BenGWeeks BenGWeeks marked this pull request as draft February 20, 2026 19:07
@BenGWeeks BenGWeeks marked this pull request as draft February 20, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Create user settings page

5 participants