Skip to content

feat: mobile note move actions via context menu#208

Merged
careck merged 5 commits into
developmentfrom
feat/mobile-move-notes
Jun 2, 2026
Merged

feat: mobile note move actions via context menu#208
careck merged 5 commits into
developmentfrom
feat/mobile-move-notes

Conversation

@careck

@careck careck commented Jun 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Add Move Up, Move Down, Indent (move into sibling above), and Outdent (move out of parent) to the long-press context menu on mobile/tablet
  • Buttons are disabled when the action isn't possible (first/last sibling, no parent, leaf target)
  • i18n keys added to all 7 locales
  • Also fixes: Android bundle identifier (com.2pisoftwarecom.twopisoftware), #[cfg(desktop)] gate on manage_scripts_menu_item, and android-dev.sh --device/--emulator flags

Test plan

  • Long-press a note on Android physical device (Samsung S25 Ultra) — move buttons appear in bottom sheet
  • Move Up/Down reorders siblings correctly
  • Indent moves note into sibling above as last child
  • Outdent moves note to grandparent after current parent
  • Buttons correctly disabled when action not possible
  • TypeScript compiles clean (npx tsc --noEmit)
  • Verify desktop context menu unchanged (no move buttons on desktop)

careck added 5 commits June 2, 2026 17:40
Add Move Up, Move Down, Indent (move into sibling above), and Outdent
(move out of parent) to the long-press context menu on mobile/tablet.
Replaces drag-and-drop which isn't available on touch devices.

Also fixes: Android build identifier (com.2pisoftware → com.twopisoftware),
#[cfg(desktop)] gate on manage_scripts_menu_item, and android-dev.sh
--device/--emulator flags.
Four buttons (Copy Note, Tree Actions, Invite, Share) used regular
quotes instead of backticks, so itemClass wasn't interpolated —
causing inconsistent padding and font sizes.
Add outline-none to suppress the browser's default black border on
the tabIndex={0} tree div. The focus-visible ring still shows on
keyboard navigation.
The tree div is just a keyboard event target — the selected node
already highlights, so a container-level focus ring is redundant
and visually distracting.
@careck careck merged commit 817912b into development Jun 2, 2026
2 checks passed
@careck careck deleted the feat/mobile-move-notes branch June 2, 2026 08:37
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