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
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@ file format introduced in `[0.0.1.0]` was dropped.

## [Unreleased]

## [0.8.2] - 2026-06-27

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the 0.8.1 changelog section

This replaces the former 0.8.1 heading instead of adding a new 0.8.2 section above it, so the old 0.8.1 notes remain inside the 0.8.2 section. The release job in .github/workflows/ci.yml reads package.json.version and runs node scripts/changelog-notes.mjs "$VERSION" for gh release create; with this changelog, the 0.8.2 release notes include the previous 0.8.1 small-text entry, while 0.8.1 now falls back to Release 0.8.1.. Please reinsert a ## [0.8.1] heading before the existing small-text notes.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch — fixed in 2bee03e. Reinserted the ## [0.8.1] heading; verified node scripts/changelog-notes.mjs 0.8.2 now emits only the 0.8.2 section and 0.8.1 resolves to the small-text notes.


### Fixed

- **Settings appearance copy no longer mixes languages.** The zh-CN 外观 subtitle
read "System 会跟随操作系统偏好" — the English enum label `System` inside Chinese
chrome, breaking the single-language-chrome rule. Now "「跟随系统」会随操作系统的明暗
偏好自动切换。".
- **Editorial / responsive heading sizes snapped onto the role ladder.** The tail the
0.8.1 small-text pass left — `.wiki-preview-card h2` (19 → title 17),
`.import-done-banner__headline` (20 → title 17), `.wisdom-popover__title h2`
(15.5 → body 15), and the responsive `.metric-card__value` downscales (24 / 26 → 22,
the reader-h2 editorial step) — is now on the ladder.

### Changed

- **MB-Web type migrated onto the role tokens.** `src/mb/mb.css` dropped its
self-contained half-step scale (11.5 / 12.5 / 13.5 / 14.5 …); 59 of its 60
`font-size` declarations now resolve to `--type-*` (label / body-sm / body / title)
by nearest role, made available by the app-wide `styles.css` import. The one kept
literal is `.mb-r-title` (22px), the paper-reader title. MB-Web radii/colors remain a tracked
follow-up (DESIGN.md §3). Verified in the browser across the library, reader, and
notes views.

## [0.8.1] - 2026-06-27

### Fixed
Expand Down
25 changes: 15 additions & 10 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,13 @@ no stray 14 / 16 sitting beside `body` (15) / `title` (17). `body-sm` is the hom
for *all* dense machine metadata — IDs, paths, durations, pills, table cells,
hints, segmented controls — that previously drifted to an undocumented 12px. The
`no UI text renders off the role scale` e2e invariant guards this band across the
workbench routes (a passive, default-viewport sweep). A few **editorial /
responsive heading sizes outside the small-text band are a pre-existing tail not
yet on the ladder** — `.wiki-preview-card h2` (19), `.import-done-banner__headline`
(20), `.wisdom-popover__title h2` (15.5), and the responsive `.metric-card__value`
downscales (24 / 26) — surfaced only in hover popovers, success banners, or at
narrow breakpoints. They are a tracked follow-up, kept out of this pass.
workbench routes (a passive, default-viewport sweep). The editorial / responsive
heading sizes that lived outside the small-text band are now on the ladder too:
`.wiki-preview-card h2` (19 → title 17), `.import-done-banner__headline` (20 →
title 17), `.wisdom-popover__title h2` (15.5 → body 15), and the responsive
`.metric-card__value` downscales (24 / 26 → 22, the reader-h2 editorial step). The
only deliberate off-role size left is em-relative notation (inline code, KaTeX) and
the MB-Web paper title (see the subsystem note below).

The **cascade base** is the body role: `body` sets `font-size:
var(--type-body-size)` (15px), so any unsized text — and every `font: inherit`
Expand Down Expand Up @@ -354,10 +355,14 @@ context), and **KaTeX** math sub/superscripts and layout struts size themselves
relative to the formula. Everything else is on-ladder.

**Subsystem boundary — MB-Web.** The focused 论文 reader (`src/mb/mb.css`,
`.mb-`-prefixed) still carries its own self-contained half-step scale
(11.5 / 12.5 / 13.5 / 14.5 …) and does **not** yet consume these `--type-*`
tokens. Migrating it onto the role ladder is a tracked follow-up, kept out of the
workbench consolidation so each can be visually verified on its own surfaces.
`.mb-`-prefixed) now consumes the `--type-*` role tokens for **type**: its former
half-step scale (11.5 / 12.5 / 13.5 / 14.5 …) collapsed onto label / body-sm / body
/ title by nearest role, and the global `styles.css` (imported app-wide in
`main.tsx`) makes the tokens available inside the MB-Web tree. The one deliberate
literal is `.mb-r-title` (22px) — the paper-reader title, the reader-h2 editorial
step, kept compact rather than the workbench reader's 32. MB-Web's **radii and
colors** are still off the documented scale (a separate `detect.mjs` finding) and
remain a tracked follow-up; only type was migrated here.

**The agent surface rides the roles.** Assistant and user messages use the body
role (15px) for prose, the editorial serif for the three markdown heading levels
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dikw-web",
"version": "0.8.1",
"version": "0.8.2",
"private": true,
"type": "module",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ export const translations = {
unsavedChanges: "有未保存的更改",
saved: "已保存",
appearanceTitle: "外观",
appearanceDetail: "System 会跟随操作系统偏好。",
appearanceDetail: "「跟随系统」会随操作系统的明暗偏好自动切换。",
system: "跟随系统",
light: "浅色",
dark: "深色",
Expand Down
Loading