Skip to content

feat(aggregator): provider-level selection in shared explorer computations (#9853 item 4) - #16672

Merged
dezren39 merged 3 commits into
mainfrom
xaltha/9853-provider-filter
Nov 29, 2026
Merged

dezren39 merged 3 commits into
mainfrom
xaltha/9853-provider-filter

Conversation

@dezren39

@dezren39 dezren39 commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Refs #9853 — scope item 4 (provider-level selection/filtering) for the Muse Spaces parity set.

Slice

#9852 item 4 shipped provider multi-select only inside render.ts's inline browser script, which no other surface can import — the 2026-11-27 park on #9853 recorded that no Spaces source exists in this repo, so parity has to travel through the shared, browser-safe computations module (pm-stack/aggregator/src/assets/aa-explorer-computations.js, "one data load, both presentations"). This PR moves provider selection into that module:

  • providerFacets(rows) — one entry per distinct provider id with display name (falls back to the id) and row count, sorted by display name then id: the chip list every surface renders identically.
  • filterByProviders(rows, selected) — accepts an array, a Set, or the { id: truthy } map shape render.ts uses (S.providers); empty/null selection keeps every row (the providerAny=false semantics); while a selection is active, rows with no provider id are hidden, mirroring S.providerAny && !S.providers[e.provider].

Plus matching .d.ts declarations and Bun tests covering facets, empty-selection, and all three selection shapes.

Verification

Full diff read by the authoring lane. The module's Bun suite runs green with the new tests: 40 pass / 0 fail (bun test test/aa-explorer-computations.test.ts, run against the exact file contents in this PR), including the 3 new #9853 tests. Per Drew's rule CI is not a gate; the diff is the verification.

Remaining on #9853: wiring these helpers into the actual Spaces surfaces once their sources are identified (recorded on the issue 2026-11-27), and Carbon display parity on those surfaces (item 5 data already lands via #15844 on the PM-stack side).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-29T08:42:13Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "527a60e8d927648df2163ac21c0f5e7757e0186c"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 23 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 60c5b093-9086-4a8d-b0ef-f20844abca25
Commits

Reviewing files that changed from the base of the PR and between a8de063 and b9d3372.

Files selected for processing: 3

  • pm-stack/aggregator/src/assets/aa-explorer-computations.d.ts
  • pm-stack/aggregator/src/assets/aa-explorer-computations.js
  • pm-stack/aggregator/test/aa-explorer-computations.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 2254137 into main Nov 29, 2026
2 checks passed
@dezren39
dezren39 deleted the xaltha/9853-provider-filter branch November 29, 2026 08:42
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