Skip to content

Fix/habit time input formatting - #45

Merged
thomasluizon merged 3 commits into
mainfrom
fix/habit-time-input-formatting
Apr 13, 2026
Merged

thomasluizon merged 3 commits into
mainfrom
fix/habit-time-input-formatting

Conversation

@thomasluizon

Copy link
Copy Markdown
Owner

No description provided.

Introduce keyboard-aware scroll utilities and components and apply them across mobile screens and bottom sheets to improve keyboard UX (new KeyboardAwareScrollView/BottomSheet variants and hook). Update AppTextInput to integrate input reveal behavior. Harden habit form inputs with BufferedSheetInput enhancements (draft syncing, transform/onDraftChange, focus handling) and add unit tests for habit form time formatting. Add/adjust goal support: action-chips now include goal action types and labels, chat invalidates goal queries and opens GoalDetailDrawer on goal chips, and GoalDetailDrawer fixes state reset and progress form population. Misc: BottomSheetModal uses safe-area insets and adjusted keyboard behavior, several modals/screens (profile, login, support, onboarding, create/edit goal, create/edit/log habit) switched to keyboard-aware scroll views, and tests/mocks updated accordingly.
Add stable IDs for editable habits and switch list keys to use them to avoid rekeying issues. Implement a draft/value sync in BottomSheetAppTextInput (isFocused, draftValue, lastSyncedValue) to prevent parent-driven value updates from clobbering the user's in-progress edits and wire up onBlur/onChangeText accordingly. Overhaul keyboard-aware scrolling: track keyboard frame and scroll offset, measure input positions via UIManager.measureInWindow, compute target scroll Y, and support scrollTo/scrollToOffset or responder fallbacks. Also forward onScroll from ScrollView/FlatList/BottomSheetScrollView into the keyboard-aware context so focused inputs are reliably scrolled into view. These changes fix focus/value glitches and make input reveal/scroll behavior more robust across scrollable types.
@vercel

vercel Bot commented Apr 13, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
orbit-ui-mobile-web Ignored Ignored Apr 13, 2026 8:39pm

@thomasluizon
thomasluizon merged commit 3c225b2 into main Apr 13, 2026
3 checks passed
@thomasluizon
thomasluizon deleted the fix/habit-time-input-formatting branch April 13, 2026 20:39
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