refactor(web): drop the team agent tab and team memory scopes (P1.1)
Team mode is out of the community edition, but Agents still offered a Team tab, a team agent type and team / organization memory scopes.
This commit is contained in:
@@ -30,7 +30,7 @@ import type { BackendPersona } from './agents/types';
|
||||
/**
|
||||
* Agent Center (UX-Refactor Phase 3B, S09). Agents as explicit, governed work
|
||||
* actors over the B3 agents.json store (/api/agents). C22: category tabs =
|
||||
* All / Personal / Workspace / Team / Autonomous / Archive; Templates (the
|
||||
* All / Personal / Workspace / Autonomous / Archive; Templates (the
|
||||
* legacy persona catalog + groups) is a SIDE AFFORDANCE, not a tab. C23: Run
|
||||
* is a one-shot fleet-spawn — on `workspace_ambiguous` a picker opens and the
|
||||
* run retries with the chosen workspace. Acceptance (§12.9): a user can
|
||||
|
||||
@@ -50,14 +50,16 @@ interface AgentBuilderProps {
|
||||
onCancel: () => void;
|
||||
}
|
||||
|
||||
const AGENT_TYPES: AgentType[] = ['personal', 'workspace', 'team', 'autonomous'];
|
||||
// Team agents and team / organization memory belong to team mode, which the
|
||||
// community edition does not ship.
|
||||
const AGENT_TYPES: AgentType[] = ['personal', 'workspace', 'autonomous'];
|
||||
const AUTONOMY_LEVELS: Array<{ id: AutonomyLevel; hint: string }> = [
|
||||
{ id: 'manual', hint: 'every action waits for you' },
|
||||
{ id: 'guided', hint: 'asks before anything consequential' },
|
||||
{ id: 'medium', hint: 'acts, asks on elevated access' },
|
||||
{ id: 'high', hint: 'acts autonomously within its declared scope' },
|
||||
];
|
||||
const SCOPES: Scope[] = ['personal', 'workspace', 'team', 'organization'];
|
||||
const SCOPES: Scope[] = ['personal', 'workspace'];
|
||||
|
||||
function TogglePill({ active, label, onToggle }: { active: boolean; label: string; onToggle: () => void }) {
|
||||
return (
|
||||
|
||||
@@ -59,7 +59,7 @@ describe('filterAgentsByTab — C22', () => {
|
||||
];
|
||||
|
||||
it('declares exactly the six C22 tabs (Templates is NOT a tab)', () => {
|
||||
expect(AGENT_CENTER_TABS.map(t => t.id)).toEqual(['all', 'personal', 'workspace', 'team', 'autonomous', 'archive']);
|
||||
expect(AGENT_CENTER_TABS.map(t => t.id)).toEqual(['all', 'personal', 'workspace', 'autonomous', 'archive']);
|
||||
expect(AGENT_CENTER_TABS.some(t => t.label.toLowerCase() === 'templates')).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
* - PRD §14.5: ALL eight AgentRunState values map to a StatusBadge tone +
|
||||
* human label (exhaustive Record — adding a state without a badge entry
|
||||
* is a compile error).
|
||||
* - C22: category tabs = All / Personal / Workspace / Team / Autonomous /
|
||||
* Archive (Templates is a side affordance, NOT a tab).
|
||||
* - C22: category tabs = All / Personal / Workspace / Autonomous / Archive
|
||||
* (Templates is a side affordance, NOT a tab). The community edition has no
|
||||
* team mode, so there is no Team tab.
|
||||
* - C27: KPI row keeps the success-rate tile and total/running counts;
|
||||
* "hours saved" is deliberately absent (no data source).
|
||||
*/
|
||||
@@ -26,14 +27,13 @@ export const AGENT_STATE_META: Record<AgentRunState, { label: string; tone: Stat
|
||||
archived: { label: 'Archived', tone: 'neutral' },
|
||||
};
|
||||
|
||||
/** C22 tab vocabulary: 'all' + the four AgentType categories + 'archive'. */
|
||||
/** C22 tab vocabulary: 'all' + the AgentType categories in use + 'archive'. */
|
||||
export type AgentCenterTab = 'all' | AgentType | 'archive';
|
||||
|
||||
export const AGENT_CENTER_TABS: ReadonlyArray<{ id: AgentCenterTab; label: string }> = [
|
||||
{ id: 'all', label: 'All' },
|
||||
{ id: 'personal', label: 'Personal' },
|
||||
{ id: 'workspace', label: 'Workspace' },
|
||||
{ id: 'team', label: 'Team' },
|
||||
{ id: 'autonomous', label: 'Autonomous' },
|
||||
{ id: 'archive', label: 'Archive' },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user