about summary refs log tree commit diff
path: root/src/screens/Profile
Commit message (Collapse)AuthorAgeFilesLines
* Better alignment on web (#7098)Eric Bailey2024-12-131-2/+3
|
* mark string for localization (#7083)surfdude292024-12-121-1/+1
|
* New profile feed header (#7056)Eric Bailey2024-12-122-0/+761
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Init hacking * Lil baby button checkpoint * Playing around * Revert "Playing around" This reverts commit f58a7fafa12269035d440cfa2d8cb1dbd562305f. * Mostly there * Cleanups * Cleanup * Fix report dialog nesting * Remove transform on native * Rename header * Fix layout, overflowing FAB buttons * Remove hack * Couple of fixes * Keep Pin primary CTA (#7061) * Update src/screens/Profile/components/ProfileFeedHeader.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Simplify, use old string * Wrap Trans better --------- Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* [Layout] Bleed profile banner into safe area (#6967)Samuel Newman2024-12-125-22/+202
| | | | | | | | | | | | | | | | | | | | | | | * 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
* followersCount -> followsCount (#7080)Samuel Newman2024-12-121-1/+1
|
* refine plural marks (#7065)Minseo Lee2024-12-121-9/+14
|
* More exact counts (#7059)Samuel Newman2024-12-112-6/+2
| | | | | | | | | * post liked by * rm unnecessary layout.center * do post quotes/reposts * set height of header to prevent layout shifts
* Followers/following exact count (#7057)Samuel Newman2024-12-112-0/+112
| | | | | | | | | * followers exact count in heading * exact count for following * move files to new dir * use <Plural>
* Reduce excessive empty space on profile with no bioDan Abramov2024-12-112-4/+4
|
* Disambiguate feed component naming (#7040)dan2024-12-101-2/+2
| | | | | * Rename posts/Feed* -> posts/PostFeed* * Rename notifications/Feed* -> notifications/NotificationFeed*
* [Layout] Base (#6907)Eric Bailey2024-12-052-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Prevent ProfileHeaderHandle from breaking out of its parent view (#6574)Horus Lugo2024-11-201-1/+1
|
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-194-4/+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
* Add useHandleRef as a lighter alternative for useAnimatedRef (#6500)dan2024-11-181-11/+7
|
* Use compiler-safe Reanimated get/set APIs (#6391)dan2024-11-172-8/+9
| | | | | | | | | | | | | | | | | | | | | * 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
* [Lightbox] Always rely on Expo Image cache (#6189)dan2024-11-091-0/+1
| | | | | | | | | | | | | | | * Inline useImageAspectRatio * Switch AutoSizedImage to read dimensions from Expo Image cache * Include thumbnail dimensions in image data * Use dims from Expo Image cache in lightbox * Fix wiring so all thumbnails get dimensions * Fix type * Oops
* [Lightbox] Open animation (#6159)dan2024-11-091-13/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Measure all rects for embeds * Measure avi rects too * Animate lightbox in and out * Account for safe area in the animation * Tune spring times * Remove null checks for measurements * Remove superfluous view * Block swipe while opening * Interpolate width/height on native side for Android * Make it fast by animating only affine transforms * Fix tall image final state The initial animation frame is still off on both platforms. * Try to squeeze perf * Avoid blank images during animation on iOS * Fix bad rebase * Fix a huge memory issue due to expo/expo#24894 * Fix last frame flash * Fix thum dim calculation for tall images
* [Lightbox] Add border radius to avatars (#6136)dan2024-11-081-0/+1
| | | | | | | | | | | * Preserve shape in lightbox * Rename shapes to semantic meanings It looks like after all I do want to fork based on those. * Round avatars on the web * Oops
* Refactor lightbox prop drilling (#6073)dan2024-11-041-2/+12
| | | | | | | | | | | * Refactor lightbox footer to render prop * Unify lightbox types * Unindent * Refactor LightboxFooter props * Move LightboxFooter into the implementation file
* fix text clipping around external embed's domain (#6012)Ben Harris2024-11-011-1/+1
|
* Measure tapped image coordinates before opening lightbox (#6001)dan2024-10-311-0/+1
| | | | | * Measure image on press * Pass dimensions to the lightbox component
* Sort imports (#6009)dan2024-10-292-6/+6
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Refactor lightbox model to plain object (#5999)dan2024-10-291-2/+5
| | | | | * Refactor lightbox model to plain object * Rename name to type
* temp revert to old modal (#6005)Samuel Newman2024-10-292-6/+26
|
* More e2e test fixes (#5982)Hailey2024-10-281-3/+8
| | | | | | | | | | | | | | | | | | | * fix feed reorder test * fix feed reorder test pt 2 * fix edit profile test * fix mod list test * fix fab * add assert * one more assertVisible * fix search test * tap now now if it shows up
* Remove double `an` from error message strings (#5782)surfdude292024-10-171-1/+1
| | | | | | | | | * Update ProfileHeaderLabeler.tsx * Update FeedErrorMessage.tsx * Update FeedShutdownMsg.tsx * Update ProfileFeed.tsx
* Edit profile dialog ALF refresh (#5633)Samuel Newman2024-10-153-39/+416
|
* Remove top padding from shell, move down into individual screens (#5548)Samuel Newman2024-10-142-16/+18
|
* Move the back-button in front of banner (#5748)gpp-02024-10-142-2/+2
|
* equal spacing on displayname/handle (#5636)Samuel Newman2024-10-072-2/+2
|
* Font tweaks (#5597)Eric Bailey2024-10-031-1/+1
| | | | | | | * Increase fontWeight on android * Use atoms for a couple stray fontWeights * Rm unused file
* Fix profile header buttons (#5558)Eric Bailey2024-10-033-15/+15
| | | | | | | | | | | * Fix profile header buttons * Adjust labeler buttons too * Fix load state jumps * Small tweak for web * Remove log
* Remove Segment (#5518)Hailey2024-09-272-20/+9
|
* constrain blur (#5485)Samuel Newman2024-09-251-2/+2
|
* Reduce display name size (#5482)Samuel Newman2024-09-251-2/+9
| | | | | * reduce displayname size * only apply to small screens
* subtle avatar grow animation (#5480)Samuel Newman2024-09-252-22/+88
|
* Header blurred banner on overscroll (take 2) (#5474)Samuel Newman2024-09-252-34/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * grow banner when overscrolling * add blurview * make backdrop blur as it scrolls * add activity indicator * use rotated spinner instead of arrow * persist position of back button * make back button prettier * make blur less jarring * Unify effects * Tweak impl * determine if should animate based on scroll amount * sign comment --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Allow profile header to overscroll (#5457)Samuel Newman2024-09-252-11/+17
| | | | | | | | | * add allowoverscroll prop * ensure spinner is visible * more generic prop for `<List>` * rename to allowHeaderOverScroll
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-242-4/+8
| | | | | | | | | | | | | * 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-201-3/+3
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* Renaming the Follow button to "Follow back" when followed by user (#5281)Wesley2024-09-121-0/+2
| | | | | * Renaming the follow button to follow back when followed by user * Fixing conditions and reusing existing translation
* Set show_follow_suggestions_in_profile to true (#5205)dan2024-09-071-48/+2
|
* Ensure profile labels can be appealed separately from account labels (#5154)Eric Bailey2024-09-041-1/+1
|
* [Experiment] Suggest profiles in profile (#5030)dan2024-08-301-20/+24
| | | | | | | | | | | | | | | * Rename variable to disambiguate with parent scope * More variables where they are used * Inline variables * Add suggestions in profile * Gate it * rm space * Remove header suggestions under gate
* Localize dates, counts (#5027)Eric Bailey2024-08-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | * refactor: consistent localized formatting * refactor: localized date time * refactor: localize relative time with strings * chore: fix typo from copy-paste * Clean up useTimeAgo * Remove old ago * Const * Reuse * Prettier --------- Co-authored-by: Mary <git@mary.my.id>
* Profile screen performance tweak - Adjust initial num to render based on ↵Hailey2024-08-291-1/+8
| | | | header height (#5005)
* Fix overflow on posts (#4899)Samuel Newman2024-08-081-1/+1
| | | | | | | | | | | | | | | | | * overflow posts, via contentHider * margin->padding for a bit more leeway * overflow notifications * overflow on header * revert from contenthider, put on text in all places * fix zalgo text in handle in composer --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Video] Visibility detection view (#4741)Hailey2024-08-071-0/+1
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-232-3/+4
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Remove invalid labelers when subscribing/unsubscribing (#4771)Eric Bailey2024-07-121-24/+26
| | | | | | | * Remove invalid labelers when subscribing/unsubscribing * Let the async lock cook * Use link to associate, leave copy as is