about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix types and remove dead codePaul Frazee2023-08-301-1/+1
| |
| * More fixes to mobile onboardPaul Frazee2023-08-301-3/+2
| |
| * Fix onboarding on mobile webPaul Frazee2023-08-301-0/+22
| |
| * Tweak dark mode on webPaul Frazee2023-08-301-3/+10
| |
| * Tweaks to mobile onboardPaul Frazee2023-08-291-2/+2
| |
| * Rework web onboardingPaul Frazee2023-08-291-0/+62
| |
| * fix onboarding on webAnsh Nanda2023-08-291-28/+46
| |
* | Test fixesPaul Frazee2023-08-281-0/+1
| |
* | Make posts behave more like links (#1316)Eric Bailey2023-08-281-5/+11
|/ | | | | | | | | | | | | | | | | * 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>
* Eslint updates (#1281)Eric Bailey2023-08-252-2/+4
| | | | | | | | | | | | | | | | | | * eslint: Update eslintrc * eslint: Strings must use singlequote quotes * eslint: expected { after if-condition * eslint: update warnings * a little cleanup * remove conflicted file --------- Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Use `Pressable` for most links/embeds (#1181)Eric Bailey2023-08-245-23/+12
| | | | | * delay press on all links * use Pressable for all accessible links
* Fixes #1252 fix alt text setting description toggle (#1261)Ansh2023-08-231-2/+2
| | | | | * make toggle border width slightly larger * change copy
* Improve handling of unselecting languanges in composer language menu (#1093)Eric Bailey2023-08-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * allow toggling off/on multiple from main composer lang menu * fix dropdown styles for long labels * udpate model to use new string field * update language UI * save langs to history on submit * remove edit * clean up use new fields * default to deviceLocales * fix default valu * feedback * use radio icon
* add title attr to text text links (#1228)Eric Bailey2023-08-223-2/+17
| | | | | | | | | | | | | | | * 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 android postmeta alignmentPaul Frazee2023-08-171-1/+1
|
* Tune link card font sizes on desktopPaul Frazee2023-08-161-2/+2
|
* Tune up the link card to look nicer, show more info, and layout horizontally ↵Paul Frazee2023-08-161-16/+35
| | | | on web to user space more nicely (#1190)
* Fix tap target size of post dropdown menus (#1180)Paul Frazee2023-08-155-83/+28
|
* Remove view selector offsetting (close #1174) (#1183)Paul Frazee2023-08-151-5/+3
| | | | | * Remove view selector offsetting (close #1174) * Remove horizontal scroll indicator in view selector
* :sparkles: Repurpose report post modal and re-use for list reporting (#1070)Foysal Ahamed2023-08-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * :sparkles: Repupose report post modal and re-use for list reporting * :sparkles: Allow reporting a feed generator * :sparkles: :recycle: Refactor report modal into one shared component for reporting different collections * :white_check_mark: Adjust report option selector in tests * :white_check_mark: Add test for list reporting * :recycle: :sparkles: Refactor reason options and add options for list and feedgen * :broom: Cleanup remaining todo * Fix to mutelist react keys * Fix regression from rebase * Improve customfeed mobile header --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* fix prefetching lightbox images (#1163)Eric Bailey2023-08-151-9/+5
| | | | | | | | | * fix prefetching lightbox images * use array signature * fix other RN native image usage * delay prefetching to allow UI to re-render
* Fix: set background color of the view selector (#1151)Paul Frazee2023-08-101-0/+1
|
* More useful block-state information in embeds (#1150)Paul Frazee2023-08-101-1/+12
| | | | | * More useful block-state information in embeds * Tune copy
* Adds profile media tab (#1137)Eric Bailey2023-08-101-32/+60
| | | | | | | | | | | | | | | | | * add media tab * fix loading state * cleanup * update naming * upgrade api package * fix load state * add scroll view to tabs * fix overflow on mobile web
* Add self-labeling controls (#1141)Paul Frazee2023-08-095-16/+23
| | | | | | | | | | | | | | | * Add self-label modal * Use the shield-exclamation icon consistently on post moderation * Wire up self-labeling * Bump @atproto/api@0.6.0 * Bump @atproto/dev-env@^0.2.3 * Add e2e test for self-labeling * Fix types
* Add alerts to embeds (#1138)Paul Frazee2023-08-082-5/+29
| | | | | | | * Add alerts to embeds * Add images to the mock data * Fix types
* Fix rendering of feed and list post-embeds (close #1131) (#1135)Paul Frazee2023-08-081-19/+13
|
* Fix: dont use profile preview modal on mobile web (#1125)Paul Frazee2023-08-071-2/+2
|
* Collection of small UI fixes & improvements (#1104)Paul Frazee2023-08-041-5/+15
| | | | | | | | | * 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-0311-316/+395
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix keyboard support on the dropdown (#1073)Paul Frazee2023-07-283-39/+109
| | | | | * Fix: dropdown now supports accessibility labels and keyboard controls * Fix event propagation around the post dropdown
* [APP-737] Accessible native dropdown menu (#988)Ansh2023-07-289-275/+579
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-276-22/+113
| | | | | | | | | | | | | | | | | | | * 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
* #995 use `asAnchor` on external embeds (#1043)Eric Bailey2023-07-212-5/+5
| | | | | * use asAnchor on external embeds * add noFeedback back, fix TouchableWithoutFeedback anchor handling
* #984 Updating `indexedAt` timestamps (#1024)Eric Bailey2023-07-192-10/+36
| | | | | | | | | * add TimeElapsed util component, integrate into PostThreadItem * integrate into posts * use consistent naming * use mobx and single interval for TimeElapsed
* Fixes and improvements to the Profile Preview modal (#992)Paul Frazee2023-07-073-25/+49
| | | | | | | | | | | | | * Fix: use more reliable navigation method * Fix: show lightbox over the active modal * Fix: close the profile preview on navigation * Factor out UserPreviewLink and add preview behavior to notifications * Fix postmeta overflow on web * Fix lint
* Post UI updates (Profile Preview on mobile) (#990)Paul Frazee2023-07-063-121/+78
| | | | | | | | | | | | | | | | | | | | | | | * 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-703] Android horizontal scroll registers as tap (#960)Ansh2023-07-061-3/+22
| | | | | | | | | | | | | * use Touchables from react-native-gesture-handler * upgrade `react-native-gesture-handler` to latest version * add FixedTouchableHighlight for android * add workaround comment * wait for animations to complete before loading data * downgrade RNGH back to the version we had
* [APP-729] Replace the ImageHider blurring effect with a simpler and more ↵Paul Frazee2023-07-061-79/+31
| | | | | | | | | | | reliable card (#959) * Replace the ImageHider blurring effect with a simpler and more reliable card * A few improvements to ImageHider layout * Simplify the ImageHider a bit more * Small web layout tweak
* [APP-735] Post language improvements (#982)Paul Frazee2023-07-061-4/+40
| | | | | | | | | | | | | | | | | * Fix composer character-counter bouncing around UI elements * Fix composer toolbar padding when keyboard is dismissed on iOS * Use the full name of the language in the composer footer * Add headings to the DropdownButton * Update the composer language control to use a simpler dropdown * Fix lint * Add translate link to Post component used in notifications * Fix lint
* Added instructions for .well-known method (supersedes #887) (#979)Paul Frazee2023-07-051-0/+67
| | | | | | | | | | | | | | | | * Added instructions for .well-known method * Factor out SelectableBtn * Rework the ChangeHandle modal to be a little clearer * Fix lint * Fix desktop layout --------- Co-authored-by: Haider Ali Punjabi <haiderali@cyberservices.com> Co-authored-by: Haider Ali Punjabi <haideralipunjabi@hackesta.org>
* Add alt text validation option to user preferences (supersedes #913) (#914)Paul Frazee2023-07-031-1/+4
| | | | | | | | | | | | | * Add alt text validation option to user preferences * Fix typos/linting issues * Update accessibility setting to match styles * Update the required alt text reminder to go away once it's added --------- Co-authored-by: Emma Fuller <emma@emmafuller.dev>
* [APP-724] Collection of accessibility fixes (#949)Paul Frazee2023-07-0310-21/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: let images on desktop web take more vertical space (#953)Paul Frazee2023-07-031-1/+2
|
* Use consistent font weight for repost count (#940)Dylan Smith2023-07-021-1/+1
|
* [APP-692] Accessibility font-scaling fixes (#922)Paul Frazee2023-06-281-3/+1
| | | | | | | | | | | * Fix: enable font scaling in the composer text input * Fix: cancel button in search no longer wraps * Fix: report modals no longer clip off the bottom with scaled fonts * Fix scrolling on android * Allow wrapping in dropdown items until we can handle proper sizing
* Improvements to the alt text behaviors in the composer (#910)Paul Frazee2023-06-272-14/+24
| | | | | | | | | | | | | | | | | | | | | * Add an image preview in the alt modal * Composer: add info about alt text and a green checkmark when done * Shrink the alt visual indicator a bit so it doesnt obscure the image * Fix typo * Fix: avoid requiring multiple tabs to save alt text * update react-native-screens * Improve the alt text help tip * Remove redundant hints --------- Co-authored-by: Ansh Nanda <anshnanda10@gmail.com>
* [APP-657] Add share list functionality (#863)Ansh2023-06-264-34/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace delete list button text with icon * fix mute list styling on desktop * add share button to nav bar on a list * fix styling when on profile * bug: add key to ImageHorzList * clean up code & refactor * fix styling for ListItems * create a reusable ListActions component for actions on a list * remove dead styles * add keys to ListActions * add helpers to set list embed * render list embeds * fix list sharing on web * make style prop optional in ListCard * update `@atproto/api` to `0.3.13`
* [APP-690] better handling of post languages language filtering (#893)Ansh2023-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add SelectLangBtn * memoized objects that are created to reduce re-creation on re-render * add langs when uploading post * only send the top 3 languages otherwise backend will throw error * mv ContentLanguagesSettings to folder * add post languages settings modal and state * fix typos * modify feed manip to also check langs label on post * Fix tests * Remove log * Update feed-manip.ts * Fix syntax errors * UI tuneups * Show the currently selected languages in the composer * fix linting * Use a bcp-47 matching function * Fix a duplicate language issue * Fix web * Dont include lang in prompt * Make select language btn an observer * Keep device languages on top of language selection UIs * Fix android build settings * Enforce a max of 3 languages in posts * Fix tests * Fix types --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Bump @types/react to ^18 and adjust types (#889)Logan Rosen2023-06-222-2/+11
|