about summary refs log tree commit diff
path: root/src/view/com/util/post-ctrls
Commit message (Collapse)AuthorAgeFilesLines
...
* Two UI tweaks after recent updates (#2647)Paul Frazee2024-01-261-13/+13
| | | | | * Readd the top border to the highlighted post when a reply (revert #2628) * Readd right pad to post controls
* Fix post controls tap areas (#2627)dan2024-01-253-67/+87
|
* Fix races for post like/repost toggle (#2617)dan2024-01-251-46/+29
|
* Derive shadow like count (#2616)dan2024-01-251-6/+0
|
* Clean up the post controls UI (#2614)dan2024-01-253-24/+19
| | | | | | | | | * Hide zeros on post ctrls * Align buttons between posts * Update loading placeholders * Remove unused
* Use the RichText facets when copying post text (#2481)Mary2024-01-101-1/+8
| | | | | * feat: serialize rich text to string * feat: wire richTextToString to copy post text
* Internationalize more strings (#2440)Stanislas Signoud2024-01-092-4/+12
| | | Co-authored-by: Ansh <anshnanda10@gmail.com>
* Fix: only show appeal CW item on moderated posts (#2312)Paul Frazee2023-12-271-0/+3
| | | | | * Fix: only show appeal CW item on moderated posts * Add appeal cw control to feed view o fposts
* use `s.likeColor` everywhere (#2234)Samuel Newman2023-12-181-6/+3
|
* Re-rendering improvements for like/unlike (#2180)dan2023-12-122-10/+40
| | | | | | | | | | | | | | | * 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-2/+9
| | | | | | | | | | | | | | | | | | | | | * 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
* PWI Base (#1964)Eric Bailey2023-11-213-23/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Base work for public view * Make default moderation settings more restrictive * Fix type * Handle showing sign-in on authed actions * Fix hoc logic * Simplify prefs logic * Remove duplicate method * Add todo * Clean up RepostButton.web * Fix x button color * Add todo * Retain existing label prefs for now, use separate logged out settings * Clean up useAuthedMethod, rename to useRequireAuth * Add todos * Move dismiss logic to withAuthRequired * Ooops add web * Block public view in prod * Add todo * Fix bad import
* Hindi Internationalization (#1914)Ansh2023-11-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | * 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
* Add Shadow type (#1900)Paul Frazee2023-11-141-1/+2
|
* Composer update (react-query refactor) (#1899)Paul Frazee2023-11-141-4/+4
| | | | | | | | | * 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-122-295/+91
| | | | | | | | | | | | | | | | | | | | | | | * 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 post threads to use react query (#1851)Paul Frazee2023-11-091-0/+200
| | | | | | | | | | | | | | | | | | | * 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-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add modal state provider, replace usage except methods (#1833)Eric Bailey2023-11-082-7/+10
| | | | | | | | | | | | | * Add modal state provider, replace usage except methods * Replace easy spots * Fix sticky spots * Replace final usages * Memorize context objects * Add more warnings
* replace dropdown componentSamuel Newman2023-09-271-37/+54
|
* Readd hitslop to post controls (#1461)Paul Frazee2023-09-152-3/+8
| | | | | * Readd hitslop to post controls * Bigger hitslop on bigger controls
* Fix tap target size of post dropdown menus (#1180)Paul Frazee2023-08-153-77/+16
|
* [APP-737] Accessible native dropdown menu (#988)Ansh2023-07-282-37/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-3/+4
| | | | | | | | | | | | | | | | | | | * 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
* [APP-724] Collection of accessibility fixes (#949)Paul Frazee2023-07-032-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Use consistent font weight for repost count (#940)Dylan Smith2023-07-021-1/+1
|
* Add ability to reply, repost (without quote post), and like posts using ↵Ollie H2023-05-302-8/+2
| | | | | VoiceOver (#765) Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* add isWeb check to disable haptics on webAnsh Nanda2023-05-241-12/+4
|
* add haptics to save, like, and pin actions on feedAnsh Nanda2023-05-221-8/+7
|
* Merge branch 'main' into custom-algosPaul Frazee2023-05-171-1/+1
|
* Use dropdown for web reposting and quote posting (#607)Ollie H2023-05-153-0/+464
* 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>