WeKnora/frontend
wizardchen a163bab32f feat(knowledge): rework the parse timeline panel's layout and failure card
The processing-pipeline drawer presented a failed parse worst-side-up.
The error card printed the error code twice (headline plus a solid red
pill), gave the most prominent line to the generic "check the logs"
filler, and left the one line that explains the failure — the backend's
own message — last, smallest and greyest. Around it, the waterfall left
roughly half the panel blank, ruled its time axis at 0/124/247/371/494ms
(the raw total cut in four), flung a ROOT/STAGE label to the far right of
every name cell, and drew the stages that an upstream failure had
abandoned as pending rows with dashed stubs pinned to the track edge.

Error card
- Headline says which stage broke; the code appears once, as a quiet
  chip. The backend message is promoted to the card's primary line.
- Retry moves into the card, next to the reason, and loses the
  brand-green outline it wore against a red failure. It stays in the
  toolbar only when a failure carries no last_error.
- The headline no longer uses --td-error-color on the card's own error
  tint, which measured around 3:1 in both themes.

Waterfall
- Axis ticks round onto a 1/2/2.5/5 x 10^n step, and bars are positioned
  against the rounded axis maximum so bars and ruler cannot disagree.
  Gridlines mark each tick behind the bars.
- Kind labels are reserved for `generation` spans instead of stamping
  ROOT/STAGE/SPAN on every row via margin-left:auto.
- Depth is carried by indent guides rather than three near-identical row
  tints that read as banding.
- Stages abandoned by an upstream failure say "not run" and recede.

Layout and interaction
- The detail panel opens on load, on the failed span or the root, so the
  panel is not half empty and the rows are discoverably clickable. It
  stays closed once the user closes it.
- The waterfall is content-sized (capped at 60%) and the detail absorbs
  the remainder, instead of a fixed 50/50 that clipped rows mid-height.
- The dot-joined meta sentence becomes label/value stats; the panel name
  moves to an overline above the filename.

Axis math moves to utils/traceAxis.ts with unit tests. New i18n keys are
added to all five locales; three keys left unreferenced by this change
are removed.
2026-09-20 12:25:31 +08:00
..
public feat(i18n): add Japanese (ja-JP) locale support (#3080) 2026-09-07 19:20:41 +08:00
scripts feat(browser): add picture-in-picture task preview 2026-09-12 11:11:36 +08:00
src feat(knowledge): rework the parse timeline panel's layout and failure card 2026-09-20 12:25:31 +08:00
.dockerignore feat(ui): multi-stage Docker frontend build (no host npm) (#3074) 2026-09-07 19:33:57 +08:00
.gitignore init commit 2025-08-05 15:08:07 +08:00
Dockerfile chore: remove vendored archives and unused Python helpers 2026-09-16 15:49:36 +08:00
docker-entrypoint.sh feat(i18n): add Japanese (ja-JP) locale support (#3080) 2026-09-07 19:20:41 +08:00
embed.html feat(embed): add widget, visitor chat, and management UI (#1657) 2026-06-12 23:10:39 +08:00
env.d.ts feat(frontend): inject commit ID into frontend build for version tracking 2026-06-09 18:08:57 +08:00
index.html fix(frontend): bundle tdesign-icons sprite locally for offline deploys 2026-04-23 18:21:49 +08:00
nginx-api-proxy.conf fix(embed): enforce host origin allowlists on framed pages 2026-09-14 18:03:57 +08:00
nginx-http.conf feat(sandbox): add an interactive terminal and files tab beside chat (#3110) 2026-09-08 17:43:15 +08:00
nginx.conf feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
package-lock.json chore: remove vendored archives and unused Python helpers 2026-09-16 15:49:36 +08:00
package.json chore: remove vendored archives and unused Python helpers 2026-09-16 15:49:36 +08:00
package.json.md5 fix: update environment configuration for debugging and logging, enhance SQLite FTS5 table management, and improve API base URL handling 2026-04-11 18:51:16 +08:00
pnpm-workspace.yaml fix(frontend): configure pnpm v11 build approvals in workspace file 2026-05-08 16:34:33 +08:00
tsconfig.app.json fix lint and test failures 2026-07-01 17:31:42 +08:00
tsconfig.json init commit 2025-08-05 15:08:07 +08:00
tsconfig.node.json init commit 2025-08-05 15:08:07 +08:00
vite.config.ts feat(session): fork conversations from a historical user message (#3304) 2026-09-17 14:20:18 +08:00