v1.1.0 — English interface, rebuilt grid and compare
The survey card now speaks English as well as Chinese — which is what makes
this a minor release rather than a patch. It follows the Web UI's own language
setting, falling back to the browser's, and switches live.
Added
- English interface. Card copy is no longer hardcoded Chinese: titles, type
labels, progress, buttons, placeholders and the recap all resolve through
zh/en dictionaries. Answer values stay language-neutral, so switching the
interface never changes what the model receives. AGENTS.md— an entry point written for models: the tool name, when to
reach for it, the parameter shape, how to pick a mode, and what comes back.
Fixed
{color:…}inside block Markdown was torn apart. The safe renderer only
accepts whole documents, so splitting a string at colour markers left a bare
>to render as an empty blockquote with the text orphaned outside it.- The recap echoed the raw stored label,
(recommended)marker and all, while
the card strips it into a badge. - Error text rendered at 11px beside a 14px progress counter, making a failed
submit quieter than routine status. - The grid skip control was below the minimum touch target at 20×20.
Changed
- Grid rebuilt against the tokens the rest of dsh uses. Cards previously
took--dsw-alias-bg-layer-1, darker than the card behind them, so they read
as holes punched in it. Card text is also flattened to inline-only, so one
fenced code block can no longer inflate every card in a uniform matrix. - Compare blocks given real weight: the unselected side had no surface at
all, leaving one card beside a bare run of text. Both sides now carry a panel,
and selection reads as lifted rather than tinted. - Client split into
src/modules, bundled by esbuild intolib/client.js
plus a source map the host already serves. React and the UI primitives stay
out of the bundle so the plugin shares the host's instance. Verified
behaviour-preserving: rendered HTML is byte-identical across the split. - README previews are real screenshots now, captured from the shipped
bundle, replacing hand-drawn SVGs that got the UI wrong — single-select drawn
as radio circles when it renders numbered chips, a blue submit button when it
is a near-white pill.README.zh.mdgains a preview section it never had.
完整变更(中文,含每一项的成因)见 CHANGELOG.md。
Install
dsh plugin --profile web add "github:jinhuang712/dsh-survey#v1.1.0"