about summary refs log tree commit diff
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
...
* [Clipclops] New clipclop dialog (#3750)Samuel Newman2024-04-303-11/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add new routes with placeholder screens * add clops list * add a clop input * add some better padding to the clops * some more adjustments * add rnkc * implement rnkc * implement rnkc * be a little less weird about it * rename clop stuff * rename more clop * one more * add codegenerated lexicon * replace hailey's types * use codegen'd types in components * fix error + throw if fetch failed * remove bad imports * update messageslist and messageitem * import useState * replace hailey's types * use codegen'd types in components * add FAB * new chat dialog * error + default search term * fix typo * fix web styles * optimistically set chat data * use cursor instead of last rev * [Clipclops] Temp codegenerated lexicon (#3749) * add codegenerated lexicon * replace hailey's types * use codegen'd types in components * fix error + throw if fetch failed * remove bad imports * update messageslist and messageitem * import useState * add clop service URL hook * add dm service url storage * use context * use context for service url (temp) * remove log * cleanup merge * fix merge error * disable hack * sender-based message styles * temporary filter * merge cleanup * add `hideBackButton` * rm unneeded return * tried to be smart * hide go back button * use `searchActorTypeahead` instead --------- Co-authored-by: Hailey <me@haileyok.com>
* use keyboardDismissMode rather than onScrollBeginDrag (#3767)Samuel Newman2024-04-301-2/+2
|
* Fix dropdown immediately closing on Enter (#3745)dan2024-04-281-13/+24
| | | | | | | * Move dropdown content into separate component * Fix dropdown with keyboard * No-op is sufficient
* Reduce hovercard false positives, add them to display names and handles (#3739)dan2024-04-281-5/+13
| | | | | | | * Don't trigger hovercards on scroll * Add display name / handle hovercards * Increase hovercard delay
* ensure dialog is closed on unmount (#3650)Hailey2024-04-271-0/+6
| | | | | | | | | Revert "properly check if the ref is null" This reverts commit 8f563808a5d39389b0bc47a31e73cd147d1e7e8b. properly check if the ref is null ensure dialog is closed on unmount
* remove precacheThreadPostProfiles (#3729)Hailey2024-04-271-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove `precacheThreadPostProfiles` * add `displayName` to `PreviewableUserAvatar` * memo * use `precacheProfile` * pass `profile` directly to `PreviewableUserAvatar` * update the `UserAvatar`'s props * remove feed cache * one more spot * rm unused queryClient * Don't call fn unnecessarily * Preload for display name too * try notification item * add to feeditem * and finally, precache for post threads * timestamp * Fix * onBeforePress --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Clipclops] New routes with placeholder screens (#3725)Samuel Newman2024-04-273-1/+11
| | | | | | | | | | | * add new routes with placeholder screens * gate content * add filled envelope style * swap filled state * switch to `useAgent`
* Special-case bsky.app/download to open share sheet or copy to clipboard (#3710)Samuel Newman2024-04-271-1/+5
| | | | | | | | | | | * special-case bsky.app/download to share * Address feedback * Improve detection --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Session] Add `useAgent` hook and replace (#3706)Eric Bailey2024-04-253-4/+8
| | | | | | | | | | | * Hook it up * Memoize getAgent method * Use one shared reference --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [GIFs] Remove consent flow (#3652)dan2024-04-231-89/+4
| | | | | * Remove tenor from settings * Remove consent flow
* [GIFs] Replace GIPHY with Tenor (#3651)Samuel Newman2024-04-221-38/+27
| | | | | | | | | * replace GIPHY with Tenor * remove "directly" wording * replace GIPHY wording * remove log
* properly close the switch account dialog (#3558)Hailey2024-04-221-8/+9
| | | | | | | | | | | | | | | | | | | * properly close the switch account dialog * use it for switch account as well * ensure dialog is closed on unmount Revert "properly check if the ref is null" This reverts commit 8f563808a5d39389b0bc47a31e73cd147d1e7e8b. properly check if the ref is null ensure dialog is closed on unmount * Revert "ensure dialog is closed on unmount" This reverts commit a48548fd8ed53ae3eb08a0e05bb89f641c112b95.
* [GIFs] Reset scroll on query change (#3642)Samuel Newman2024-04-222-11/+18
| | | | | | | * scroll list to top on query change * dismiss keyboard on swipe list * don't need an effect
* [GIFs] Add error boundary to GIF picker (#3643)Samuel Newman2024-04-221-1/+36
| | | | | | | | | | | | | * error boundary on gif picker * add dialog.close for web users * fix size of dialog on web * Safer coercion --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* only open tag menu on long press (#3553)Samuel Newman2024-04-221-3/+13
|
* add maxwidth to app language dropdown (#3635)Samuel Newman2024-04-221-0/+1
|
* fix onEndReached issue by forcing flatlist to scroll (#3623)Samuel Newman2024-04-192-3/+19
|
* Throttle gif search by 500ms (#3622)Samuel Newman2024-04-192-8/+30
| | | | | | | | | * debounce gif search by 300ms * Throttle it instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Add GIF select to composer (#3600)Samuel Newman2024-04-197-12/+453
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * create dialog with flatlist in it * use alf for composer photos/camera/gif buttons * add gif icons * focus textinput on gif dialog close * add giphy API + gif grid * web support * add consent confirmation * track gif select * desktop web consent styles * use InlineLinkText instead of Link * add error/loading state * hide sideborders on web * disable composer buttons where necessary * skip cardyb and set thumbnail directly * switch legacy analytics to statsig * remove autoplay prop * disable photo/gif buttons if external media is present * memoize listmaybeplaceholder * fix pagination * don't set `value` of TextInput, clear via ref * remove console.log * close modal if press escape * pass alt text in the description * Fix typo * Rm dialog --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix splash screen language picker appearance on Chrome (#2952)Mary2024-04-181-16/+20
| | | | | * fix: correct language picker appearance on Chrome * fix: prevent chevron shrink on long language names
* properly animate the profile hover card (#3590)Hailey2024-04-171-6/+6
| | | | | | | * properly implement with `isOpen` and `isPositioned` * well, this works just as well * add `willChange`
* Add hovercards to "Reply To" (#3587)dan2024-04-161-3/+3
| | | | | * Add hovercard for Reply To * Tweak durations
* Scrolling while target is hovered and card is visible should hide the card ↵dan2024-04-161-36/+78
| | | | | | | | | | | | | | | | | | | (#3586) * Don't remove the effect, it's not needed here (and wrong) * Differentiate between hovering target and card * Group related code closer * Hide on scroll away * Use named arguments * Inline defaults * Track reason we're showing * Only hide on scroll away while hovering target
* Restructure feed hover state machine code (#3550)dan2024-04-161-57/+77
|
* Add icons for onboarding (#3571)Eric Bailey2024-04-1620-0/+102
|
* Release 1.77.0 (#3549)Paul Frazee2024-04-131-1/+1
| | | | | * A couple test fixes * Intl extract
* Improve the language behaviors around the PWI (#3545)Paul Frazee2024-04-132-2/+18
| | | | | | | | | * Handle leftnav overflow with longer languages' copy * Update the language dropdown to set ALL language prefs * Add hackfix to language cachebusting on PWI * Reset feeds on language change
* Fix hover card animation with a reducer (#3547)dan2024-04-141-85/+138
|
* Increase hit slop for web's app language picker (#3535)Mary2024-04-131-1/+10
| | | | | | | | | * fix: make app language picker tap region larger * fix: add right padding on drawer signup card noticeable on portuguese language * fix: mimic hitSlop
* Fix oopsie (#3538)dan2024-04-131-0/+1
|
* Fade in animation for card (#3521)Hailey2024-04-131-59/+107
| | | | | | | | | | | | | | | | | | | | | | | | | * fade in and out the card one more fix dont leave an invisible card behind okay just about there move styles glitch clear hide timeouts on card enter about there * Tweak timings * Rewrite with explicit states --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* add ref_src (#3532)Samuel Newman2024-04-131-2/+6
|
* Profile hovers (#3518)Eric Bailey2024-04-133-11/+17
| | | | | | | | | * Add hover card for mentions * Reposted by * Fix key * Add to composer reply to
* [Embeds] "Embed post" post dropdown option (#3513)Samuel Newman2024-04-132-0/+196
| | | | | | | | | | | | | | | | | | | | | | | | | * add embed option to post dropdown menu * put embed post button behind a gate * increase line height in dialog * add gate to gate name union * hide embed button if PWI optout * Ungate embed button * Escape HTML, align implementations * Make dialog conditionally rendered * Memoize EmbedDialog * Render dialog lazily --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* wait a sec before showing card (#3516)Hailey2024-04-121-9/+13
|
* Zhuzh sign in dialog (#3512)Eric Bailey2024-04-121-2/+13
|
* Profile card hover preview (#3508)Eric Bailey2024-04-126-3/+401
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: initial user card hover * feat: flesh it out some more * fix: initialize middlewares once * chore: remove floating-ui react-native * chore: clean up * Update moderation apis, fix lint * Refactor profile hover card to alf * Clean up * Debounce, fix positioning when loading * Fix going away * Close on all link presses * Tweak styles * Disable on mobile web * cleanup some of the changes pt. 1 * cleanup some of the changes pt. 2 * cleanup some of the changes pt. 3 * cleanup some of the changes pt. 4 * Re-revert files * Fix handle presentation * Don't follow yourself, silly * Collapsed notifications group * ProfileCard * Tree view replies * Suggested follows * Fix hover-back-on-card edge case * Moar --------- Co-authored-by: Mary <git@mary.my.id> Co-authored-by: Hailey <me@haileyok.com>
* PWI improvements (#3489)Paul Frazee2024-04-124-2/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable home and feeds on the PWI * Add global SigninDialog to drive useRequireAuth() * Tweak desktop styles * Make the logo in leftnav PWI a clickable home link * Add label * Improve dialog on web * Fix query key * Go to home after signout from settings screen * Filter out feeds from the discover listing for logged out users which are known to break without auth * Update profile header follow/subscribe to give signin prompt * Show profile feeds tabs on pwi * Add language selector to account creation footer and pwi left nav desktop --------- Co-authored-by: dan <dan.abramov@gmail.com>
* 1.76 release preparations (#3459)Paul Frazee2024-04-093-11/+12
| | | | | | | * Run intl:extract * Update dev-env to 0.3.4 * Test fixes
* Small logic cleanups (#3449)Eric Bailey2024-04-094-50/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Small logic cleanups * Small logic cleanups (#3451) * remove a few things * oops * stop swallowing the error * queue callbacks * oops * log error if caught * no need to be nullable * move isClosing=true up * reset `isClosing` and `closeCallbacks` on close completion and open * run queued callbacks on `open` if there are any pending * rm unnecessary ref and check * ensure order of calls is always correct * call `snapToIndex()` on open * add tester to storybook --------- Co-authored-by: Hailey <me@haileyok.com>
* Use ALF for the embed consent modal (#3336)Samuel Newman2024-04-091-0/+119
|
* Implement back button fix for all places in the app (#3434)Hailey2024-04-081-1/+2
|
* fix dialog back button for android (#3428)Hailey2024-04-052-17/+37
| | | | | | | * fix types * remove unused async * add try/catch
* Enforce that text is wrapped in <Text>, remaining cases (#3421)dan2024-04-053-18/+13
| | | | | | | | | | | | | | | | | | | | | * Toggle.Button -> Toggle.ButtonWithText * Simplify Prompt.Cancel/Action * Move lines down for better diff * Remove ButtonWithText * Simplify types * Enforce Button/ButtonText nesting * Add suggested wrapper in linter error * Check <Trans> ancestry too * Also check literals * Rm ts-ignore
* Remove special cases for some buttons with text (#3412)dan2024-04-053-72/+78
| | | | | | | | | | | * Toggle.Button -> Toggle.ButtonWithText * Simplify Prompt.Cancel/Action * Move lines down for better diff * Remove ButtonWithText * Simplify types
* properly import linear gradient (#3423)Hailey2024-04-052-2/+2
|
* migrate to `expo-linear-gradient` (#3420)Hailey2024-04-042-2/+2
| | | | | | | | | * replace packages * rm useless alias from webpack config * fix accidental double commit * replace all usages
* Use CSS keyframe animation for spinner on web (#3411)Samuel Newman2024-04-042-2/+36
| | | | | * Use css keyframe animation for spinner on web * duplicate css to index.html
* Enforce Text suffix for Text-rendering components (#3407)dan2024-04-0412-63/+60
| | | | | | | | | | | * Rm unused * Add Text suffix to Title/Description * Add Text suffix to text components * Add Text suffix to props * Validate Text components returns
* Open share sheet when long pressing link (#3317)Samuel Newman2024-04-042-17/+52
| | | | | | | | | | | | | | | | | | | | | * uitextview use library w/ fixes bump bump multiple uitextview fixes * bump * Open share sheet on link long press * rm package manager field * add link warning to longpress --------- Co-authored-by: Hailey <me@haileyok.com>