about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [Clipclops] External store, suspend/resume (#3829)Eric Bailey2024-05-026-171/+343
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial working external store * Clean up WIP, explore suspend/resume * Clean up state, bindings, snapshots, add some logs * Reduce snapshots, add better logic check * Bump interval a smidge * Remove unused type
* | | [Session] Fix stale emailAuthFactor and emailConfirmed on the client (#3835)dan2024-05-031-15/+11
| | | | | | | | | | | | | | | * Fix account refresh to not clobber falsy values * Use ?? in more places
* | | [Session] Track agent in state (#3833)dan2024-05-031-47/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Expand currentAccountDid into currentAgentState * Inline all callsites of upsertAccount * Inline all internal callsites of clearCurrentAccount * Add agent to currentAgentState * Collapse extra setStates * Add TODOs
* | | visually align icon (#3831)Samuel Newman2024-05-032-2/+2
| | |
* | | [Session] Call persist handler directly (#3828)dan2024-05-021-96/+63
| | |
* | | Improve account switcher pending state (#3827)dan2024-05-025-78/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Protect against races * Reduce UI jank when switching accounts * Add pending state to selected account * Disable presses while pending
* | | [Clipclops] Message actions for native and web (#3807)Hailey2024-05-025-29/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * haptic on long press * add animation to press and hold * eslint disable for now * adjust styles * dont trigger if animation is cancelled * organize * add a delete menu * reset scale automatically * message actions dialog cleanup center the trigger handle focus/unfocus better make triggers accessible weg dropdown menu add a wep specific wrapper decrease press delay add report button improve shrink logic use `self_end` instead of `margin: auto` rm extra `?` move `MessageItem` to `components` add delete button * rm some padding * update after merge * fix merge * web only types * fix crash * add an explanation * fix web types --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* | | Only run "disable min shell on foregrounding" behaviour if on the home ↵Samuel Newman2024-05-022-15/+17
| | | | | | | | | | | | | | | | | | | | | screen (#3825) * change useEffect to useFocusEffect * v2 -> v3
* | | create keyboardverticaloffset hook (#3823)Samuel Newman2024-05-021-3/+28
| | |
* | | rename "MessagesList" to "Messages" (#3826)Samuel Newman2024-05-028-15/+18
| | |
* | | [Clipclops] Deletions (#3824)Eric Bailey2024-05-021-23/+57
| | | | | | | | | | | | | | | * Handle message deletions * Handle failures
* | | [Session] Extract selectAccount out (#3812)dan2024-05-027-42/+48
| | |
* | | [Session] Extract resumeSession out (#3811)dan2024-05-024-36/+43
| | |
* | | [Clipclops] Minor web tweaks (#3822)Samuel Newman2024-05-022-3/+8
| | | | | | | | | | | | | | | * add a11y + onPress to web send button * only adjust leading on web, due to overflow issue
* | | [Clipclop] Input polish (#3819)Samuel Newman2024-05-024-91/+109
| | | | | | | | | | | | | | | * tweak input styles + add min-shell mode * android tweaks + hitslop
* | | [Clipclops] rm `<Trans>` from header (#3818)Hailey2024-05-021-4/+2
| | |
* | | Allow unmuting and unblocking of curate lists, but not the opposite (#3817)Eric Bailey2024-05-021-15/+9
| |/ |/|
* | [Clipclops] Remove viewability config (#3805)Hailey2024-05-011-26/+41
| | | | | | | | | | * remove viewability config * use `onScroll` for keeping track of content offset
* | [Clipclops] Clop menu, leave clop, mute/unmute clop (#3804)Samuel Newman2024-05-0210-57/+419
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * convo menu * memoize convomenu * add convoId to useChat + memoize value * leave convo * Create mute-conversation.ts * add mutes, remove changes to useChat and use chat.convo instead * add todo comments * leave convo confirm prompt * remove dependency on useChat and pass in props instead * show menu on long press * optimistic update * optimistic update leave + add error capture * don't `popToTop` when unnecessary --------- Co-authored-by: Hailey <me@haileyok.com>
* | Fix: put label defs provider above moderation opts provider (#3806)Paul Frazee2024-05-012-8/+10
| |
* | [Clipclops] Pending messages (#3803)Eric Bailey2024-05-012-13/+19
| | | | | | | | | | | | | | * Make pending message like normal message * Remove getter * Make props public
* | [Clipclops] Replace 🐴 with real icon (#3802)Samuel Newman2024-05-016-8/+17
| | | | | | | | | | * replace 🐴 with paper plane icon * replace envelope with plus
* | Retry clops (#3800)Eric Bailey2024-05-014-83/+222
| | | | | | | | | | | | | | * Add convo retries, sketch out tests * Only append nextMessage to messages * Remove debug code
* | [Clipclops] Dynamic input height (#3778)Hailey2024-05-012-10/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * input max height/scrollability * remove unused imports * add a web-specific version * enter and shift enter for web * missing onSubmit for native * missing attributes * improve layout of input on web * use the correct text color in the input * trim messages * remove `onSubmit` * move prop up * trim message on web * remove extra function call --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* | [Clipclops] Fix list, rework structure (#3799)Hailey2024-05-012-63/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * proper min index * move keyextractor out of react * move onSendMessage out * don't render the flatlist conditionally * add loader * rework structure * remove some unneeded logic
* | add header to empty chat list view (#3791)Samuel Newman2024-05-012-4/+22
| |
* | [Clipclops] 2 Clipped 2 Clopped (#3796)Eric Bailey2024-05-0128-1130/+739
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add new pkg * copy queries over to new file * useConvoQuery * useListConvos * Use useListConvos * extract useConvoQuery * useGetConvoForMembers * Delete unused * exract useListConvos * Replace imports * Messages/List/index.tsx * extract getconvoformembers * MessageItem * delete chatLog and rename query.ts * Update import * Clipclop service (#3794) * Add Chat service * Better handle deletions * Rollback unneeded changes * Better insertion order * Use clipclops * don't show FAB if error * clean up imports * Update Convo service * Remove temp files --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* | [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>