Skip to content

Conversation

@paustint
Copy link
Contributor

@paustint paustint commented Feb 8, 2026

When users change org groups, auto-select the most recently used org from that group, otherwise auto-select the first org in the list

Ref: resolves #1434

Copilot AI review requested due to automatic review settings February 8, 2026 19:00
Copy link

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

Adds “recent org per org group” persistence so that when users switch org groups the UI auto-selects the most recently used org for that group (falling back to the first org).

Changes:

  • Persist a mapping of { groupId -> lastSelectedOrgId } in localStorage.
  • Update org-group change handlers to prefer the recently selected org for that group, otherwise select the first available org.
  • Wire the dropdown to save the current selection so it can be restored on future group switches.

Reviewed changes

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

File Description
libs/shared/ui-core/src/orgs/OrgsDropdown.tsx Persists selected org as “recent” and uses it when switching groups.
libs/shared/ui-app-state/src/lib/ui-app-state.ts Introduces storage key + helpers to save/load “recent org per group”.
libs/features/org-groups/src/lib/OrgGroups.tsx Applies “recent org first, else first org” selection logic when changing groups on the org-groups page.

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

When users change org groups, auto-select the most recently used org
from that group, otherwise auto-select the first org in the list

Ref: resolves #1434
Copy link

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 3 out of 3 changed files in this pull request and generated 2 comments.


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

@paustint paustint merged commit 1dc4021 into main Feb 9, 2026
15 checks passed
@paustint paustint deleted the feat/1434 branch February 9, 2026 15:27
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.

1 participant