kimi-code/docs/prototypes
liruifengv 8abde94b2b
feat(sidebar): unify workspace session expand into one control (#153)
* feat(sidebar): unify workspace session expand into one control

Replace the two separate controls at the bottom of each workspace group
("Load N more" fetching the next page, and a local expand/collapse
toggle for already-loaded rows) with a single expand/collapse pair:

- "Show more" steps a per-group display cap up by one batch of 5; the
  next page is fetched only when the locally loaded rows can't cover
  the step, so users can't tell whether a reveal came from memory or
  the server. While fetching, the button shows "Loading…" disabled.
- "Show less" resets the cap to the first page without losing the
  already-loaded data (re-expanding never refetches).
- Both controls share one row as compact content-width pills with
  chevron icons (down/up) aligned to the session-title x, separated by
  a faint middot; labels no longer show counts (the workspace
  session_count is only a possibly-stale label).

Applied to the desktop sidebar, the mobile switcher sheet, and synced
to apps/web; design-system docs and i18n updated accordingly.

* chore: simplify changeset wording

* fix(sidebar): unstick adjacent template attrs, truncate show-more pills at min width

Two template attributes ended up concatenated without whitespace after
an edit (harmless to the Vue parser, but a typo); separate them. Give
.show-more min-width: 0 so at the narrowest sidebar (170px) the pill
labels truncate with the existing ellipsis instead of the row
overflowing the workspace group.
2026-07-29 19:44:57 +08:00
..
permission-icon-candidates.html feat: permission mode icons and composer menu polish (#120) 2026-07-27 15:35:05 +08:00
permission-yolo-question-shield.html feat: permission mode icons and composer menu polish (#120) 2026-07-27 15:35:05 +08:00
session-emoji-slot.html feat(sidebar): session emoji icon with searchable picker (#97) 2026-07-24 13:51:29 +08:00
sidebar-expand-collapse.html feat(sidebar): unify workspace session expand into one control (#153) 2026-07-29 19:44:57 +08:00
task-notification-ui.html feat(chat): mark goal-continuation turns with a provenance line (#96) 2026-07-24 03:14:31 +08:00