about summary refs log tree commit diff
path: root/src/view
Commit message (Collapse)AuthorAgeFilesLines
* Add dids for discover debug (#6063)Hailey2024-11-011-2/+4
| | | | | * add dids * keep is_internal
* [Statsig] Track threads (#6057)dan2024-11-011-0/+7
| | | | | * [Statsig] Send thread length * Split events
* Fix character count with intent (#6056)dan2024-11-011-2/+6
|
* Fixes for thread composer on Android (#6045)dan2024-11-012-37/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Extract function to read contentHeight later * Remove autoscroll to bottom We're going to implement this in the UI layer instead. * Remove worklet from non-worklets to avoid confusion * Rename and invert hasScrolled* variables Their naming was too ambiguous (they used to represent "has scrolled _away_ from X"). I inverted them and clarified the naming. No functional changes. * This should not be necessary It's already called not just from UI thread. And it only sets shared values, which can be done from either thread. * Make hasScrolledTo* derived values It wasn't always correct to derive them manually because reading from .value is stale on JS thread. We could fix that by using the local variables but it makes more conceptualy sense to treat these as derived anyway. * Reimplement autoscroll-to-bottom in UI layer Doing it here ensures we also do it when you add an image at the end of the thread. Otherwise it's very confusing where it went. * Use fancy ScrollView This seems to fix ScrollView getting stuck after inserting images at the thread end on Android. * More aggressive scroll-to-bottom * "Fix" cursor getting stuck on Android * Revert "Use fancy ScrollView" This reverts commit 04e34a54e3b75f8a77de5062bff5fe6e76420bbb.
* Thread composer UI (#6050)dan2024-11-018-212/+459
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Basic adding of posts * Switch active post on focus * Conditionally show plus button * Insert posts midthread * Track active/inactive post * Delete posts in a thread * Focus after deletion * Tweak empty post detection * Mix height for active only * Move toolbar with post on web * Fix footer positioning * Post All button * Fix reply to positioning * Improve memoization * Improve memoization for clearVideo * Remove unnecessary argument * Add some manual memoization to fix re-renders * Scroll to bottom on add new * Fix opacity on Android * Add backdrop * Fix videos * Check alt for video too * Clear pending publish on error * Fork alt message by type * Separate placeholder for next posts * Limit hitslop to avoid clashes
* Implement posting threads (#6049)dan2024-11-011-1/+1
| | | | | | | | | | | | | | | * Implement posting a thread Co-authored-by: Dan Abramov <dan.abramov@gmail.com> * Fix native build * Remove dependency on web crypto API * Fix unrelated TS error (wtf) --------- Co-authored-by: Mary <148872143+mary-ext@users.noreply.github.com>
* Check video state for the entire thread (#5957)dan2024-11-013-76/+162
| | | | | | | | | | | | | * Switch to using post ID for post actions * Pass post-bound dispatch to ComposerPost * Check video state for entire thread * Always bind post actions to an ID * Rename variable for consistency * Fix clashing keys
* Tweak 2FA enabled state (#6043)Samuel Newman2024-11-011-3/+1
| | | | | * tweak 2fa presentation * tweak dialog text style
* [Settings] Thread prefs revamp (#5772)Samuel Newman2024-10-316-95/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thread preferences screen * minor tweaks * more spacing * replace gate with IS_INTERNAL * [Settings] Following feed prefs revamp (#5773) * gated new settings screen * Following feed prefs * Update src/screens/Settings/FollowingFeedPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/screens/Settings/FollowingFeedPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * replace pref following feed gate * Update src/screens/Settings/FollowingFeedPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * use "Experimental" as the header --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] External media prefs revamp (#5774) * gated new settings screen * external media prefs revamp * replace gate ext media embeds * Update src/screens/Settings/ExternalMediaPreferences.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * add imports for translation * alternate list style on native --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] Languages revamp (partial) (#5775) * language settings (lazy restyle) * replace gate * fix text determining flex space * [Settings] App passwords revamp (#5777) * rework app passwords screen * Apply surfdude's copy changes Thanks @surfdude29! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * format * replace gate * use admonition for input error and animate --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] Change handle dialog (#5781) * new change handle dialog * animations native only * overflow hidden on togglebutton animation * add a low-contrast border * extract out copybutton * finish change handle dialog * invalidate query on success * web fixes * error message for rate limit exceeded * typo * em dash! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * another em dash Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * set maxwidth of suffixtext * Copy tweak Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * [Settings] Notifs settings revamp (#5884) * rename, move, and restyle notif settings * bold "experimental:" --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Explicitly mark lightbox worklets (#6038)dan2024-10-312-0/+11
|
* Improve notification localization (#5550)Eric Bailey2024-10-311-61/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve notification localization (#3911) * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Update PostMeta.tsx * Update RightNav.tsx * Update FeedItem.tsx * Update FeedItem.tsx * a11y * Update FeedItem.tsx * Update PostThreadItem.tsx * Update PostThreadItem.tsx * revert * Update FeedItem.tsx * Update FeedItem.tsx * Update FeedItem.tsx * Revert "Merge remote-tracking branch 'upstream/main' into Improve-notification-localization" This reverts commit f435d1e7ed083fac9d57cc1548b31c692d633c49, reversing changes made to dae2aee6765c7983dfdd93599e388afc55e53843. * Reapply "Merge remote-tracking branch 'upstream/main' into Improve-notification-localization" This reverts commit c93ac1904852e0e96b9df14b168a7063ca36465d. * Update ThreadgateBtn.tsx * Rm import edits for now * Cleanups --------- Co-authored-by: Minseo Lee <itoupluk427@gmail.com>
* Measure tapped image coordinates before opening lightbox (#6001)dan2024-10-316-11/+52
| | | | | * Measure image on press * Pass dimensions to the lightbox component
* Added blur to search's onPressMenu (#6017)brian2024-10-301-0/+1
|
* Sort imports (#6009)dan2024-10-2959-188/+208
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Add subtle web hover to interactive rows (#5989)dan2024-10-296-43/+101
| | | | | | | * Add subtle web hover to interactive rows * Adjust numbers * Ignore touch devices
* Settings revamp (#5745)Samuel Newman2024-10-297-11/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * start building storybook * add title * add some styles * try out new icons * more settings list component parts * make text do the spacing * clean up storybook * gated new settings screen * switch account * add current profile * use Layout.Screen * Layout.Header and Layout.Content * translate helpdesk text thanks @surfdude29! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * add account settings * undo changes to export car dialog * privacy and security screen * Translate protect account stuff Thanks @surfdude29! Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * content and media settings * about settings * 2fa copy Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * a11y and appearance * use new components for appearance settings * redesign accessibility settings * Update ContentAndMediaSettings.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * add divider * remove a11y and appearance middleman screen * fix web settingslist styles * new SettingsList.Group component * explain how portal magic works * hide pwioptout in old location * Update Settings.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * replace gate with `IS_INTERNAL` * add IS_INTERNAL to app-info.web * fix profile area growing * add close button to switch account --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Show almost-instant preview when opening lightbox (#6000)dan2024-10-298-78/+55
| | | | | | | | | | | * Plumb thumbUri down to the lightbox * Remove onLoad tracking from lightbox * Hook up placeholder URI to the image * Fix NaN causing crash on double tap while offline * Protect against NaNs in the future
* Refactor lightbox model to plain object (#5999)dan2024-10-294-33/+32
| | | | | * Refactor lightbox model to plain object * Rename name to type
* temp revert to old modal (#6005)Samuel Newman2024-10-293-2/+319
|
* Extend composer checks to all posts in a thread (#5955)dan2024-10-291-50/+65
| | | | | * Check all posts in a thread * Use thread for more checks
* Remove indirection when rendering composer state (#5954)dan2024-10-292-66/+40
| | | | | | | * Simplify onPressCancel dismiss condition * Remove alias variables * Move grapheme length calculation to reducer
* Refactor composer state for threads (#5945)dan2024-10-293-49/+112
| | | | | | | * Refactor composer state for threads * Remove unnecessary default case TS can see it's exhaustive.
* Disable Post button when empty (#5953)dan2024-10-291-32/+19
| | | | | | | * Disable Post button when empty * Use regular disabled button * Disable post on video error until cleared
* fix splash screen (#5997)Samuel Newman2024-10-291-0/+1
|
* Fix video quality for short videos (#5996)Samuel Newman2024-10-292-13/+36
| | | | | * remove auto level capping * flush first fragment on loop
* Fix drawer icon alignment (#5991)Eric Bailey2024-10-281-0/+1
|
* fix alt position (#5985)Samuel Newman2024-10-282-2/+2
|
* hailey/filter dupe labels (#5984)Hailey2024-10-281-2/+6
|
* More e2e test fixes (#5982)Hailey2024-10-281-4/+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
* Fix E2E tests (#5980)Hailey2024-10-284-15/+19
|
* One more haptic tweak (#5979)Samuel Newman2024-10-283-13/+4
| | | | | | | * remove 10ms delay and make light * make like haptic light * same for PostThreadComposePrompt
* Tweak haptics, add to post controls (#5977)Samuel Newman2024-10-284-11/+23
| | | | | | | * change timing to 10ms, make ios only * add haptics to post controls * rm from like button
* Make composer min height conditional and align attachments (#5976)dan2024-10-283-4/+18
| | | | | | | * Make web composer min height condiitonal * Fix alignment * Fix alignment on mobile
* FAB - delay followup haptic (#5974)Samuel Newman2024-10-282-24/+19
|
* Don't render `ComposerPills` when unnecessary (#5975)Hailey2024-10-281-0/+6
|
* drawer border (#5893)Samuel Newman2024-10-281-1/+3
|
* Fix clipping issue with 2 image grid (#5744)Samuel Newman2024-10-281-12/+1
| | | | | * don't set aspect ratio for 2 images * let -> const
* Fix missing style (#5944)dan2024-10-251-1/+1
|
* Conditionally render labels button when media exists in post (#5942)Hailey2024-10-253-139/+120
| | | | | | | * conditionally render button * update labels on remove * tweak
* Split composer into smaller components (#5941)dan2024-10-253-357/+521
| | | | | | | | | | | | | | | * Extract ComposerTopBar * Rename state variables to align with props * Extract ComposerEmbeds * Extract ComposerPills * Extract ComposerFooter * Tweak condition to be simpler * Extract ComposerPost
* Display non-post embeds in composer preview (#5647)dan2024-10-244-51/+54
| | | | | | | | | | | | | * Display non-post embeds in composer preview * Remove starter pack special case from ExternalLinkEmbed This should not be needed because starter pack composer preview now goes through the record preview codepath, just like in the feed/post view. * Hide record ext links if quote is present * Align remove buttons Remove the implicit top padding in record embeds and make it conditional, which is similar to how we treat external link embeds. This makes the X button appear in the same place for record embeds as with links.
* Include hydrated responses for other records (#5646)dan2024-10-242-7/+23
| | | | | | | * Include hydrated responses for other records * Rename meta -> view This is actually all it is now.
* Refactor post meta to return PostView (#5645)dan2024-10-247-77/+30
|
* Put ExternalEmbedRemoveBtn on top (#5887)Eric Bailey2024-10-241-1/+1
|
* tweak hover state (#5892)Samuel Newman2024-10-211-109/+104
|
* double haptic (#5886)Samuel Newman2024-10-211-6/+6
|
* Fix NavSignupCard on web (#5813)Eric Bailey2024-10-212-3/+3
|
* Add back borders to feed liked-by screen (#5811)Eric Bailey2024-10-211-2/+5
|
* Disable feed debug gate due to EME (#5815)Hailey2024-10-171-3/+2
|
* Move self-label button (#5780)Hailey2024-10-173-95/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * move self label button? * rm * make sure its usable on large font sizes * tweak wording * update icon * tweaks * change button label and change opacity when no media (#5794) * Tweak it moar (#5807) * Tweak it moar * Pluralize * Labels --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol>