Skip to content

fix(site/src/pages/AgentsPage): add organization filter to compaction settings (otherwise selection broken) - #28559

Merged
tracyjohnsonux merged 16 commits into
mainfrom
compaction-org-filter
Aug 26, 2026
Merged

fix(site/src/pages/AgentsPage): add organization filter to compaction settings (otherwise selection broken)#28559
tracyjohnsonux merged 16 commits into
mainfrom
compaction-org-filter

Conversation

@tracyjohnsonux

@tracyjohnsonux tracyjohnsonux commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Adds an organization picker above the compaction thresholds table on /agents/settings/compaction, matching the organization dropdowns in the agents admin area (OrganizationAutocomplete, as used by the Models and MCP Servers pages). The picker only appears when enabled models span more than one organization, defaults to the default organization, and the table shows the selected organization's models. Save tracking still covers all models so an edited row hidden by the picker is not dropped.

Also removes the organization name text under each model badge (the organization remains in the accessible labels to disambiguate duplicate model names) and changes the model badge size from sm to md.

This PR was generated by Coder Agents on behalf of @tracyjohnsonux.

@tracyjohnsonux tracyjohnsonux changed the title feat(site/src/pages/AgentsPage/components): add organization filter to compaction settings feat(site/src/pages/AgentsPage): add organization filter to compaction settings Aug 25, 2026
@tracyjohnsonux
tracyjohnsonux marked this pull request as ready for review August 25, 2026 18:28

@ibetitsmike ibetitsmike left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Disclosure: This review was researched and written by Xum, an AI coding agent, acting for @ibetitsmike.

Ran the repo frontend-review audit (FE1-FE10) over the merge-base diff (5 files under site/src/).

FE1  PASS  play fns drive org switching, single-org filter hiding, and scoped save/restore
FE2  PASS  generated Organization/ChatModel types; no any / casts / non-null assertions
FE3  PASS  reuses OrganizationAutocomplete + getOrganizationLabel
FE4  PASS  draft-isolation comments explain why, not what
FE5  PASS  loading / error (incl. partial model-load) / empty handled; drafts survive org switches
FE6  PASS  inputs keep provider/model/org context in accessible names
FE7  PASS  standard react-query patterns; no hardcoded keys or direct API calls
FE8  PASS  no effects added; active org + visible models derived in render
FE9  PASS  MockDefaultOrganization / MockOrganization2 / MockChatModel reused
FE10 PASS  findByRole / findByLabelText / getByText only

Notes:

  • The org filter auto-hides when enabled models span a single organization.
  • Switching the filter does not discard unsubmitted drafts or save hidden rows.
  • Removing the visual org subtitle keeps the org name in accessible labels for screen readers; badge sizing sm -> md matches agent settings standards.

Verdict: clean per the FE rule contract; no blocking findings. CI green at e39671ae.

@tracyjohnsonux
tracyjohnsonux enabled auto-merge (squash) August 26, 2026 17:47
@tracyjohnsonux
tracyjohnsonux merged commit 2eee703 into main Aug 26, 2026
26 checks passed
@tracyjohnsonux
tracyjohnsonux deleted the compaction-org-filter branch August 26, 2026 17:50
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 26, 2026
@tracyjohnsonux
tracyjohnsonux requested a review from mtojek August 26, 2026 19:28
@tracyjohnsonux tracyjohnsonux changed the title feat(site/src/pages/AgentsPage): add organization filter to compaction settings fix(site/src/pages/AgentsPage): add organization filter to compaction settings (otherwise selection broken) Aug 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants