Skip to content

2.2.0: writer feedback fixes (phone + button, chapter order, popups, grammar, / formatting, Android caret, smart quotes, installer) - #5

Merged
ehitimum merged 1 commit into
mainfrom
fix/writer-feedback
Nov 24, 2026
Merged

ehitimum merged 1 commit into
mainfrom
fix/writer-feedback

Conversation

@ehitimum

Copy link
Copy Markdown
Owner

Fixes from the latest round of writer feedback, on phone and PC, plus the 2.2.0 version bump. Builds on main after #1–#4 were merged.

Fixes

  1. Phone "+" button scrolled with the list. It was positioned inside the scrolling document list, so it moved up with the chapters and notes. It now sits outside the list and stays in place.
  2. Chapter order "1, 2, 4, 3" that couldn't be fixed.
    • Cause: a new document got order = documents.length, and after a delete that can reuse an existing order number. Documents with the same order were then sorted by last-edited time, so editing Chapter 3 moved it below Chapter 4, every time.
    • Fix: new documents go after the highest order. Ties now sort by title, naturally ("Chapter 2" before "Chapter 10"), then by id. Desktop, phone, the book compiler and the backend all sort this way, so existing projects show the right order straight away.
  3. AI and grammar windows hugged the edges or fell off on the last line. One placement helper (lib/floating.ts) now positions the grammar popover, the inline AI card and menu, and the slash menu:
    • below the text when there's room, else above it, else in the middle of the visible area;
    • centred, not stuck to an edge;
    • inside the visible part of the editor, so the phone keyboard doesn't count as free space.
      The AI card on phones is no longer pinned to the bottom of the screen.
  4. Grammar checking too strict; flags stayed after a fix.
    • LanguageTool runs at its default level instead of "picky", with style and typography checks off.
    • A flag disappears as soon as you edit the flagged text. The next check flags it again if it's still wrong.
    • The popover adds Ignore (that rule for that word, this session) and Add to dictionary for spelling, kept on the device. Useful for character and place names.
  5. Formatting in the "/" menu. New Format group: Bold, Italic, Underline, Strikethrough, Inline code, Clear formatting, and left/centre/right/justify alignment.
  6. Smooth caret missing on Android. Android keyboards treat every word you type as an in-progress composition, and the smooth caret hid during composition. It now follows the browser's own caret while a word is being composed.
  7. Smart quotes. Typing " and ' gives “ ” and ‘ ’; straight quotes stay in code. Backspace right after a replacement brings back the straight quote. It's on by default, with a toggle in Settings → Writing on desktop and phone, and in the command palette.
  8. Windows installer updates an older version.
    • Older copies installed with the setup .exe (per user) are already handled by Tauri's update page.
    • Copies installed with the .msi (all users, in Program Files) were invisible to the setup, so both stayed installed. On the development PC, 2.0.0 (setup) and 2.1.0 (MSI) were installed side by side.
    • Only the NSIS setup is built now. A pre-install hook (src-tauri/windows/hooks.nsh) finds an MSI copy and offers to remove it, so the new version replaces it. Projects in ~/.mnemoscript are not touched. With no older copy, it installs normally.

Testing

  • npm run check passes: lint, types, 170 tests, build.
  • New regression/writer-feedback.regression.test.tsx (15 tests) covers each fix above except the installer.
  • cargo test: 107 passed, including the new tied_order_sorts_by_natural_title_not_edit_time. cargo clippy -- -D warnings is clean.

Not verified on real hardware

  • The Android caret with real keyboards (Gboard, Samsung). The test simulates composition events.
  • The installer removing an MSI copy. It was not run here, so the copies installed on this PC were left alone.

🤖 Generated with Claude Code

- Phone library: the + button no longer scrolls with the document list.
- Chapter order: new documents go after the highest order, ties sort by
  natural title then id (frontend and backend), so editing a chapter can
  no longer move it ("1, 2, 4, 3").
- Grammar popover, inline AI card/menu and slash menu are placed inside the
  visible editor area (below, else above, else middle; keyboard-aware),
  centred instead of hugging an edge.
- Grammar: default level instead of picky, style checks off, flags drop when
  their text is edited, Ignore and Add to dictionary.
- Slash menu: Format group (bold, italic, underline, strikethrough, inline
  code, clear formatting, alignment).
- Smooth caret on Android: follow the browser caret during IME composition
  instead of hiding (Android keyboards compose every word).
- Smart quotes, on by default, toggle in Settings (desktop and phone).
- Windows: build only the NSIS setup; a pre-install hook offers to remove an
  older MnemoScript installed with the MSI so it is replaced, not duplicated.
- Version 2.2.0; docs and regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ehitimum
ehitimum merged commit 91e5e24 into main Nov 24, 2026
3 checks passed
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