Commit af4cecd
committed
feat(review-editor): mobile annotation, settings, theme (tier 2)
Builds on the read-only mobile shell. New on mobile:
- Tap any added/removed line to start a selection; tap another to
extend the range. Diff lines now render with line numbers and a
ring highlight when selected.
- Sticky bottom bar shows the current selection with Cancel /
Annotate, or — when no selection — Send Feedback (N) / Approve.
- Bottom sheet composes the annotation: type picker
(comment/suggestion/concern), textarea, save/cancel. Saves through
a new `handleAddMobileAnnotation` that runs the same withPRContext +
setAnnotations pipe as desktop, so drafts/sidebar/exports treat
mobile-created annotations identically.
- Header surfaces a Theme cycle (system/light/dark via useTheme) and
a Settings button that opens the existing Settings dialog via its
externalOpen hook.
- Annotation cards on mobile gain a delete affordance; existing
desktop deletion path is reused via handleDeleteAnnotation.
- CompletionOverlay on mobile now handles all three submit states
(approved/feedback/exited), not just exited.1 parent ed31d8b commit af4cecd
2 files changed
Lines changed: 533 additions & 65 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
914 | 942 | | |
915 | 943 | | |
916 | 944 | | |
| |||
1712 | 1740 | | |
1713 | 1741 | | |
1714 | 1742 | | |
1715 | | - | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
1716 | 1747 | | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1717 | 1756 | | |
1718 | 1757 | | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
1722 | 1771 | | |
1723 | 1772 | | |
1724 | 1773 | | |
| |||
0 commit comments