about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
...
* fix keyboard overlaying onboarding inputs (#4558)Hailey2024-06-181-1/+7
|
* Add `useGetTimeAgo` and utils (#4556)Eric Bailey2024-06-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create a testable version of ago() and re-enable the disabled test (#4364) * Enable the test of ago() * Use test cases This puts the input and the expected values next to each other. * Create dateDiff function This is a copy of ago(), but with the ability to specify the second date instead of using Date.now(). * Let ago() use dateDiff() * Move constants close to usage * Test dateDiff instead of ago This makes it possible to test the dates without being forced to rely on what the current date is. The commented out tests do not yet pass. This is fixed in later commits. * Update dateDiff and enable the remaining tests * Split up tests, use date-fns as helpers * Remove old test * Add long format * Add hook * Migrate to hooks * Delete old code * Or equal to * Update comment --------- Co-authored-by: Jan Aagaard <jan@aagaard.net>
* fix native post meta (#4530)Hailey2024-06-161-46/+31
|
* Feed source card (#4512)Eric Bailey2024-06-141-1/+1
| | | | | | | | | | | | | | | * Pass event through click handlers * Add FeedCard, use in Feeds screen * Tweak space * Don't contrain rt height * Tweak space * Fix type errors, don't pass event to fns that don't expect it * Show unresolved RT prior to facet resolution
* Set profile hover prefetch stale time to 30s (#4417)Eric Bailey2024-06-131-34/+41
| | | | | | | * Set prefetch stale time to 30s * Run prefetch on mouseOver * Only prefetch once on mousemove
* Don't show warning when sharing your own post in PWI opt-out mode (#4495)Hailey2024-06-122-5/+10
|
* Move feeds screen into common navigator, handle usages (#4365)Eric Bailey2024-06-112-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move feeds screen into common navigator, handle usages * Add link to Feeds from home screen (#4366) * Add link to feeds to home screen header * Center logo * Replace icons * Tweak spacing * Tweak spacing * Swap icon, sizing * Buttonize, size * Make menu same alignment on all screens * Remove FeedsTab support, enable drawer swipe on MessagesTab * Add note * Vertically align header * Swap in Pin * Use hashtag icon * Remove png * Fix reference * Ensure alignment with home and other screens
* rip out native translate (#4482)Samuel Newman2024-06-111-15/+2
|
* add hitslop to repost button (#4469)Samuel Newman2024-06-101-1/+3
|
* Visually improve the empty state of feeds (#4466)Paul Frazee2024-06-101-18/+37
|
* Fix (#4430): Use separate hooks for shell mode animated styles (#4451)Francesco Lodovici2024-06-103-6/+6
| | | | | | | | | * Fix (#4430): Use separate hooks for shell mode animated styles * Consolidate in one file --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* cancel animations before updating value for min-shell animation (#4386)Hailey2024-06-061-1/+7
| | | | | * cancel animations before updating value * comment
* add types for `desktopFixedHeight` to `List` (#4356)Hailey2024-06-052-1/+2
| | | | | | | * add types for `desktopFixedHeight` * nit * accept both `number` and `boolean`
* Release 1.85 (#4372)Paul Frazee2024-06-041-0/+1
| | | | | * Update tests * Run intl extract
* Fix: visually indicate when quoted content is labeled (#4369)Paul Frazee2024-06-051-2/+4
|
* Fix forwarded ref (#4348)dan2024-06-041-9/+12
|
* allow nested quotes in DMs (#4345)Samuel Newman2024-06-042-28/+26
|
* Unify profile tabs and lists screens placeholders (#4315)Bartosz Kaszubowski2024-06-031-3/+6
|
* fix accessibility label in notifications (#4305)Hailey2024-05-312-1/+23
| | | | | | | | | | | | | | | | | | | * fix accessibility label in notifications * add accessibility options to expand post * inherit from outside, but always include `activate` * include option to disable label/hint on previewable avatar * fix hidden elements still being read on voiceover * make it work for followers too * extract variable * fix hint * update wording elsewhere
* [🐴] Option to share via chat in post dropdown (#4231)Samuel Newman2024-05-312-7/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add send via chat button to post dropdown (cherry picked from commit d8458c0bc344f993266f7bc7e325d47e40619648) * let usePostQuery take uris with DIDs (cherry picked from commit 16b577ce749fd07e1d5f8461e8ca71c5b874a936) * add embed preview in composer (cherry picked from commit 795ceb98d55b6a3ab5b83187a582f9656d71db69) * rm log (cherry picked from commit 374d6b8869459f08d8442a3a47d67149e8d9ddd4) * remove params properly, or at least as close to (cherry picked from commit c20e0062c2ca4d9c2b28324eee5e713a1a3ab251) * show images in preview (cherry picked from commit 5bb617a3ce00f67bfc79784b2f81ef8dcb5bfc25) * Register embed immediately (cherry picked from commit ee120d5438a2c91c8980288665576d6a29b4c7e7) * Add hover to match embeds (cherry picked from commit 5297a5b06e499f46a9f6da510124610005db2448) * Update post dropdown copy (cherry picked from commit bc7e9f6a4303926a53c5c889f1f1b136faf20491) * Embed preview style tweaks (cherry picked from commit 9e3ccb0f25ac2f3ce6af538bb29112a3e96e01b1) * use hydrated posts from API and just use postembed component (cherry picked from commit cc0b84db87ca812d76cc69f46170ae84cfdde4ef) * fix type error (cherry picked from commit 9c49b940e1248e8a7c3b64190c5cb20750043619) * undo needless export (cherry picked from commit 1186701c997c50c0b29a809637cb9bc061b8c0a0) * fix overflow (cherry picked from commit 8868d5075062d0199c8ef6946fabde27e46ea378) --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [🐴] Record message (#4230)Samuel Newman2024-05-312-9/+27
| | | | | | | | | | | | | | | | | | | | | | | * send record via link in text * re-trim text after removing link * record message * only show copy text if message + add translate * reduce padding * adjust padding * Tweak spacing * Stop clickthrough for hidden content * Update bg to show labels --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Use new icons on notifications screen (#4299)Samuel Newman2024-05-311-8/+10
| | | | | | | * use new icons on notif screen * replace placeholder icon too * cull unused legacy icons
* Composer - fix modals, and other tweaks (#4298)Samuel Newman2024-05-312-19/+20
| | | | | | | | | | | | | | | | | | | * fix depreciated import * add animations to old dropdown * wrap modals in fullwindowoverlay * move errors inside header * add background to bottom bar and stop overlap * nest dialogs on android * fix android (wrap in gesturehandlerrootview) * make borders all the same color * revert threadgate button back to solid
* Change many border widths from `1` to `hairlineWidth` (#4294)Hailey2024-05-316-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feed items * update some more * moar * profile card * composer and notifications * settings screen * remove border from first item in feeds * remove border from first item in feeds * more removal of top border * fix flatlist rendering * oops * scroll to top fab * a.border * centeredview/list * placeholder * web sidebar * search posts * feeds list * user lists * list header * account list width 1 * hide top border feedgens * same for lists * fix tab bar web desktop * wait... * show the border on desktop web * fix lists * fix lists * round
* Fix scrolling for labeler profiles (#4286)dan2024-05-302-10/+5
|
* put dropdown in fullscreenoverlay on iOS (#4284)Samuel Newman2024-05-301-9/+19
|
* play haptics before closing modal (#4283)Samuel Newman2024-05-302-12/+8
|
* match loadmore position to fab (#4280)Samuel Newman2024-05-302-13/+22
|
* Post controls update followup (#4276)Samuel Newman2024-05-301-1/+7
| | | | | | | | | * rm legacy repost modal * make repost button transparent * reduce gap between post and ctrls * remove old repost modal on web
* scale down FAB on press (#4259)Samuel Newman2024-05-301-20/+30
|
* Use a margin of -6 instead of -5 for PostCtrls 😵‍💫 (#4272)Hailey2024-05-302-2/+2
| | | | | * -6 instead of -5 😵‍💫 * same here
* add prop to ListImpl for disabling `content-visibility` style (#4236)Hailey2024-05-302-4/+18
| | | | | | | | | | | | | | | | | * add prop to `ListImpl` for `content-visibility` style * change to `disableContentVisibility` * lint * tweaks * Keep the fix more general * Clarify ambiguity --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Use ALF for post controls (#3400)Samuel Newman2024-05-305-281/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * alf the repost dropdown on web + import icons * alf like icon * convert other post controls * add missing padding to share button * refine buttons and use better icons * revert buttonicon changes * remove ButtonIcon and ButtonText from repost dialog * use 15px font size when not big * reduce size and use contrast_25 * add hover state to logged out view * add `userSelect: 'none'` to buttons * use width rather than height * fix quote close behaviour * prettier * Fix Esc on repost * Use new icons for placeholder * Fix placeholder --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* fix: don't round up count, truncate (#4261)Mary2024-05-291-0/+4
|
* match web version exports (#4257)Samuel Newman2024-05-291-10/+2
|
* Native translation expo module (#4098)Samuel Newman2024-05-281-4/+17
| | | | | | | | | | | | | | | | | | | | | | * translation expo module * add `onClose` and `onReplacementAction` * rm onReplacementAction * make all props published * make translation api available globally w/o wrapper (#4110) * conditionally import the translation module * only use native translation if language is probably supported * open native translation via dropdown menu --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Alt text followups -- SLIGHTLY larger, and update gifs (#4252)Paul Frazee2024-05-293-8/+8
| | | | | * Bump up the alt text indicator's text size just a smidge * Update the GIF alt indicator to match images (right side, visually smaller on mobile)
* Upgrade to Expo 51 and React Native 0.74 (#3980)Hailey2024-05-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upgrade packages * remove `expo-image-picker` patch * remove old expo-updates patch * rename rn patch * downgrade crop picker * bump `ExpoGifView` `SDWebImage` version * apply config changes * update build docs for apple silicon * update build docs for apple silicon * update expo-updates patch * add back patch readme * bump `expo-dev-client` * bump `babel-preset` * update `babel.config.js` * update `react-native-paste-input` patch * remove old ota updates hook * update types * update types * downgrade pager-view * update animated ref type * fix web-only type * update `react-native-bottom-sheet` `BottomSheetTextInput` * add `expo-application` to jest mocks * remove reanimated patch * update notifications patch * update reanimated path * fix import * update yarn.lock * use `ItemT` instead of `any` * expo bump * Revert logic change, fix types * Fix JSON file --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Move ALT indicator right and shrink it a bit (#4213)Paul Frazee2024-05-242-4/+4
|
* Include feedContext in DOM as data- (#4206)dan2024-05-241-0/+1
|
* implement a safari hack for ime (#4186)Hailey2024-05-231-2/+1
| | | | | | | | | remove debug logs use a better hack implement a safari hack extract `isSafari` and `isFirefox` to a global variable
* don't use `contentVisibility` on Firefox (#4164)Hailey2024-05-221-1/+2
|
* Fix laggy scrolling on mobile app's home screen, etc. (#4108)Pokai Chang2024-05-211-5/+12
| | | | | | | | | | | * Improve scrolling performance for List * Update List.tsx * Apply same fix to profile labels --------- Co-authored-by: dan <dan.abramov@gmail.com>
* [🐴] Copy tweaks (#4042)Hailey2024-05-161-3/+3
| | | | | | | | | * `notifications` -> `conversation` * `users` -> `people` * `other participants` -> `the other participant` * rename
* [🐴] Disable hover card when blocked or blocking (#4041)Hailey2024-05-161-2/+4
|
* 100vh settings screen (#4015)Samuel Newman2024-05-142-3/+13
|
* [🐴] Settings screen (#3830)Samuel Newman2024-05-142-4/+6
| | | | | | | | | * create settings screen + api * update api package * use putrecord API with validate false * create new RadioGroup component
* Fix overflowing text on web and iOS in `PostMeta` (#3982)Hailey2024-05-131-1/+1
| | | | | | | | | | | | | | | | | * `flexShrink` on iOS and web `flexShrink` on iOS and web `flexShrink` on iOS and web actually, `flexShrink` use `flex` * adjust web * `expect-error` `onMouseUp` * ignore ref type check
* Replace e2e tests with Maestro (#3983)Paul Frazee2024-05-131-0/+1
| | | | | | | * Setup maestro tests and convert some initial tests * Remove detox * Replace all tests with maestro
* FeedFeedback fixes (#3968)dan2024-05-122-2/+2
| | | | | | | | | | | * Lower seen threshold to 1.5s * Send feedContext for replies * Use a simpler and more reliable feedContext fallback --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>