about summary refs log tree commit diff
path: root/src/view/com/util
Commit message (Collapse)AuthorAgeFilesLines
* Fix `onEndReached` not firing sometimes on web (#4728)Hailey2024-07-041-0/+1
| | | | | | | | | | | | | | | * handle off screen visibility observer. * Revert "handle off screen visibility observer." This reverts commit e499ea0ed66b31964f79261b41f58a288b0cdb6f. * key ftw * Remove special case --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* New user progress guides (#4716)Paul Frazee2024-07-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add the animated checkmark svg * Add progress guide list and task components * Add ProgressGuide Toast component * Implement progress-guide controller * Add 7 follows to the progress guide * Wire up action captures * Wire up progress-guide persistence * Trigger progress guide on account creation * Clear the progress guide from storage on complete * Add progress guide interstitial, put behind gate * Fix: read progress guide state from prefs * Some defensive type checks * Create separate toast for completion * List tweaks * Only show on Discover * Spacing and progress tweaks * Completely hide when complete * Capture the progress guide in local state, and only render toasts while guide is active * Fix: ensure persisted hydrates into local state * Gate --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Add starter pack embeds to posts (#4699)Hailey2024-07-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | * starter pack embeds * revert test code * Types * add `BaseLink` * precache on click * rm log * add a comment * loading state * top margin --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* change maxWidth -> width to fix GIFs in DMs (#4717)Samuel Newman2024-07-031-5/+2
| | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Add dismiss backdrop to native dropdowns (#4711)dan2024-07-011-65/+98
|
* Better starterpack embed (#4659)Hailey2024-06-261-29/+47
|
* Add debug feedContext label (#4598)dan2024-06-221-0/+29
|
* Rework "Who can reply" to blend more nicely into the UI (#4578)Paul Frazee2024-06-192-7/+7
| | | | | | | | | | | | | * Rework WhoCanReply controls in threads to blend more nicely * Fix layout * Fix post control hitslops * Move dialog content to separate component --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* use 1000x1000 for image height in avatar cropper (#4453)Hailey2024-06-201-2/+2
|
* Option for large alt badges (#4571)Samuel Newman2024-06-203-21/+22
| | | | | | | | | | | | | * add pref for large alt badge * add to settings * do the large badge bit * Tweak wording --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Truncate post metrics and fix truncation on native (#4575)Samuel Newman2024-06-203-20/+25
| | | | | | | | | | | | | | | * truncate post counts * add numberformat polyfill * Fix perf * Simplify type shenanigans * Bump versions to remove dupes --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* add support for `ListEmptyComponent`, allow `undefined` data (#4403)Hailey2024-06-191-24/+39
| | | | | | | * add support for `ListEmptyComponent`, allow `undefined` data * change `header` and `footer` to be in line with `emptyComponent` * don't render `onEndReached` or `onStartReached` `Visibility` if empty
* GIF previews in notifications (#4447)Samuel Newman2024-06-191-18/+39
| | | | | | | | | | | * gifs in notifications * remove try/catch * Limit try/catch scope --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Collection of moderation fixes (#4566)Paul Frazee2024-06-191-11/+24
| | | | | | | | | | | | | | | * Fix: dont blur parents in threads that embed blocks * After tapping 'Show hidden replies', show the individual hider cards * Add shape override to UserAvatar and fix the fallback avi for labelers * Fix precedence * Detect shape for DefaultAvatar --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Force callers of `getTimeAgo` to pass in the value for "now" (#4560)Eric Bailey2024-06-181-2/+4
| | | | | | | * Remove icky hook for now * Force callers of getTimeAgo to pass in the 'now' value * Update usage in Newskie dialog
* Server-side thread mutes (#4518)Samuel Newman2024-06-182-22/+27
| | | | | | | | | | | * update atproto/api * move thread mutes to server side * rm log * move muted threads provider to inside did key * use map instead of object
* 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
|