about summary refs log tree commit diff
path: root/src/view/shell
Commit message (Collapse)AuthorAgeFilesLines
* [Layout] Bleed profile banner into safe area (#6967)Samuel Newman2024-12-121-1/+5
| | | | | | | | | | | | | | | | | | | | | | | * bleed profile banner into safe area (cherry picked from commit 50b3a4d0c6fd94b583ffe4efa65de35c81ae7f4e) * pointer events none when hidden (cherry picked from commit bae2c7b2dd6d7f858a98812196628308c0877755) * fix web (cherry picked from commit e3f9597170375f2903b6e567b963f008ec95aed1) * add status bar shadow * rm log * rm mini header * speed up animation * pass bool rather than int in light status bar
* fix: typo in filename list-converations (#7036)Renan Mav2024-12-103-3/+3
|
* Refactor sidebar (#6971)Eric Bailey2024-12-103-181/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor RightNav (cherry picked from commit 96bb02acfd2d7452df18a0e7410e6a7169a583ed) * Better gutter handling * Clean up styles * Memoize breakpoints * Format * Comment * Loosen spacing, handle overflow, smaller text to match prod * Fix circular imports on native * Return 0 instead of undefined for easier calculations * Re-assign * Fix * Port over fix from subs/base * Space out right nav feeds, widen sidebar to match prod * Fix lost padding on home header * Fix perf by not actually linking to new URL * Remove underline on focus * Foramt --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix drawer swipe (#7007)dan2024-12-101-2/+26
| | | | | | | | | | | | | | | | | | | * Fix drawer swipe * Remove existing setDrawerSwipeDisabled management This is already pretty error-prone. And with tracking whether we're idle it's going to get more complicated. Let's pause and think. * Move setDrawerSwipeDisabled logic into Pager * Remove win/2 threshold It feels super arbitrary and breaks muscle memory. If the gesture is reliable, we shouldn't need it. * Maybe work around iOS freeze * Tweak gestures, add comments * Tune gestures
* [Layout] Base (#6907)Eric Bailey2024-12-054-111/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add common gutter styles as hook * Add computed scrollbar gutter CSS vars * Add new layout components * Replace layout components in settings screens * Remove old back button * Invert web border logic for easier migration * Clean up Slot API * Port over FF handling of scrollbar offset * Trade boilerplate for ease of use * Limit to one line * Allow two lines, fix wrapping * Fix alignment * sticky headers * set max with on header and center * [Layout] Notifications Header (#6910) * Replace notifications screen header * fix cropped indicator --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Replace Hashtag header (#6928) * [Layout] ChatList header (#6929) * Replace ChatList header * update chat settings as well --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * Add web borders to Chat settings * Remove unused var * Move ChatList header outside center * Replace empty chat layout * fix breakpoints * [Layout] Scrollbar gutters (#6908) * Fix sidebar alignment * Make sure scrollbars don't hide * Gift left nav more space * Use stable one-edge, update logic in RightNav * Ope * Increase width * Reset * Add transform to sidebars * Remove bg in sidebars * Handle shifts in layout components * Replace scroll-removal handling * Make react-remove-scroll an explicit dep * Remove unused script * use correct scroll insets (#6950) * [Layout] Feeds headers (#6913) * Replace ViewHeader internals, duplicate old ViewHeader * Replace Feeds header * Replace SavedFeeds header * Visual alignment * Uglier but clear * Use old ViewHeader for SavedFeeds * use Layout.Center instead of Layout.Content * use left-aligned header for feed edit * delete unused old view header --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * [Layout] Every other screen (#6953) * attempt to fix double borders on every other screen * delete ListHeaderDesktop * delete `SimpleViewHeader` and fix screens (#6956) * Make Layout.Center not full height * Refactor List to use Layout.Center, remove built-in borders * Fix Home screen * Refactor PagerWithHeader to use Layout components * Replace components in ProfileFeed and ProfileList * Borders on Profile * Search screen replacements * use new header for profile subpage header (#6958) * Search AutocompleteResults * use new header for starter pack wizard (#6957) * Fix post thread * Enable borders by default * Moderation muted and blocked accounts * Fix scrollbar offset on Labeler * Remove ScrollView from Moderation * Remove ScrollView from Deactivated * Remove ScrollView from onboarding * Remove ScrollView from SignupQueued * Mark deprecations * fix lint * Fix double borders on profile load * Remove unneeded CenteredView from noty Feed * Remove double Center layout on Notifications screen * Remove double Center layout on ChatList screen * Handle scrollbar offset in chat * Use new atom for other scrollbar offsets * Remove borders from old views * Better doc * Remove temp migration prop * Fix new atom usage on native * Clean up Hashtag screen * Layout docs * Clarify usage in Pager * Handle nested offset contexts * Clean up Layout * fix feeds page * asymmetric header on native (#6969) * Reusable header const * Fix up home header * Add back button to convo * Add hitslop to header buttons * Comment * Better handling on native for new atom * Format * Fix nested flatlist on mod screens * Use react-remove-scroll-bar directly * Fix notification count overflow on web * Clarify doc --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* css color transitions on left nav (#6768)Samuel Newman2024-11-271-0/+1
|
* Lightbox status bar behaviour (#6637)Samuel Newman2024-11-261-32/+18
| | | | | | | * lightbox status bar * add hideTransitionAnimation="slide" * move navigation bar logic to util
* Fix leaking background (#6642)dan2024-11-221-1/+3
|
* Fix some overdraw (#6617)dan2024-11-211-6/+3
|
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-193-3/+1
| | | | | | | | | config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled
* Use compiler-safe Reanimated get/set APIs (#6391)dan2024-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | * Convert lightbox to get/set * Work around software-mansion/react-native-reanimated#6613 * Use get/set in more places * Port MainScrollProvider to get/set * Port more to get/set * Port composer to get/set * Remove unnecessary thread hops in composer * Port more things to get/set * Convert more to get/set, remove redundant runOnJS * Convert remaining cases to get/set
* manually implement drawertype logic (#6419)Samuel Newman2024-11-161-0/+1
|
* Slightly reduce rerenders in drawer (#6270)Samuel Newman2024-11-121-31/+38
| | | | | * slightly reduce renders in drawer * fix missing hook
* Increase bottom padding for mobile login/signup footer (#6254)Khuddite2024-11-121-1/+1
|
* Fix unscrollable body when returning to desktop mode from mobile mode with ↵JustSNguyen2024-11-111-2/+3
| | | | | | | | | | | navigation drawer open. (#6201) * fix: only lock body when drawer is opened and not in desktop mode * Reuse variable --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix non-home screen soft resetting when feed is selected from right nav (#6158)gpp-02024-11-081-1/+1
|
* Improve accessibility for navigation on web (#6120)Samuel Newman2024-11-054-69/+169
| | | | | | | | | * improve accessibility for bottom bar tabs * improve a11y for left nav * group main content into <main> * use flex_1 rather than absoluteFill
* Improve focus-visible outlines in navigation (#6061)Yaël Guilloux2024-11-011-1/+8
| | | | | | | | | | | * feat add focus_visible atom * feat use focus_visible atom in Button.tsx style * Tweak --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Sort imports (#6009)dan2024-10-291-3/+3
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Fix drawer icon alignment (#5991)Eric Bailey2024-10-281-0/+1
|
* drawer border (#5893)Samuel Newman2024-10-281-1/+3
|
* Refactor post meta to return PostView (#5645)dan2024-10-243-3/+0
|
* tweak hover state (#5892)Samuel Newman2024-10-211-109/+104
|
* Fix NavSignupCard on web (#5813)Eric Bailey2024-10-212-3/+3
|
* Logged out improvments (#5771)Samuel Newman2024-10-172-3/+6
| | | | | | | | | | | | | | | | | * fetch all accounts in one go * delete unused component * add safeareaview to logged out layout * add safe area insets to LoggedOut view * add safe area insets to the error boundary * sanitize displaynames/handles * use button for X * increase spacing
* Fix up drawer background (#5785)Eric Bailey2024-10-173-8/+27
|
* Unified 'Chats' in drawers into 'Chat' (#5790)Frudrax Cheng2024-10-171-2/+2
|
* Mark "Logo by ..." in RightNav translatable like it in Drawer (#5788)Takayuki KUSANO2024-10-171-14/+16
|
* Clean up drawer (#5761)Samuel Newman2024-10-163-346/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clean up drawer * add a lil bit of padding * Drawer nits (#5778) * Avi stuff * Rm SafeAreaView, not working on Android * Dividers and spacing * Fix count on android, ended up refactoring the whole MenuItem * Litttttle more space * Improve NavSignupCard * format nit --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Remove top padding from shell, move down into individual screens (#5548)Samuel Newman2024-10-142-26/+17
|
* Move composer open shortcut to shell (#5723)Hailey2024-10-111-3/+7
| | | | | | | | | * move composer shortcut hook * put intent handler in same place * dont allow shortcuts if no session * revert change
* Move intent handler to a child of `InnerApp` (#5695)Hailey2024-10-111-0/+3
|
* Allow nested sheets without boilerplate (#5660)Samuel Newman2024-10-091-0/+2
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Make 'em round (#5654)Eric Bailey2024-10-082-1/+2
|
* Move Dialogs to Radix (#5648)Samuel Newman2024-10-081-42/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use Redix FocusTrap (#5638) * Use Redix FocusTrap * force resolutions on radix libs * add focus guards * use @radix-ui/dismissable-layer for escape handling * fix banner menu keypress by using `Pressable` * add menu in dialog example to storybook --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> * use DismissableLayer/FocusScope for composer * fix storybook dialog * thread Portal through Prompt and avatar/banner * fix dialog style regression * remove tamagui --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Sheets] [Pt. 1] Root PR (#5557)Hailey2024-10-042-69/+45
| | | | | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* Font tweaks (#5597)Eric Bailey2024-10-031-2/+3
| | | | | | | * Increase fontWeight on android * Use atoms for a couple stray fontWeights * Rm unused file
* ALF text input for generic search input (#5511)Samuel Newman2024-09-301-5/+5
| | | | | | | | | | | | | | | | | | | | | * alf text input for generic search input * clearer ref naming * Adjust props and definition * Migrate props * Migrate props * Migrate props * Replace on search screen * rm old props --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Rework native autocomplete (#5521)Hailey2024-09-271-4/+3
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Remove Segment (#5518)Hailey2024-09-272-18/+7
|
* tab change on press rather than pressIn (#5508)Samuel Newman2024-09-261-2/+1
|
* [Share Extension] Move away from deprecated API, implement JS side of things ↵Hailey2024-09-262-0/+2
| | | | (#5509)
* Clean up left nav on web (#5488)Eric Bailey2024-09-261-88/+53
| | | | | | | | | | | | | | | | | | | | | | | | | * Tweak nav item count style * Fix nav item icon width and alignment * Just refactor the thing * New compose button * Z index * Rounded * Tweak gradient * Tweak gradient * Tweak gradient * Solid * Adjust position of counter * Always a circle
* Make the counter more rounded (#5083)Igor Adrov2024-09-261-1/+1
|
* Use scale animation for tabs (#5483)Samuel Newman2024-09-251-6/+10
| | | | | * fix passing PressableScale oPressIn prop * use PressableScale for tabs
* MobX removal take 2 (#5381)Mary2024-09-252-15/+7
| | | | | | | | | * mobx removal take 2 * Actually rm mobx --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-241-5/+6
| | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Fix a few more emoji locations * Couple more * No throw
* [Neue] Font weights (#5442)Eric Bailey2024-09-204-32/+32
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* WIPEric Bailey2024-09-111-0/+1
|
* Release 1.91 prep (#5215)Paul Frazee2024-09-071-1/+1
| | | | | | | * Run intl:extract * Test fixes * Update pt-BR translations for video