about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThreadItem.tsx
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Fix thread muting (#932)Paul Frazee2023-06-301-1/+1
|
* [APP-718] Improvements and fixes to language handling (#931)Paul Frazee2023-06-301-15/+55
| | | | | | | | | | | * Add locale helpers for narrowing languages * Add a translate link to posts in a different language * Update language filtering to use narrowing when multiple declared * Fix a few more RTL layout cases * Fix types
* [APP-705] Metrics revamp pt2 (#896)Ansh2023-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * export track function from analytics.tsx * fix create account tracking * fix tracking sign in * add custom feed events * fix type errors * refactor create post event * add profile follow & unfollow events * refactor PostsFeedSliceModel into its own file * refactor PostThreadItemModel into its own file * reorganize code a lil bit * refactor post-thread-item to use post-feed-item model under the hood * add post events * add post reply tracking * track custom feed load more * track list subscribe and unsubscribe
* Bump @types/react to ^18 and adjust types (#889)Logan Rosen2023-06-221-2/+2
|
* Add testnet warning (#880)Paul Frazee2023-06-141-0/+3
| | | | | | | * Add testnet warning * Add watermarks to posts * Call the test environment the Sandbox
* translate to primary language rather than just english (#814)Samuel Newman2023-06-011-2/+4
|
* Add ability to reply, repost (without quote post), and like posts using ↵Ollie H2023-05-301-3/+41
| | | | | VoiceOver (#765) Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Use non-pipe translation link (#740)Ollie H2023-05-301-1/+5
|
* Use dropdown for web reposting and quote posting (#607)Ollie H2023-05-151-1/+1
| | | | | | | | | | | | | | | * Use dropdown for web reposting and quote posting * Remove collateral damage * Tune the repost dropdown positioning * Move postctrls into their own folder * Factor out repost button into native/web build --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* [APP-639] Improve nsfw handling & force hidden on iOS (#605)Paul Frazee2023-05-091-2/+7
| | | | | | | | | | | * Identify adult content labels and handle them more specifically * Change adult content defaults to more conservative settings * Add an adultcontentenabled override that prohibits access on iOS * Improve usability of the content hider * Fix lint
* Format count and fix type warning (#600)Ollie H2023-05-081-2/+3
|
* Remove some confusing horizontal lines in threads (#566)Paul Frazee2023-05-021-1/+9
|
* [APP-611] Add nice date to expanded post view (#567)Paul Frazee2023-05-021-2/+5
| | | | | * Add nice date to expanded post view * Fix styles
* React Native accessibility (#539)Ollie H2023-05-011-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * React Native accessibility * First round of changes * Latest update * Checkpoint * Wrap up * Lint * Remove unhelpful image hints * Fix navigation * Fix rebase and lint * Mitigate an known issue with the password entry in login * Fix composer dismiss * Remove focus on input elements for web * Remove i and npm * pls work * Remove stray declaration * Regenerate yarn.lock --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Refactor moderation to apply to accounts, profiles, and posts correctly (#548)Paul Frazee2023-04-271-16/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ScreenHider component * Add blur attribute to UserAvatar and UserBanner * Remove dead suggested posts component and model * Bump @atproto/api@0.2.10 * Rework moderation tooling to give a more precise DSL * Add label mocks * Apply finer grained moderation controls * Refactor ProfileCard to just take the profile object * Apply moderation to user listings and banner * Apply moderation to notifications * Fix lint * Tune avatar & banner blur settings per platform * 1.24
* Thread muting [APP-29] (#500)Paul Frazee2023-04-201-0/+24
| | | | | | | * Implement thread muting * Apply filtering on background fetched notifs * Implement thread-muting tests
* Add first round of labeling tools (#467)Paul Frazee2023-04-121-32/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework notifications to sync locally in full and give users better control * Fix positioning of load more btn on web * Improve behavior of load more notifications btn * Fix to post rendering * Fix notification fetch abort condition * Add start of post-hiding by labels * Create a standard postcontainer and improve show/hide UI on posts * Add content hiding to expanded post form * Improve label rendering to give more context to users when appropriate * Fix rendering bug * Add user/profile labeling * Implement content filtering preferences * Filter notifications by content prefs * Update test-pds config * Bump deps
* Stripe checkmark emojis from display names (close #396) (#419)Paul Frazee2023-04-071-1/+4
|
* Update AtUri import to use official package with fix for usernames that ↵Paul Frazee2023-04-071-1/+1
| | | | start with numbers (close #414) (#418)
* Reorganize state models for clarity (#378)Paul Frazee2023-04-031-2/+2
|