Skip to content

feat(chat): start Chat Home on a Default view with just the greeting, one line and the box (00485) - #2183

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:feature/chat-default-home
Nov 6, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:feature/chat-default-home

Conversation

@cihan-gyk

@cihan-gyk cihan-gyk commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

People found Chat Home's first screen busy: For you now, the What's new line, Start with a question and New for you, all at once. Customer feedback said the same about Chat's first open. This PR makes Home start on a calm Default view, the owner-approved mockups 1b and 2b.

Chat Home, Default view (1b)

  • Shows only the greeting, one line, the focus pill and the chat box, a little lower on the page with a larger title.
  • The line still says how many chats need you. When none do, it says a competitor's move ("Morning Ritual Co.'s mention rate rose 11 points this week."), from the Competitors area's facts.
  • The pill reads Default view · Edit.
  • On this view Home skips the reads it no longer shows: the shortcut counts, Since you left and What's new.

Focus picker (2b)

  • Default: simple start sits on top as a full-width card, picked at the start.
  • Under it are "Or tailor Home to what you work on" and the eight areas.
  • Picking an area turns Default off; Default clears the picks.
  • Continue keeps either one. Skip for now and Cancel work as before.
  • Work-area pre-picks are gone: Default is the starting pick now. focusFromWorkAreas / WORK_AREA_FOCUS are removed, so the page no longer reads profiles.work_areas.

Existing users (owner's decision)

  • Everyone starts on the Default view, people who picked areas before too.
  • Their areas are kept. Edit opens the picker with them ticked, so Continue brings the focused Home back in one step.

Settings › General › Your focus

  • Default view is first.
  • Ticking an area tailors Home; clearing every area returns to Default.

Data: migration 00485_chat_home_view.sql adds chat_user_prefs.home_view text not null default 'default' check (home_view in ('default','focus')).

  • saveChatFocus sets focus for non-empty picks, and default when empty.
  • The new saveDefaultHome changes only the view and keeps the focus.
  • The composer's / menu still lists the focus's skills first.

Related issue

None. Owner feedback, 2026-11-06.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Apply 00485 (bash supabase/build-schema.sh is already run, so schema.sql includes it), then reload the PostgREST schema.
  2. Open /dashboard/chat. Home shows only the greeting, one line, Default view · Edit and the box, centred.
  3. Select Edit. Default is picked on top. Pick Competitors and Content and select Continue. Home shows For you now, What's new and New for you, with Focused on Competitors and Content · Edit.
  4. Select Edit, then Default, then Continue. Home is back to the Default view, and chat_user_prefs.focus still holds {comp,content}.
  5. Select Edit again. Competitors and Content are ticked.
  6. Open Settings. Your focus shows Default view ticked. Tick an area: Home follows it.
  7. Check dark mode and 1024 px.

Screenshots

Checked locally in light and dark, at 1440 and 1024 px: the Default view, the picker with Default on top, and Settings › Your focus.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR
  • Help article updated under help/ (or no user-visible change) — see help/README.md

Deploy order: migration 00485 first, then web.

CI passed on this branch (6b2b492), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/42193078197): schema is up to date; web format:check, lint, typecheck, all tests and yarn build pass; server lint, format:check and all tests pass.

🤖 Generated with Claude Code

… one line and the box (00485)

Chat Home opened with every block the focus adds (For you now, What's new,
Start with a question, New for you), and people found that first screen
busy. Home now starts on a Default view: the greeting, one line (what
needs you, or a rival's move), the pill and the box, lower on the page
with a larger title. It skips the reads it no longer shows.

The focus picker offers "Default: simple start" on top, picked at the
start; an area turns it off and Default clears the picks. Everyone starts
on the Default view, people who picked areas before too: their focus is
kept (chat_user_prefs.home_view, 00485), so Edit ticks it and Continue
brings their Home back. Settings > General > Your focus lists Default
view first. Work-area pre-picks are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the needs-migration Adds or edits a migration — apply it to the hosted database label Nov 6, 2026
gkhngyk
gkhngyk previously approved these changes Nov 6, 2026

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

Merged main after #2150, #2182 and #2184; schema.sql rebuilt (00482 + 00485), en.json and the Supabase types keep both sides, approved-articles.json regenerated.

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@gkhngyk
gkhngyk merged commit b5f631d into ansvisor:main Nov 6, 2026
12 checks passed
cihan-gyk added a commit to cihan-gyk/ansvisor that referenced this pull request Nov 6, 2026
schema.sql rebuilt with 00485 (ansvisor#2183) and 00489; approved-articles.json
regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
cihan-gyk added a commit to cihan-gyk/ansvisor that referenced this pull request Nov 6, 2026
…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]>
gkhngyk pushed a commit that referenced this pull request Nov 6, 2026
gkhngyk pushed a commit that referenced this pull request Nov 7, 2026
…(Onboarding & Help, 00483) (#2216)

* feat(chat): show a new member the agents for them on their Chat Home (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

* test(chat): list hiding Agents for you as a person's own pref in the 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

* fix(chat): leave Agents for you off Chat Home's Default view, with its other blocks

#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]>

* feat(chat): show Agents for you on Chat Home's Default view too, for 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]>

* fix(chat): show the welcome card first and Agents for you once it is 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]>

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: Cihan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-migration Adds or edits a migration — apply it to the hosted database

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants