Skip to content

feat(web): group sidebar bots into My Bots, Others, and Closura - #231

Open
nullStack65 wants to merge 1 commit into
release/native-0.1.10from
feat/sidebar-bot-groups-closura
Open

nullStack65 wants to merge 1 commit into
release/native-0.1.10from
feat/sidebar-bot-groups-closura

Conversation

@nullStack65

Copy link
Copy Markdown
Owner

Summary

Addresses Kameron's mobile UX feedback on sidebar standing-bot grouping:

"My bots should show my CoS, others should show Jeff's, shared should be called Closura and show the company bots."

Changes

  1. apps/web/src/components/bots/botPresence.ts (partitionBotGroups):
    • Returns { mine, others, shared } instead of { mine, shared }.
    • shared ("Closura"): receives all company/non-personal standing bots (audience === "shared", "agent-only", or missing) — even when viewer (founderInboxOwner) is unset, so ARC Ops, PR Reviewer, and Gardening never leak into My Bots on fresh mobile sessions.
    • mine ("My Bots"): receives the viewer's own personal bots (audience === viewer, or personal bots when viewer is unset).
    • others ("Others"): receives the other founder's personal bots (CoS (Jeff), Personal Finance for Kameron), while preserving #213's isHiddenFromFounder asymmetric visibility so Jeff still never lists Kameron's private bots.
  2. apps/web/src/components/Sidebar.tsx:
    • Adds the Others SidebarBotsGroup (testId="sidebar-other-bots-group").
    • Renames Shared Bots display label to Closura (keeping groupId="Shared Bots" and testId="sidebar-shared-bots-group" so persisted collapse state and existing selectors remain stable).
  3. Tests & i18n catalogs:
    • Updated apps/web/src/components/bots/botPresence.test.ts and apps/web/src/components/Sidebar.founder-inbox.browser.test.tsx.
    • Regenerated apps/web/src/i18n/translations/*.json via gt generate + vp fmt so i18n:check stays green across all 10 locales.

Verification

  • pnpm exec vp fmt --check on all edited TS/TSX/JSON files: pass
  • pnpm exec effect-tsgo tsrs -p apps/web/tsconfig.json --noEmit: 0 errors in touched files
  • Full web/browser vitest + i18n:check run on T3 fork ARC CI (host is Node 22).

Deploy: fleet

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • 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

@nullStack65

Copy link
Copy Markdown
Owner Author

Independent full review (Claude family; author is Gemini) of head 526b6a58c6fe against base b1827643e030. No blocking findings; two nits.

Verified in a detached worktree: partitionBotGroups unit tests and Sidebar.logic.test.ts (113 passed), Sidebar.founder-inbox.browser.test.tsx (2 passed, Jeff and Kameron), effect-tsgo on packages/client-runtime (no errors) and apps/web (9 errors in Sidebar.logic.test.ts and botOrgTree.test.ts, identical to the base commit, so not from this PR), and gt generate reproduces the new Closura and moved Others catalog keys.

{
  "reviewed_base": "b1827643e0301a6da4178d2dcd14afca1990927f",
  "reviewed_head": "526b6a58c6febc5329a5b95b842899bf6f4d49e2",
  "reviewer": "Claude Sonnet 5.5, Claude Code",
  "author_session": "t3-thread:6a6b870263499e5c3c4ceec5efb20d31b46884a74e0c45beedb1a4cddb9ac991",
  "reviewer_session": "claude-sonnet-5-5-pr231-526b6a58-20261126T085446Z",
  "fresh_context": true,
  "review_kind": "full",
  "round_id": "claude-sonnet-5-5-pr231-526b6a58-20261126T085446Z",
  "intent": [
    "Sidebar label Shared Bots is renamed to Closura in the UI and in all 10 i18n catalogs, with no duplicate keys and the Others key reused",
    "Non-personal bots (audience shared, agent-only or missing, such as ARC Ops, PR Reviewer and Gardening) land in Closura even when founderInboxOwner is unset",
    "My Bots lists only the viewer's own personal bots (all personal bots when no viewer is set); Others lists the other founder's personal bots",
    "Jeff never sees Kameron's personal bots because isHiddenFromFounder is still applied first (#213 asymmetric visibility preserved)",
    "Collapsed-state storage key stays group:Shared Bots, so existing saved collapse state for Closura survives the rename"
  ],
  "prior_findings": [],
  "findings": [
    {
      "id": "F1",
      "severity": "nit",
      "outcome": "open",
      "file": ".agents/skills/test-t3-app/references/feature-map.md",
      "line": 40,
      "summary": "sidebar.bots-group still describes 'My Bots' and 'Shared Bots' groups; the browser test title at Sidebar.founder-inbox.browser.test.tsx:74 also still says Shared Bots. Update both to My Bots, Others and Closura."
    },
    {
      "id": "F2",
      "severity": "nit",
      "outcome": "open",
      "file": "apps/web/src/components/bots/botPresence.ts",
      "line": 114,
      "summary": "The '|| isSharedBotThread(thread)' check in partitionBotGroups is now redundant: audience 'shared' is already non-personal, so '!isPersonal' covers it. Dropping it would let isSharedBotThread be deleted."
    }
  ]
}

This branch has not been deployed

No deployments
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