Skip to content

What changed#21

Merged
gcko merged 1 commit intomainfrom
feature/add-feature
Jan 27, 2026
Merged

What changed#21
gcko merged 1 commit intomainfrom
feature/add-feature

Conversation

@gcko
Copy link
Copy Markdown
Owner

@gcko gcko commented Jan 27, 2026

PR checklist

  • Ensure you have added or ran the appropriate tests for your PR.
  • DCO signed

What type of PR is this?

  • Feature / UX improvements

What this PR does / why we need it:

  • Adds more reliable save triggers (input/paste/cut), clear/copy/export actions, and count mode toggle.
  • Improves persistence UX with cursor restore, last-synced indicator, and Cmd/Ctrl+S immediate save.
  • Enhances UI with placeholder hint, wider desktop textarea, and controls styling.
  • Focuses existing Write Wall tab on action click to avoid tab spam.
  • Adds tests for all new behaviors.

Which issue(s) this PR fixes:

  • None

Special notes for your reviewer:

  • Tests run: pnpm lint, pnpm type:check, pnpm test.
  • Node engine warning persists because local Node is v20 (repo expects ^22 or ^24).

Does this PR introduce a user-facing change?:

Adds new toolbar actions (Copy, Export, Clear), count mode toggle (bytes/chars/words), last-synced indicator, cursor restore, Cmd/Ctrl+S immediate
save, and improved textarea width/placeholder for better minimal UX.

  - Added save triggers for input/paste/cut, clear/copy/export actions, count mode toggle, cursor restore, and immediate save shortcut in src/main.ts.
  - Updated UI to include clear/copy/export buttons, count mode selector, last-synced label, and placeholder in src/html/index.html.
  - Refined layout and controls styling, widened textarea on desktop in src/css/main.css.
  - Updated service worker to focus existing tab when open in src/service_worker.ts.
  - Expanded tests for all new behaviors in src/main.spec.ts and src/service_worker.spec.ts.

Signed-off-by: Jared Scott <jared.scott@variable.team>
@gcko gcko merged commit d223e60 into main Jan 27, 2026
6 checks passed
@gcko gcko deleted the feature/add-feature branch January 27, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant