Skip to content

Refine mobile annotation toolbar interactions#3

Open
solrachix wants to merge 1 commit intomobile/pdf-render-debug-and-mobile-uxfrom
mobile/toolbar-figma-followup
Open

Refine mobile annotation toolbar interactions#3
solrachix wants to merge 1 commit intomobile/pdf-render-debug-and-mobile-uxfrom
mobile/toolbar-figma-followup

Conversation

@solrachix
Copy link
Copy Markdown
Owner

Summary

  • refine the mobile annotation toolbar layout and iconography toward the Figma-inspired direction
  • update drawing tool behavior so ink/highlight/underline behave as drawing presets while select remains the only selection tool
  • add a dedicated bottom-bar trigger icon and enable note creation by tapping the page when the note tool is active

Testing

  • pnpm --filter @papyrus-sdk/core build
  • pnpm --filter @papyrus-sdk/ui-react-native build
  • pnpm --filter PapyrusMobile exec react-native run-ios --no-packager

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
papyrus Ready Ready Preview, Comment Apr 4, 2026 1:15am

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b9e2e0633d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"comment"
);
}),
[isNative, resolvedActiveTool, layout.width, layout.height]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include annotation deps in comment tap gesture memo

The commentTapGesture memo omits addAnnotationAt (and therefore omits state it closes over, such as current annotationColor), so the tap handler can run with stale values when those settings change while comment mode stays active. A reproducible case is changing the annotation color and then tapping to place a note: the created comment can keep the previous color until one of the listed memo deps changes. Please include the callback/state in dependencies (or memoize addAnnotationAt with the right deps) so note creation always uses current settings.

Useful? React with 👍 / 👎.

bounces={false}
contentContainerStyle={styles.primaryToolsRow}
>
<View style={styles.primaryToolsRow}>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore horizontal overflow handling for tool row

Switching the main toolbar row from a horizontal ScrollView to a plain View removes overflow handling, but the row still uses fixed-width groups/buttons (historyGroup, controlsGroup, and fixed tool widths). On narrow devices (for example ~320pt width), the center tools no longer fit and are clipped (especially with container using overflow: "hidden"), making some controls partially or fully inaccessible. Keeping horizontal scrolling or making the row fully shrinkable would prevent this regression.

Useful? React with 👍 / 👎.

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