about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [Session] Derive currentAccount from accounts + currentAccountDid (#3795)dan2024-05-011-22/+28
| | | | | * Derive currentAccount from accounts and currentAccountDid * Add TODOs for divergence with __globalAgent
* [Session] Use flag on state for persistence (#3793)dan2024-05-012-48/+45
| | | | | | | | | * Move isInitialLoad and isSwitchingAccounts out of main state * Remove spreads, order object keys * Track need to persist on state object * Reoder state variables
* replace getDate with toIsoString().slice(0,10) (#3792)Samuel Newman2024-05-011-4/+8
|
* [Clipclops] Improve message list behaviour (#3789)Samuel Newman2024-05-013-18/+45
| | | | | | | * improve message list behaviour * replace useAgent with useSession * add explicit types to appease linter
* sentry errors for captcha web views and registration attempts (#3761)Hailey2024-05-015-22/+60
| | | | | | | | | | | | | | | | | | | | | | | | | * sentry errors for captcha web views * include handles with errors * log all registration request failures * rm * use a better trigger for web captcha errors * add another trigger for recording a possible signup error * unknown error type * don't needlessly log on href errors * honestly i probably cant always do a captcha in 20 seconds * rm log * timeout on back * remove unnecessary colons
* Add kawaii mode (#3773)Samuel Newman2024-05-019-22/+141
|
* Memoize context value (#3786)dan2024-05-012-8/+13
|
* Performance improvements: structural sharing & moderation opts context (#3785)Paul Frazee2024-04-3025-120/+231
| | | | | | | | | | | | | * Fix: correctly apply structural sharing to preferences object * Move moderation opts into a context * Fix import * Remove log * Pass userdid directly * Pass moderationPrefs directly
* [Session] Refactor to prepare for V2 (#3781)dan2024-05-017-333/+400
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move types to another file Co-authored-by: dan <dan.abramov@gmail.com> * Move utilities out Co-authored-by: dan <dan.abramov@gmail.com> * Move PUBLIC_BSKY_AGENT Co-authored-by: dan <dan.abramov@gmail.com> * Move createPersistSessionHandler inline Co-authored-by: dan <dan.abramov@gmail.com> * Call configureModeration when clearing account too This ensures that the app labelers get reset in a test environment. Co-authored-by: dan <dan.abramov@gmail.com> * Make guest configureModeration sync, non-guest async * Extract isSessionExpired Co-authored-by: dan <dan.abramov@gmail.com> * Flip isSessionExpired condition Co-authored-by: dan <dan.abramov@gmail.com> * Extract agentToSessionAccount Co-authored-by: dan <dan.abramov@gmail.com> * Extract createAgent* Co-authored-by: dan <dan.abramov@gmail.com> * Simplify isSessionExpired --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Session] Move deactivated field off the session object (#3780)dan2024-05-011-3/+4
|
* [Session] Consistently copy SessionAgent fields (#3779)dan2024-05-011-5/+7
| | | Co-authored-by: Eric Bailey <git@esb.lol>
* [Clipclops] Separate messages if there's a time gap (#3777)Samuel Newman2024-04-301-2/+20
| | | | | * separate msg groups by age * clean up logic and add comments
* [Clipclops] Header for chat (#3775)Hailey2024-04-303-11/+128
| | | | | | | | | | | | | | | | | | | | | | | * add temp `getchat` query * properly get the other profile * add basic header * normalize layout on all devices * remove unused imports, adjust style * remove unnecessary log * remove another log * remove some more imports * cleanup * use `Button` instead in the header * lint
* [Clipclops] adjust scroll position, keyboard color (#3771)Hailey2024-04-302-3/+4
| | | | | * use the correct keyboard appearance based on theme * i guess the min index should be 1
* [Clipclops] Add clop sent time to clipclop (#3772)Samuel Newman2024-04-304-51/+162
| | | | | * add message sent time to message * fix last message in group logic
* [Clipclops] Use API data for clipclop list (#3769)Samuel Newman2024-04-305-122/+202
| | | | | | | | | | | | | | | * use real API * remove extra tab icon * messages list web layout + style improvements * use style's text color for input * make new chat button way more obvious --------- Co-authored-by: Hailey <me@haileyok.com>
* [Clipclops] New clipclop dialog (#3750)Samuel Newman2024-04-308-56/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Session fixes, pt. 1 (#3762)dan2024-04-304-24/+62
| | | | | | | | | | | | | | | | | * Update persisted schema for new source of truth, implement in existing session (cherry picked from commit b1e5f12baee932721d66c60dd51c981b46b0c274) * Improve toasts, log caught error, during switch account (cherry picked from commit fe0d1507063d2e532b7b1a447670b689292d1dc3) * Handle thrown errors from initSession during login (cherry picked from commit 2c85c045917e923901284b9ba310a82e28f37b5c) --------- Co-authored-by: Eric Bailey <git@esb.lol>
* use keyboardDismissMode rather than onScrollBeginDrag (#3767)Samuel Newman2024-04-301-2/+2
|
* [Clipclops] Add screen to view and send clip clops (#3754)Hailey2024-04-2926-7/+1289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 * [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 * nits --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Fix List onMomentumScrollEnd (#3759)dan2024-04-292-33/+43
|
* Release 1.80 (#3757)Paul Frazee2024-04-2917-9223/+10357
| | | | | * Test fixes * Intl extract
* Update zh-TW translations (#3678)Frudrax Cheng2024-04-291-188/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * consistent improvements * update messages.po * improve translation * improve translation * fix punctuation issues * remove superseded strings * GIFs to GIF * modify according to review suggestions * fix some misnomers * Update src/locale/locales/zh-TW/messages.po Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> * modify according to review suggestions * modify according to review suggestions * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update src/locale/locales/zh-TW/messages.po Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com> * Update messages.po Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> * Update messages.po Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> * Update messages.po Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> * modify according to review suggestions * a small adjustment --------- Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com> Co-authored-by: Yuki Cheung <13027432+snowleo208@users.noreply.github.com>
* Italian localization (#3684)Gabriella2024-04-291-970/+788
| | | | | | | | | | | * Add files via upload * Update messages.po Changed the grama of string * Update messages.po Following the input of @niconick89.bsky.social I have added additional correction to some of the strings.
* Update catalan messages.po (#3697)Ivan BeĆ 2024-04-291-36/+36
| | | | | | | | | | | | * Update catalan messages.po New lines translated You can check it @jordimas @darccio @ferranrego @MiquelAdell @mvdan @johnnydement @Mejans @surfdude29 * Update messages.po Remove extra space * Update messages.po
* Update Korean localization (#3698)Minseo Lee2024-04-291-647/+553
| | | | | | | | | | | | | | | * Update messages.po * Update messages.po * Update messages.po * Update messages.po * Update messages.po * Update messages.po * Update messages.po
* Update Japanese translation (#3734)Takayuki KUSANO2024-04-291-105/+48
| | | | | | | | | | | | | | * Remove old old onboarding related entries cf. https://github.com/bluesky-social/social-app/pull/3674 * Update Japanese translation (accessibilityLabel & accessibilityHint) cf. https://github.com/bluesky-social/social-app/pull/3670 * Update Japanese translation * Fix Japanase translation related to block
* Update zh-CN translations (#3716)Frudrax Cheng2024-04-291-100/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix punctuation issues * improve translation * remove superseded strings * update messages.po * fix typo * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * Update src/locale/locales/zh-CN/messages.po Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> * update language-team * Update messages.po Co-authored-by: Leonid <kasumi@bangdream.moe> * Update messages.po Co-authored-by: Leonid <kasumi@bangdream.moe> * Update messages.po Co-authored-by: Leonid <kasumi@bangdream.moe> * Update messages.po Co-authored-by: Leonid <kasumi@bangdream.moe> * Update messages.po Co-authored-by: Leonid <kasumi@bangdream.moe> * Update messages.po Co-authored-by: Leonid <kasumi@bangdream.moe> * Update messages.po Co-authored-by: Leonid <kasumi@bangdream.moe> --------- Co-authored-by: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Co-authored-by: Leonid <kasumi@bangdream.moe>
* Send Bluesky feeds and suggested follows more data (#3695)Eric Bailey2024-04-296-10/+91
| | | | | | | | | | | | | | | | | * WIP * Fix constructors * Clean up * Tweak * Rm extra assignment * Narrow down the argument --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* clear search on tab press (#3753)Hailey2024-04-291-3/+8
| | | | | * clear search on tab press * don't need to call `onPressCancelSearch`
* Improve search screen perf (#3752)dan2024-04-292-220/+293
| | | | | | | | | | | | | | | | | * Extract SearchHistory to a component * Extract AutocompleteResults to a component * Extract SearchInputBox to a component * Add a bunch of memoization * Optimize switching by rendering both * Remove subdomain matching This is only ever useful if you type it exactly correct. Search now does a better job anyway. * Give recent search decent hitslops
* Remove layout animation from search (#3751)dan2024-04-291-40/+19
|
* Increase search `TextInput` hit area and improve the related UI (#3748)Hailey2024-04-291-41/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * improve hit area of search text input use text cursor on web use a pressable instead use a vertical padding of 9 oops move vertical padding to `TextInput` to increase hit area * Hide it from a11y tree, change cursor * Hide clear on empty text * Render either Clear or Cancel * Remove Clear button * Animate it * Better animation --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [iOS] Fix selecting search input on focus (#3746)dan2024-04-281-2/+8
| | | | | * Select search text on focus * Scope to iOS only
* Remove useEffect from TimeElapsed (#3741)dan2024-04-281-4/+4
|
* Remove test gating code (#3742)dan2024-04-281-77/+1
|
* Fix dropdown immediately closing on Enter (#3745)dan2024-04-282-76/+111
| | | | | | | * Move dropdown content into separate component * Fix dropdown with keyboard * No-op is sufficient
* Account for momentum when hiding minimal shell (#3740)dan2024-04-284-14/+58
| | | | | | | | | * Add optional momentum events to scroll context * If there is a velocity, don't snap until momentum end * Don't show bar on scroll down * Rm onMomentumBegin
* Reduce hovercard false positives, add them to display names and handles (#3739)dan2024-04-282-36/+47
| | | | | | | * Don't trigger hovercards on scroll * Add display name / handle hovercards * Increase hovercard delay
* YouTube Music as supported player (#3736)Mary2024-04-271-1/+2
|
* ensure dialog is closed on unmount (#3650)Hailey2024-04-272-0/+81
| | | | | | | | | 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-2717-168/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-2718-19/+482
| | | | | | | | | | | * 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-273-7/+20
| | | | | | | | | | | * special-case bsky.app/download to share * Address feedback * Improve detection --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Improve usability of search on web (#3663)Hailey2024-04-273-170/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dont select the text on web * TODO REVERT THESE CHANGES * use `usethrottledvalue` for autocomplete * use `isFetching` from query * rm setTimeout * getting there * improve functionality of cancel button * rm todo * add comment back * encode `searchText` rather than `queryTerm` * use "back" on web in some cases * don't flash results in autocomplete * remove unnecesary usestate * rename everything to `query` temporarily * revert accidental lint * rm todo * rm comment * use `useFocusEffect` to update the query term on back navigation * `searchText` is always defined here * Fix race * remove back functionality * use `keepPreviousData` for query * rename `q` to `queryParam` * remove hack * remove `q=` on cancel * blur on submit * use `setParams` instead of `replace` * use `replace` on web still * clear the search input when we clear `q` on native * onPress dismiss attempt * Adjustments * Fix search history * Always hide autocomplete * Clear right pane search on select * `blur` on autosuggestion press * Rename to reduce diff * Fixes * Unify codepaths * Fixes * precache the autosuggestion * do the cache in the link card * Revert "precache the autosuggestion" This reverts commit 79c433e984621ba4231a2a4c4b3f4690b0516b4d. * use `throttledValue` and `keepPreviousData` in sidebar search * show spinner when fetching pt 1 * show spinner when fetching pt 2 * show spinner properly for autocomplete * Fix extra border * Position fixed * TS * Revert "TS" This reverts commit df187ea2d7a96d0f1832bc2392215f4d969a87c9. * Revert "Position fixed" This reverts commit 9c721c952b0fa4e5e4a23de38cab916ab13397e6. * Maybe fix iPad * Revert "TODO REVERT THESE CHANGES" This reverts commit 279f717f3091c9df8c73ba35f9a038e12f5a1122. * Rename var --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Move Notifications up on desktop web (#3696)dan2024-04-251-18/+18
|
* [Session] Add `useAgent` hook and replace (#3706)Eric Bailey2024-04-2553-114/+231
| | | | | | | | | | | * Hook it up * Memoize getAgent method * Use one shared reference --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Session] Drill `getAgent` into notifications handlers (#3705)Eric Bailey2024-04-252-4/+10
| | | | | | | | | | | * Drill into notifications handlers (cherry picked from commit 7ac9e500866732e1f2e205bbe96e70db331e5ffb) * Thread getAgent instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Session] Drill `getAgent` into `Onboarding/util` (#3704)Eric Bailey2024-04-252-4/+16
| | | | | | | | | | | * Drill agent into Onboarding/util (cherry picked from commit 2ba68eb5e446a694730b720f2a5b3307eb0914ef) * Thread getAgent instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Session] Drill `getAgent` into `notifications/utils` (#3703)Eric Bailey2024-04-253-9/+16
| | | | | | | | | | | * Drill into notifications/util (cherry picked from commit 84b535ed54f4fe93debcd198809bb184519c3507) * Thread getAgent instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>