Files
plugins/packages/output-strategy/page/index.html
T
Mañjūṣakaandmanjughosa dba24067c2 output-strategy 0.2.3: remove the panel byline; keep attribution in the README (#1009)
Removes the "by" byline from the Output Strategy panel (index.html, i18n.js, style.css); the attribution stays in the README. Bumps the package to 0.2.3 so dist packs it (0.2.2 is already packed and is never packed again).

Run at the reviewed head 121f571f (on mote, temp HOME):
- `git diff 0d03f7bf 121f571f`: only package.json 0.2.2 -> 0.2.3 and the matching version assertion in test/page.test.mjs. Everything else was reviewed at 0d03f7bf.
- packages/output-strategy `bun test`: 59 pass, 0 fail. `bun scripts/check.mjs`: ok.
- Root `bun test` (suite lock) on origin/main a69931ec merged with #1009, #1012 and #1013: 8373 pass, 0 fail (8392 tests across 590 files, 361s; the rest skipped), on Linux (Ubuntu 24.04, magpie-desktop) because both Macs' suite locks were held by hours-long runs. `bun scripts/check.mjs` on that tree: ok.
- Earlier, at 0d03f7bf: Playwright 1.62 Chromium and WebKit at 1200 and 420px, en and zh-CN, with a stub bridge. No byline, the conversation note shows, all 7 styles load, no horizontal overflow, no page errors.

Broken by hand (at 0d03f7bf): putting main's page/index.html back, or main's page/i18n.js, makes 1 test fail ("shows conversation guidance in both languages without a panel byline").

Not tried: the panel inside a real magpie window.

Co-authored-by: manjughosa <3220325975@qq.com>
2026-11-11 23:37:38 +08:00

50 lines
1.8 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Output Strategy</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="shell">
<header class="intro">
<div class="intro-copy">
<h1>Output Strategy</h1>
<p class="lede">Inject selected writing rules into model requests. Combine freely; all off by default.</p>
</div>
<p class="selection-count" aria-live="polite">
<strong id="selectedCount">0 / 7</strong>
<span>selected</span>
</p>
</header>
<section class="styles-section" aria-labelledby="stylesTitle">
<div class="section-heading">
<h2 id="stylesTitle">Style combinations</h2>
<p id="catalogState">Reading catalog…</p>
</div>
<p class="form-message" id="conversationNote">Saving does not rewrite conversation history. Existing conversations may retain previously injected rules; start a new conversation to fully switch or turn off styles.</p>
<form id="stylesForm">
<fieldset id="stylesFieldset" disabled>
<legend class="sr-only">Choose output styles to inject</legend>
<div id="stylesList" class="styles-list"></div>
</fieldset>
<div class="form-footer">
<p id="formMessage" class="form-message" role="status" aria-live="polite">Reading settings…</p>
<button id="saveButton" type="submit" disabled>Save changes</button>
</div>
</form>
<noscript><p class="inline-error">JavaScript is required to change styles.</p></noscript>
</section>
</main>
<script src="_magpie/bridge.js"></script>
<script src="catalog.js"></script>
<script src="i18n.js"></script>
<script src="app.js" defer></script>
</body>
</html>