Skip to content

Commit 03b35e2

Browse files
committed
docs: changelog + README for floating button, Vite build, and extraction fix
Record the unreleased user-facing changes (default-on / draggable / themed floating button with a close-to-disable control, and translating prose that contains only icon buttons) in the CHANGELOG, and update the README features, build description (Vite + CRXJS), dev-server instructions, and project layout.
1 parent 96bcb1e commit 03b35e2

2 files changed

Lines changed: 35 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- The floating translate button can be dragged vertically. It stays pinned to
13+
the screen edge and remembers its position across page loads.
14+
15+
### Changed
16+
17+
- The floating translate button is now enabled by default and restyled: a
18+
smaller button inside a themed shell that adapts to the page's light or dark
19+
background and dims slightly while idle to stay out of the way. Its close (×)
20+
affordance now turns the feature off and keeps the options page checkbox in
21+
sync, instead of only hiding the button for the current page.
22+
- The extension build moved from a hand-rolled Rolldown setup to Vite + CRXJS
23+
(Rolldown under the hood), adding a hot-reloading dev server via `pnpm dev`.
24+
User-facing behavior is unchanged.
25+
26+
### Fixed
27+
28+
- Headings and paragraphs that contain only an icon button — such as a Substack
29+
heading's permalink link — are now translated instead of being skipped as
30+
interactive UI. The interactive-content guard only excludes form fields and
31+
buttons that carry their own text.
32+
1033
## [0.3.4] - 2026-06-04
1134

1235
### Fixed

‎README.md‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The extension is usable for normal article pages, legacy text-heavy pages, and s
3535
- Support local OpenAI-compatible runtimes such as LM Studio, Ollama, llama.cpp server, and omlx (Apple Silicon), plus Anthropic Messages API-compatible endpoints.
3636
- Fetch provider model lists from the options page.
3737
- Choose integrated or highlighted translation display styles.
38-
- Optionally show a floating page button that starts translation only after the user clicks it.
38+
- Show a floating page button (enabled by default) that starts translation only after the user clicks it. The button can be dragged vertically along the screen edge, remembers its position, adapts its shell to the page's light or dark background, and can be turned off from its close (×) control or the options page.
3939
- Use session-only translation caching by default, with persistent and disabled cache options.
4040
- Show popup diagnostics for text detection, queue state, and provider errors.
4141
- Observe dynamically inserted content.
@@ -157,6 +157,14 @@ corepack enable
157157
pnpm install
158158
```
159159

160+
Run the dev server with hot reloading (Vite + CRXJS). Load `apps/extension/dist/`
161+
as an unpacked extension once, then edit source and the extension reloads
162+
automatically:
163+
164+
```sh
165+
pnpm --filter @margin/extension dev
166+
```
167+
160168
Run type checks:
161169

162170
```sh
@@ -187,7 +195,7 @@ Build the extension:
187195
pnpm build
188196
```
189197

190-
The build uses Rolldown and writes the unpacked extension to `apps/extension/dist/`.
198+
The build uses Vite with the CRXJS plugin (Rolldown under the hood) and writes the unpacked extension to `apps/extension/dist/`.
191199

192200
## Project Structure
193201

@@ -198,7 +206,8 @@ apps/extension/src/options/ Extension options page
198206
apps/extension/src/popup/ Popup UI and diagnostics
199207
apps/extension/src/background/providers/ Provider adapters
200208
apps/extension/src/shared/ Shared types, defaults, storage, and messages
201-
apps/extension/public/ Static extension UI and content CSS
209+
apps/extension/public/ Static assets (icons) copied verbatim into the build
210+
apps/extension/*.html Popup and options HTML entry points
202211
apps/extension/scripts/ Build and extension validation scripts
203212
docs/ Product, roadmap, principles, and threat model
204213
```

0 commit comments

Comments
 (0)