Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/agent-guide/architecture/map.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/agent-guide/design/settings-row-switch.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Settings row + switch
The settings panel (`quick-controls.css`, its controls in `controls.css`) is a rail beside a column of sections. The rail is 10rem with text labels: a search field on top, then two titled groups, the edited character's pages (Connection, Voice, Persona, Body, History) under the character's name and every character's pages (Together, Listening and bubble, Permissions, Plugins, Proactive, Motion and desktop, General) under "Every character", each heading in Text mute at the caption size (600), General pinned to the bottom. On the rail Up and Down select the previous and next page, wrapping at the ends, and Home and End the first and last; Left and Right do nothing. While a search is set each rail item shows its match count in Text mute, a page with none dims, a matching row takes the `--yui-selected` fill, and a query opens each fold that holds a match, which clearing the query folds again. A panel at most 30rem wide (the panel at its narrowest, the window at its 880px minimum) turns the rail into 3rem of icons, each page named by its `aria-label` and tooltip, the headings into one Hairline between the groups, and hides the search field; a row's control wrapped under its label spans the row. Each page opens with a Text-mute scope line, "Applies to {name} only" or "Applies to every character", over a 1.25rem title (600, letter-spacing -0.015em). A section is a 0.875rem title (600) with an optional control or state text at its right, an optional Text-mute note, and one or more groups. A group is one borderless surface (`--yui-group-bg`, 12px corners) whose rows are split by a Hairline. A row is at least 3rem tall with 0.625rem × 0.875rem padding: a 0.8125rem label (500) over a 0.75rem Text-mute sub-line on the left, its control on the right. An add row closes its group with a plus and a text button. The General page opens with the Help section, three rows (Controls and What she can do with Ask, First conversation with Replay), then the Language row, then the Appearance row, then the Text size row, then Your name. The Appearance row is a three-position segment (Dawn · Hearth · Follow system) in the same segment control as Language, and the Text size row a five-position one (90% · 100% · 112.5% · 125% · 140%) over a sample line at the speech size on a Surface card with a Hairline edge; either choice applies to every open window at once and persists. A segment's cells wrap to a new line when its row has no room. The Proactive page opens with How often she speaks up, a three-position segment (Less · Normal · More) directly on the section, over a 24-hour track of her day: each pace run's word, the greeting marks, and her 24px face at now. A check-in line under the track lists the quiet-for-a-while minutes at the chosen pace, and its marks re-space when the segment changes. A Text-mute foot line says scheduled greetings keep their times at every pace, then a link to Persona › Active hours. Under What she reacts to, each of five source groups (Quiet for a while, Scheduled greetings, Screen changes, Thread reactions, External signals) is a switch row over a fold. While its switch is off the fold's rows dim to half opacity, staying editable, and its summary reads Off in place of the aside, with no off line. The External signals fold holds Thread turns, the listener port and address, and Workflows: an add button that opens a form, and an inline delete confirm that moves focus to Cancel, with its fields on the inset Hairline. Every number row on the page has a 5.5rem field and a 3rem unit slot, except the cue rows' minute fields. Advanced closes the page folded, the speaking-up limit before the urgent one. Selection is neutral: the selected rail item and the checked segment cell take the `--yui-selected` fill with Text at 600, and a checked radio tick fills with Text. The switch (2.25rem track) is the one control that keeps amber, calm and grey when off (`--yui-track`) and a full Amber track with the knob (`--yui-knob`, shadowed in `--yui-knob-shadow`) slid right when on (`aria-checked="true"`). While a plugin's step-1 consent is open its switch stays off: the consent panel under the row is the pending state, and the switch or **Cancel** closes it. A checkbox (`controls/checkbox/`), the Express motion group's master, is drawn as the switch: on and off as the switch's, and a partly-on group (`aria-checked="mixed"`) lights the left half of the track in Amber with the knob at the centre. A slider (`controls/slider/`) is a 4px pill track on `--yui-track` with an Amber fill up to the value and a 14px knob (`--yui-knob`, shadowed in `--yui-knob-shadow`) that stays inside the track's ends; hovering or dragging adds a 4px Amber-faint ring around the knob, and keyboard focus a 2px Amber-soft one. Fields sit on `--yui-field` with a transparent edge at rest, a Hairline on hover, and an Amber border plus an Amber-soft ring on focus. A focused button shows a 2px Amber-soft ring. One tooltip at a time names a control: it opens below the control after a 150 ms hover, or at once when the keyboard moves focus there, and never on a focus the window moves itself (opening, a page request); a press or the pointer leaving closes it, and Escape on the focused control closes the tooltip alone. The Together page carries the Unified chat switch, which lets main open the unified chat window while two or more presets are open, and the Characters list: one row per character with a 28px face, the name over its state in Text mute, and an "On the desktop" switch. Main's switch, and a bound window's own, is locked on; with four on the desktop an off row's switch is disabled and a Text-mute line gives the reason. A control the push transport cannot use stays in place, disabled, with a Text-mute reason under its label and a "Change transport" link in Amber ink. In the settings window the preset row is the character header: one button per character with a 28px face, the name (600) over its transport and window state at the caption size in Text mute; the edited one takes the `--yui-selected` fill, one in no window sits at 55% opacity and stays clickable, and the manage button closes the row. Where a native picker exists, each row of the preset manage list carries a photo button beside rename; it opens the photo dialog, after the picker when the preset has no photo yet. The panel's disclosures are the filler's More phrases, the card's Advanced fields, the Proactive page's Advanced and each source fold on that page, each a chevron summary over its content and closed by default.
The settings panel (`quick-controls.css`, its controls in `controls.css`) is a rail beside a column of sections. The rail is 10rem with text labels: a search field on top, then two titled groups, the edited character's pages (Connection, Voice, Persona, Body, History) under the character's name and every character's pages (Together, Listening and bubble, Permissions, Plugins, Proactive, Motion and desktop, General) under "Every character", each heading in Text mute at the caption size (600), General pinned to the bottom. On the rail Up and Down select the previous and next page, wrapping at the ends, and Home and End the first and last; Left and Right do nothing. While a search is set each rail item shows its match count in Text mute, a page with none dims, a matching row takes the `--yui-selected` fill, and a query opens each fold that holds a match, which clearing the query folds again. A panel at most 30rem wide (the panel at its narrowest, the window at its 880px minimum) turns the rail into 3rem of icons, each page named by its `aria-label` and tooltip, the headings into one Hairline between the groups, and hides the search field; a row's control wrapped under its label spans the row. Each page opens with a Text-mute scope line, "Applies to {name} only" or "Applies to every character", over a 1.25rem title (600, letter-spacing -0.015em). A section is a 0.875rem title (600) with an optional control or state text at its right, an optional Text-mute note, and one or more groups. A group is one borderless surface (`--yui-group-bg`, 12px corners) whose rows are split by a Hairline. A row is at least 3rem tall with 0.625rem × 0.875rem padding: a 0.8125rem label (500) over a 0.75rem Text-mute sub-line on the left, its control on the right. An on/off row is the one `SwitchRow` component (`src/ui/quick-controls/switches/switch-row.tsx`): an optional glyph before the label, the sub-line, and the switch, which a lock disables while the sub-line gives the lock's reason. An add row closes its group with a plus and a text button. The General page opens with the Help section, three rows (Controls and What she can do with Ask, First conversation with Replay), then the Language row, then the Appearance row, then the Text size row, then Your name. The Appearance row is a three-position segment (Dawn · Hearth · Follow system) in the same segment control as Language, and the Text size row a five-position one (90% · 100% · 112.5% · 125% · 140%) over a sample line at the speech size on a Surface card with a Hairline edge; either choice applies to every open window at once and persists. A segment's cells wrap to a new line when its row has no room. The Proactive page opens with How often she speaks up, a three-position segment (Less · Normal · More) directly on the section, over a 24-hour track of her day: each pace run's word, the greeting marks, and her 24px face at now. A check-in line under the track lists the quiet-for-a-while minutes at the chosen pace, and its marks re-space when the segment changes. A Text-mute foot line says scheduled greetings keep their times at every pace, then a link to Persona › Active hours. Under What she reacts to, each of five source groups (Quiet for a while, Scheduled greetings, Screen changes, Thread reactions, External signals) is a switch row over a fold. While its switch is off the fold's rows dim to half opacity, staying editable, and its summary reads Off in place of the aside, with no off line. The External signals fold holds Thread turns, the listener port and address, and Workflows: an add button that opens a form, and an inline delete confirm that moves focus to Cancel, with its fields on the inset Hairline. Every number row on the page has a 5.5rem field and a 3rem unit slot, except the cue rows' minute fields. Advanced closes the page folded, the speaking-up limit before the urgent one. Selection is neutral: the selected rail item and the checked segment cell take the `--yui-selected` fill with Text at 600, and a checked radio tick fills with Text. The switch (2.25rem track) is the one control that keeps amber, calm and grey when off (`--yui-track`) and a full Amber track with the knob (`--yui-knob`, shadowed in `--yui-knob-shadow`) slid right when on (`aria-checked="true"`). While a plugin's step-1 consent is open its switch stays off: the consent panel under the row is the pending state, and the switch or **Cancel** closes it. A checkbox (`controls/checkbox/`), the Express motion group's master, is drawn as the switch: on and off as the switch's, and a partly-on group (`aria-checked="mixed"`) lights the left half of the track in Amber with the knob at the centre. A slider (`controls/slider/`) is a 4px pill track on `--yui-track` with an Amber fill up to the value and a 14px knob (`--yui-knob`, shadowed in `--yui-knob-shadow`) that stays inside the track's ends; hovering or dragging adds a 4px Amber-faint ring around the knob, and keyboard focus a 2px Amber-soft one. Fields sit on `--yui-field` with a transparent edge at rest, a Hairline on hover, and an Amber border plus an Amber-soft ring on focus. A focused button shows a 2px Amber-soft ring. One tooltip at a time names a control: it opens below the control after a 150 ms hover, or at once when the keyboard moves focus there, and never on a focus the window moves itself (opening, a page request); a press or the pointer leaving closes it, and Escape on the focused control closes the tooltip alone. The Together page carries the Unified chat switch, which lets main open the unified chat window while two or more presets are open, and the Characters list: one row per character with a 28px face, the name over its state in Text mute, and an "On the desktop" switch. Main's switch, and a bound window's own, is locked on; with four on the desktop an off row's switch is disabled and a Text-mute line gives the reason. A control the push transport cannot use stays in place, disabled, with a Text-mute reason under its label and a "Change transport" link in Amber ink. In the settings window the preset row is the character header: one button per character with a 28px face, the name (600) over its transport and window state at the caption size in Text mute; the edited one takes the `--yui-selected` fill, one in no window sits at 55% opacity and stays clickable, and the manage button closes the row. Where a native picker exists, each row of the preset manage list carries a photo button beside rename; it opens the photo dialog, after the picker when the preset has no photo yet. The panel's disclosures are the filler's More phrases, the card's Advanced fields, the Proactive page's Advanced and each source fold on that page, each a chevron summary over its content and closed by default.
2 changes: 1 addition & 1 deletion mocks/settings/quick-start-agents.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ <h1>Each part of her on its own page</h1>
];
const PET_CSS = ["../../src/styles.css", "../../src/ui/unified/avatar.css", "../../src/ui/surfaces/surfaces.css", "../../src/ui/message/message-plate.css"];

// ── Glyphs, copied from src/ui (quick-start.tsx, glyphs.tsx, reveal-toggle, disclosure, switch-row.ts, speaker-row.tsx, surfaces.ts). ──
// ── Glyphs, copied from src/ui (quick-start.tsx, glyphs.tsx, reveal-toggle, disclosure, voice/voice-page-view.tsx, speaker-row.tsx, surfaces.ts). ──
const svg = (p, sw = 1.5) => `<svg viewBox="0 0 24 24" fill="none" aria-hidden="true">${p.replace(/<path /g, `<path stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round" `)}</svg>`;
const DONE = svg(`<path d="m5 12.5 4.5 4.5L19 7.5"/>`);
const WARN = `<svg viewBox="0 0 24 24" fill="none" aria-hidden="true"><circle cx="12" cy="12" r="8.5" stroke="currentColor" stroke-width="2"/><path d="M12 7.5v5.5M12 16.2v.1" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>`;
Expand Down
42 changes: 42 additions & 0 deletions scripts/ci/concept-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,47 @@
],
"baseline": [],
"reason": "https://github.com/yw0nam/YUI/issues/2142"
},
{
"id": "switch-row",
"concept": "a settings on/off row: the label, the sub line and the switch",
"owner": "src/ui/quick-controls/switches/switch-row.tsx:SwitchRow",
"patterns": [
{
"regex": "<Switch\\b",
"paths": ["src/ui/quick-controls/**/*.tsx"],
"exclude": [
"src/ui/quick-controls/switches/switch-row.tsx",
"src/ui/quick-controls/proactive/cue-list/cue-row.tsx",
"src/ui/quick-controls/together/characters/characters-section.tsx",
"src/ui/quick-controls/voice/filler/filler-section.tsx"
]
}
],
"baseline": [
{
"file": "src/ui/quick-controls/motion/express-motion/express-motion-section.tsx",
"text": "<Switch",
"count": 1
},
{
"file": "src/ui/quick-controls/motion/idle-motion/idle-motion-section.tsx",
"text": "<Switch",
"count": 1
},
{ "file": "src/ui/quick-controls/perms/perms-page-view.tsx", "text": "<Switch", "count": 1 },
{
"file": "src/ui/quick-controls/persona/card/card-section.tsx",
"text": "<Switch",
"count": 1
},
{ "file": "src/ui/quick-controls/plugins/plugin-group.tsx", "text": "<Switch", "count": 1 },
{
"file": "src/ui/quick-controls/proactive/cue-list/cue-list-group.tsx",
"text": "<Switch",
"count": 1
}
],
"reason": "https://github.com/yw0nam/YUI/issues/2142 — excluded: cue-row.tsx is a list row with a trigger field and delete, characters-section.tsx a face with two sub lines, filler-section.tsx a section-head switch"
}
]
Loading
Loading