Repository navigation
feat(chat): show a new member the agents for them on their Chat Home (Onboarding & Help, 00483) - #2216
Merged
Conversation
…(Onboarding & Help, 00483) "Agents for you" on Chat Home, the new member half of AGENTS plan #11 (owner decision: no agent run, no AI use). Once the person answered or skipped Your work areas, in their first 14 days in the workspace (the invitation they accepted, else the workspace maker's account), and until they hide it, Home lists 3 to 5 ready-to-use agents from recommendedPresets() for the open brand's site type and their work areas, each with what it does and why it fits. Admins and Managers open its card in Agent Center > Ready to use (#preset-{id}); everyone else (CHAT-21 §K item 51) sees the cards with Ask your Admin. Hide keeps chat_user_prefs.agents_for_you_dismissed_at (00483), saved as home_seen_at is, so it stays hidden on every device. Help updated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
…read-only coverage dismissAgentsForYou writes only the person's own chat_user_prefs row, as saveHomeSeen does, so it stays open while the workspace is read-only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
…member-home Conflicts: help/chat/chat.md (keywords: main's audit card words and this branch's Agents for you words, both kept) and approved-articles.json (regenerated with yarn test -u src/lib/help). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
…member-home Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
…member-home Conflicts: help/chat/chat.md keywords (main's governance words and this branch's Agents for you words, both kept); web/src/lib/chat/schema.test.ts (main's 00482 block and this branch's 00483 block, both kept); supabase/schema.sql (main's, rebuilt with build-schema.sh). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…member-home Conflicts: web/src/components/chat/chat-home.tsx (main's Default view and this branch's Agents for you, which now sits with the other Home blocks, off the Default view); web/src/lib/actions/chat-prefs.test.ts (this branch's dismissAgentsForYou tests and main's saveDefaultHome header, both kept); supabase/schema.sql (main's, rebuilt with build-schema.sh). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s other blocks ansvisor#2183 (00485) starts everyone's Chat Home on a Default view that shows only the greeting, one line and the box, and skips the reads it no longer shows. Agents for you now sits with For you now and New for you: it shows where Home has a focus, and isn't read on the Default view. Help (Use Chat, Choose what Chat focuses on, Pick your work areas) says so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…member-home Co-Authored-By: Claude Opus 5.5 <[email protected]>
…a new member only Owner, 2026-11-06: a person new to the workspace, as Agents for you counts one (Your work areas answered or skipped, in their first 14 days, until they hide it), gets the section on the Default view as well, under the greeting. Everyone else's Default view stays the greeting, one line, the pill and the box. - readAgentsForYouOpen: whether the section is open for the person, with no brand and no agents, shares readAgentsForYou's reads. The Chat page reads it with its other reads and hands ChatHome newMember. - ChatHome reads the agents on the Default view only for that person; a focused Home reads them as before. - Help (Use Chat, Choose what Chat focuses on, Pick your work areas) says so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…gone, one card at a time Owner decision 2026-11-06: in the free trial and the demo, a new member gets the tour's welcome card first; Agents for you waits, unread, until Not now or the tour's end takes the card away. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…member-home # Conflicts: # help/chat/chat.md # supabase/schema.sql
…member-home # Conflicts: # help/chat/chat.md # web/src/lib/help/approved-articles.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The new-member half of AGENTS plan #11 (Onboarding & Help), with the owner's decision: no agent run and no AI use. Chat Home gets an Agents for you section that suggests ready-to-use agents to a person new to the workspace.
When it shows
What it shows
recommendedPresets()for the open brand's site type and the person's work areas, each with what it does and why it fits.#preset-{id}).Hide
chat_user_prefs.agents_for_you_dismissed_at(00483), saved ashome_seen_atis, so it stays hidden on every device.The Default view (owner, 2026-11-06)
readAgentsForYouOpen: their profile, their prefs row and their accepted invitation, with no brand and no agents), alongside its other reads, and handsChatHomenewMember.One card at a time (owner, 2026-11-06): Chat Home's welcome card (00486) and the product tour landed on main. In the free trial and the demo, a new member would have had both cards at once, pushing the box to the bottom of the screen. Now the welcome card comes first: Agents for you waits, unread, while it shows, and follows once Not now or the tour's end takes it away. Everyone else is unchanged.
Help:
help/chat/chat.md("Agents for you"),help/chat/focus.mdandhelp/settings/work-areas.md.Related issue
None. AGENTS plan #11, the new-member half (the brand-added trigger was #2150).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
With
CHAT_AGENTIC=true:00483(schema.sqlalready includes it), then reload the PostgREST schema.Screenshots
Checked locally at 1440 px on 2026-11-06, with the demo account set up as each case and put back afterwards:
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)help/(or no user-visible change) — see help/README.mdDeploy order: migration
00483first, then web. It addschat_user_prefs.agents_for_you_dismissed_at(add column if not exists). It is numbered below main's latest (00491) because the number was reserved earlier; 00485 and 00486 add other columns to the same table, so the order doesn't matter.CI passed on this branch (0a92c88), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/42276594222): schema is up to date; web
format:check, lint, typecheck, all tests andyarn buildpass; server lint,format:checkand all tests pass.🤖 Generated with Claude Code