style: simplify teacher shortcuts to text actions
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
## Scope
|
||||
|
||||
- Move Yuxi-configured teacher shortcuts above the composer as small pastel buttons with soft shadows; preserve exact configured label/prompt and existing send/voice/model behavior.
|
||||
- Present Yuxi-configured teacher shortcuts above the composer as compact clickable text; preserve exact configured label/prompt and existing send/voice/model behavior.
|
||||
|
||||
## Intent And Constraints
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
## Outcome
|
||||
|
||||
- Configured teacher shortcuts now sit outside and directly above the composer. Buttons use 13px normal text (same as reply body), pale cream fill, no border and soft shadow; wrapping/overflow/keyboard focus supported.
|
||||
- Configured teacher shortcuts sit outside and directly above the composer. Latest approved styling uses 13px normal green text, no fill/border/shadow, a small chevron and hover underline; wrapping/overflow/keyboard focus supported.
|
||||
- Adapted product/tests dependency from main 53d5b6b (bb96941); original source task record remains in its source commit, excluded from this feature boundary. Explicit empty arrays hide prompts; absent historical field retains approved fallback. Published label and prompt are unchanged.
|
||||
- Trial Renderer updated in place in PID 32583; Main and empty-work preview overlay remain intact. Live Alice cloud v53 supplies “继续看看咯”.
|
||||
|
||||
@@ -83,3 +83,16 @@
|
||||
- Completed the requested size step for generated reply cards only: 14px text, 10px/12px padding, 12px radius, 8px row gap, 14px chevron and 44px minimum target. Three colors, full-width layout and click behavior unchanged; configured prompt buttons retain their previously approved size/style.
|
||||
- Verification: typecheck, full lint (0 errors / 8 existing warnings), source/combined-stage builds and 10 browser reply-history/card interaction cases passed at 319px and 508px.
|
||||
- Hot-swapped trial stylesheet index-CZpr_a7Y.css without reload or focus acquisition. Actual three screenshot cards now measure 45.8px high with 14px text. Native image inspected; storage, current text inputs, operation messages, teacher history and route match before the update. No live model calls.
|
||||
|
||||
|
||||
## Text Shortcut Follow-up
|
||||
|
||||
- Same-task ownership resumed at fef3b3a, matching feature task/branch/worktree verified. Reused previously read unchanged project memory and reread peer scope/constraints/promotions. Latest live trial includes Code brand navigation, hidden model selector and grouped introductions; preserve these overlays. No peer semantic conflict with scoped shortcut CSS. Canonical memory remains read-only. Gate passed.
|
||||
- User requests removing the shortcut background and making it clickable text. Design skill search/reference used for semantic buttons, stable hover and focus feedback; keep existing product palette/typeface rather than introduce a new system. Use 13px muted green text plus existing chevron, transparent background, no border/shadow, hover underline/darker text and visible keyboard focus. Preserve 30px hit height, wrapping and exact cloud labels/prompts.
|
||||
- Plan: change only shortcut CSS, adapt existing layout assertions and current README. Verify existing narrow/wide shortcut click/keyboard/overflow scenarios, typecheck/lint/build. Copy the latest combined trial stage, apply only this CSS block, and swap its built stylesheet in the running app without remounting chats or changing desktop focus; compare live state before/after.
|
||||
|
||||
|
||||
- Completed text treatment: removed fill, border and raised shadow; 13px/400 green text with chevron, darker underlined hover, stable position and keyboard outline. Kept 30px targets, cloud label/prompt, input visibility conditions and sends unchanged. This supersedes the earlier raised-button styling.
|
||||
- Verification: four existing shortcut/layout scenarios passed at 319px and 508px (including click/prompt contract, eight long labels, focus, hover/pressed/reduced-motion, empty config and input/send position). Typecheck, full lint (0 errors / 8 existing warnings), source and combined trial production builds passed. Inspected browser screenshot. Task-aware docs drift and diff whitespace checks passed.
|
||||
- Updated only the live stylesheet to index-_6TMWSCY.css in PID 32583; no Renderer reload, Main restart, prompt or native focus call. Copied the latest Code-brand/hidden-model/group-intro composite before applying this CSS so peer work remains. Served index/assets also prepared for subsequent normal reload. Immediate swap remained unfocused. Read-only check confirmed transparent/none/13px/30px rules; route unchanged and no localStorage changes beyond normal auth state. The app loaded 14 messages after the initial empty snapshot and later became focused with its consultation open, so live message/input snapshots were not stationary and are not claimed byte-identical. No history or draft writes were performed. Inspector closed.
|
||||
- Evidence: /tmp/teacher-text-link-{browser,typecheck,lint,build,trial-build}.log, /tmp/teacher-text-link-results and trial teacher-text-shortcuts-a682d30f/verification.json. No main merge/push or cloud publication in this follow-up.
|
||||
|
||||
Reference in New Issue
Block a user