about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThreadItem.tsx
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-rendering improvements for like/unlike (#2180)dan2023-12-121-1/+3
| | | | | | | | | | | | | | | * Add a few memos * Memo PostDropdownBtn better * More memo * More granularity * Extract PostContent * Fix a usage I missed * oops
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-101-139/+151
| | | | | | | | | | | | | | | | | | | | | * Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer
* Add label appeal tool to posts and accounts (#2124)Paul Frazee2023-12-071-0/+10
| | | | | * Add label appeal tool to posts and accounts * Fix translations
* Treeview: more UI tweaks (#2125)Paul Frazee2023-12-061-10/+7
| | | | | | | * Treeview: more UI tweaks * Only show treeview when there are branching replies * Fix types
* More treeview UI tweaks (#2093)Paul Frazee2023-12-051-8/+30
| | | | | * Improve tree-view spacing consistency and always include one reply bar level * Reduce expanded post avi size
* E2E 🟢 (#2092)Eric Bailey2023-12-051-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add logged out e2e ctrl, fix login test * Fix log handling via env vars in expo * Fix create account test * Upgrade dev-env * Fix home screen tests * Fix composer tests * Fix curate-lists tests, split in two * Fix invite codes test * Fix curate-lists tests * Give up on mergefeed test * Fix mod lists * Fix app view url * Fix profile tests * Fix profile test with hack * Keep using globals * Fix two more * Fix thread view * Better skip for merge feed * Revert debug code
* Tune treeview thread mode to have consistent spacing (#2078)Paul Frazee2023-12-041-8/+8
|
* Fix: distinguish between post media and quotes with the moderation hider (#2075)Paul Frazee2023-12-041-1/+8
| | | | | * Fix: distinguish between post media and quotes with the moderation hider * Type fixes
* Improve the post-hiders and the header alerts (#2074)Paul Frazee2023-12-041-1/+5
| | | | | * Improve the post-hider and the header alerts * Adjust the contenthider (icon, font size)
* Shadow refactoring and improvements (#1959)dan2023-11-211-3/+1
| | | | | | | | | | | | | | | * Make shadow a type-only concept * Prevent unnecessary init state recalc * Use derived state instead of effects * Batch emitter updates * Use object first seen time instead of dataUpdatedAt * Stop threading dataUpdatedAt through * Use same value consistently
* Hindi Internationalization (#1914)Ansh2023-11-201-2/+4
| | | | | | | | | | | | | | | | | | | | | | * get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
* Do less work (#1953)dan2023-11-171-4/+5
|
* Add Shadow type (#1900)Paul Frazee2023-11-141-2/+2
|
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-141-7/+8
| | | | | | | | | * Move composer state to a context * Rework composer to use RQ --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * Move broadcast channel to lib * Refactor view/com/post/Post and remove temporary 2 components * Add useModerationOpts hook * Refactor notifications to use react-query * Fix: only trigger updates in useModerationOpts when the values have changed * Implement unread notification tracking * Add moderation filtering to notifications * Handle native/push notifications * Remove dead code --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Refactor feeds to use react-query (#1862)Paul Frazee2023-11-101-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update to react-query v5 * Introduce post-feed react query * Add feed refresh behaviors * Only fetch feeds of visible pages * Implement polling for latest on feeds * Add moderation filtering to slices * Handle block errors * Update feed error messages * Remove old models * Replace simple-feed option with disable-tuner option * Add missing useMemo * Implement the mergefeed and fixes to polling * Correctly handle failed load more state * Improve error and empty state behaviors * Clearer naming
* Refactor post threads to use react query (#1851)Paul Frazee2023-11-091-228/+219
| | | | | | | | | | | | | | | | | | | * Add post and post-thread queries * Update PostThread components to use new queries * Move from normalized cache to shadow cache model * Merge post shadow into the post automatically * Remove dead code * Remove old temporary session * Fix: set agent on session creation * Temporarily double-login * Handle post-thread uri resolution errors
* Internationalization & localization (#1822)Ansh2023-11-091-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * install and setup lingui * setup dynamic locale activation and async loading * first pass of automated replacement of text messages * add some more documentaton * fix nits * add `es` and `hi`locales for testing purposes * make accessibilityLabel localized * compile and extract new messages * fix merge conflicts * fix eslint warning * change instructions from sending email to opening PR * fix comments
* Move language preferences to new persistence + context (#1837)Paul Frazee2023-11-081-4/+6
|
* Move muted threads to new persistence + context (#1838)Paul Frazee2023-11-081-7/+10
|
* Replace all logs with new loggerEric Bailey2023-11-041-8/+9
|
* Fix immediate TS errorsEric Bailey2023-11-041-4/+4
|
* Added show more for long postsHaider Ali Punjabi2023-10-261-2/+19
|
* Improve Device Detection For Better Responsiveness (#1512)Bryan Lee2023-09-281-88/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor `useOnMainScroll` function to use responsive device detection - Replace static `isDesktopWeb` with `useWebMediaQueries` hook to enable dynamic device type detection. - Create `useDeviceLimits` hook to dynamically determine `DY_LIMIT_UP` and `DY_LIMIT_DOWN` based on device type. - Update dependency arrays for the `useCallback` hooks to include new dynamic variables. * Refactor styles to be responsive to device type - Create `useStyles` hook that generates styles object based on device type detected from `useWebMediaQueries`. - Replace static styles object with dynamic styles object generated from `useStyles` hook in components. - This allows `paddingLeft` values for 'ul' and 'ol' styles to adapt to device type dynamically. - This allows `maxWidth` values for 'metaItem'' styles to adapt to device type dynamically. * Remove `isDesktopWeb` in favor of `useWebMediaQueries().isDesktop` * Refactor `SplashScreen` component for responsive design * Revision based on review results * Fix isNative check --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* boolEric Bailey2023-09-221-2/+4
|
* update translator link show logicEric Bailey2023-09-221-3/+3
|
* Tune the treeview mode to use larger immediate-children (#1506)Paul Frazee2023-09-211-19/+13
| | | | | * Tune the treeview mode to use larger immediate-children * Fix display name alignment
* Language settings updates, new primary language setting (#1471)Eric Bailey2023-09-211-1/+4
| | | | | | | | | | | | | | | * move content languages to screen * add dropdown library, style primary lang select * update settings button * show selected langauges in button * use primary language in translator link * update copy * lint
* Tune the treeview UI a bit more (#1494)Paul Frazee2023-09-201-33/+47
|
* Tree view threads experiment (#1480)Paul Frazee2023-09-191-38/+103
| | | | | | | | | | | | | * Add tree-view experiment to threads * Fix typo * Remove extra minimalshellmode call * Fix to parent line rendering * Fix extra border * Some ui cleanup
* Feed UI update working branch [WIP] (#1420)Paul Frazee2023-09-181-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Feeds navigation on right side of desktop (#1403) * Remove home feed header on desktop * Add feeds to right sidebar * Add simple non-moving header to desktop * Improve loading state of custom feed header * Remove log Co-authored-by: Eric Bailey <git@esb.lol> * Remove dead comment --------- Co-authored-by: Eric Bailey <git@esb.lol> * Redesign feeds tab (#1439) * consolidate saved feeds and discover into one screen * Add hoverStyle behavior to <Link> * More UI work on SavedFeeds * Replace satellite icon with a hashtag * Tune My Feeds mobile ui * Handle no results in my feeds * Remove old DiscoverFeeds screen * Remove multifeed * Remove DiscoverFeeds from router * Improve loading placeholders * Small fixes * Fix types * Fix overflow issue on firefox * Add icons prompting to open feeds --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Merge feed prototype [WIP] (#1398) * POC WIP for the mergefeed * Add feed API wrapper and move mergefeed into it * Show feed source in mergefeed * Add lodash.random dep * Improve mergefeed sampling and reliability * Tune source ui element * Improve mergefeed edge condition handling * Remove in-place update of feeds for performance * Fix link on native * Fix bad ref * Improve variety in mergefeed sampling * Fix types * Fix rebase error * Add missing source field (got dropped in merge) * Update find more link * Simplify the right hand feeds nav * Bring back load latest button on desktop & unify impl * Add 'From' to source * Add simple headers to desktop home & notifications * Fix thread view jumping around horizontally * Add unread indicators to desktop headers * Add home feed preference for enabling the mergefeed * Add a preference for showing replies among followed users only (#1448) * Add a preference for showing replies among followed users only * Simplify the reply filter UI * Fix typo * Simplified custom feed header * Add soft reset to custom feed screen * Drop all the in-post translate links except when expanded (#1455) * Update mobile feed settings links to match desktop * Fixes to feeds screen loading states * Bolder active state of feeds tab on mobile web * Fix dark mode issue --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Ansh <anshnanda10@gmail.com>
* Improved mute alerting (#1355)Paul Frazee2023-09-011-1/+33
| | | | | | | * Use a simpler mute alert when viewing a post by a muted user * Dont mute self-QPs when we're overriding a mute * Fix types
* Make posts behave more like links (#1316)Eric Bailey2023-08-281-0/+5
| | | | | | | | | | | | | | | | | * use cursor for post cards * ignore type error * handle meta keys on non native links (cherry picked from commit daccafea0b7ab21af6572767e496d20f32ead353) * remove cursor on non-post notifications, not quite right * Simplify link handling --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* add title attr to text text links (#1228)Eric Bailey2023-08-221-7/+12
| | | | | | | | | | | | | | | * add title attr to text text links * Revert "add title attr to text text links" This reverts commit c028cd184efd3b2788d8f46134eecf521e5d7b07. * use css tooltips * add to expanded post state * handle theming * add to bskyweb
* fix thread double border (#1251)Eric Bailey2023-08-221-4/+5
|
* Fix to post meta overflow in highlighted post (#1211)Paul Frazee2023-08-171-3/+8
| | | | | * Fix to post meta overflow in highlighted post * Give more space to desktop web
* default translate to device language (#1207)Eric Bailey2023-08-171-2/+1
|
* Fix tap target size of post dropdown menus (#1180)Paul Frazee2023-08-151-17/+19
|
* Add alerts to embeds (#1138)Paul Frazee2023-08-081-2/+8
| | | | | | | * Add alerts to embeds * Add images to the mock data * Fix types
* remove unused stylesEric Bailey2023-08-081-16/+0
|
* fix thread spacing and reply linesEric Bailey2023-08-081-176/+217
|
* fix post thread feedback regression (#1109)Eric Bailey2023-08-041-1/+3
|
* Collection of small UI fixes & improvements (#1104)Paul Frazee2023-08-041-2/+2
| | | | | | | | | * Fix black bar appearing in link card images * Include QPs in posts cache * Fix like color for feed likes in notifications * Fix post embed spacing
* Labeling & moderation updates [DRAFT] (#1057)Paul Frazee2023-08-031-36/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First pass moving to the new labeling sdk (it compiles) * Correct behaviors around interpreting label moderation * Improve moderation state rendering * Improve hiders and alerts * Improve handling of mutes * Improve profile warnings * Add profile blurring to profile header * Add blocks to test cases * Render labels on profile cards, do not filter * Filter profiles from suggestions using moderation * Apply profile blurring to ProfileCard * Handle blocked and deleted quote posts * Temporarily translate content filtering settings to new labels * Fix types * Tune ContentHider & PostHider click targets * Put a warning on profilecard label pills * Fix screenhider learnmore link on mobile * Enforce no-override on user avatar * Dont enumerate profile blur-media labels in alerts * Fixes to muted posts (esp quotes of muted users) * Fixes to account/profile warnings * Bump @atproto/api@0.5.0 * Bump @atproto/api@0.5.1 * Fix tests * 1.43 * Remove log * Bump @atproto/api@0.5.2
* [APP-737] Accessible native dropdown menu (#988)Ansh2023-07-281-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix comments * add zeego package * get basic native dropdown working * add separator and icon components * refined native dropdown component * add android build properties to app.json * move `PostDropdownBtn` to its own component * fix selectors issue * move `PostDropdownBtn` to its own component * fix hitslop * fix post dropdown hitslop * fix android dropdown icons * move `UserAvatar.tsx` to native dropdown * use native dropdown in `ProfileHeader.tsx` * use native dropdown in `PostThreadItem.tsx` * use native dropdown in `UserBanner.tsx` * use native dropdown in `CustomFeed.tsx` * replace `testId` with `testID` (which is what is used everywhere) * move `Settings.tsx` to use native dropdown * create jest mocks for zeego * create jest mock for `zeego/dropdown-menu` * web styles for native dropdown * remove example native dropdown * adjust web styles * fix propagation * fix pressable in `Settings.tsx` * animate dropdown on web * add keyboard nav and hover styles * add hitslop to constants * add comments to NativeDropdown component * temporarily removed android icons * add testID to PostDropdownBtn * add testID back to all NativeDropdown button implementations * add postDropdownBtn testID * add testID to dropdown items * remove testID from dropdown menu item * refactor home-screen tests for native dropdown * refactor profile-screen tests for native dropdown * refactor thread-muting tests for native dropdown * refactor thread-screen tests for native dropdown * fix dropdown color for post dropdown button * remove icons from android dropdown menu * fix `create-account.test.ts` * fix `invite-codes.test.ts`
* [APP-782] Support invalid handles correctly (#1049)Paul Frazee2023-07-271-21/+15
| | | | | | | | | | | | | | | | | | | * Update profile link construction to support handle.invalid * Update list links to support using handles * Use did for isMe check to ensure invalid handles dont distort the check * Shift the red (error) colors away from the pink spectrum * Add ThemedText helper component * Add sanitizedHandle() helper to render invalid handles well * Fix regression: only show avatar in PostMeta when needed * Restore the color of likes * Remove users with invalid handles from default autosuggests
* #984 Updating `indexedAt` timestamps (#1024)Eric Bailey2023-07-191-2/+6
| | | | | | | | | * add TimeElapsed util component, integrate into PostThreadItem * integrate into posts * use consistent naming * use mobx and single interval for TimeElapsed
* Post UI updates (Profile Preview on mobile) (#990)Paul Frazee2023-07-061-22/+16
| | | | | | | | | | | | | | | | | | | | | | | * Update postmeta to put the timestamp on the right side on mobile * Drop the two-line PostMeta mode * Add ProfilePreview modal * Tune PostMeta to give the best behavior possible for a given platform * Remove old showFollowBtn attributes * Fix style issue * Switch the follow button in the profile header to use the inverted color for consistency with the rest of the app * Fix lint * Fix darkmode * Tune the profile preview footer * Better analytics choice
* [APP-724] Collection of accessibility fixes (#949)Paul Frazee2023-07-031-42/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix: include alt text on the web lightbox image * a11y: Dont read the 'ALT' label * a11y: remove a wrapper behavior from posts This appears to have been introduced with the goal of creating meta actions on posts, but the behavior seems counter-productive. The accessibility inspector was unable to access individual items within the post and therefore most content was simply skipped. There may be a way to support the post actions without losing the ability to access the inner elements but I couldnt find it. -prf * a11y: apply alt tags to image wrappers so they get read * a11y: set Link accessibilityLabel to the title if none set * a11y: skip the SANDBOX watermark * a11y: improve post meta to not read UI and give a useful date * ally: improve post controls * a11y: add labels to lightbox images on mobile * fix types
* Fix: correctly handle the case where the user has no languages configuredPaul Frazee2023-06-301-1/+3
|