Reenable pull-to-refresh, fix mobile zooming on edit, update search modal#1773
Reenable pull-to-refresh, fix mobile zooming on edit, update search modal#1773
Conversation
…odal Signed-off-by: prxt6529 <prxt@6529.io>
📝 WalkthroughWalkthroughRefactors header search to a derived-state pattern replacing local fetch flags; adds a header-triggered PullToRefresh wired from AppLayout and removes its Capacitor gating; expands Lexical editor integrations in EditDropLexical; and updates tests/mocks and global styles for capacitor contexts. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant User as User
participant App as AppLayout
participant Header as HeaderSearchModal
participant PTR as PullToRefresh
participant Q as ReactQuery
User->>App: load page
App->>Header: render header, attach headerRef
App->>PTR: mount PullToRefresh(triggerZoneRef=headerRef)
User->>PTR: touch/drag on header (target inside headerRef)
PTR->>PTR: track touch, compute pullDistance
PTR->>App: emit refresh on release
App->>Q: trigger refetches for relevant queries
User->>Header: type search term
Header->>Q: debounce → queries (enabled by shouldSearchDefault)
Q-->>Header: return data / loading / error
Header->>User: render UI based on derivedState
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Styles
Tests
✏️ Tip: You can customize this high-level summary in your review settings.