about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [🐴] Finalize web message screen (#3868)Hailey2024-05-062-35/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add `onStartReached` to web list * fix `rootMargin` * Add `contain`, handle scroll events * improve types, fix typo * simplify * adjust `scrollToTop` and `scrollToOffset` to support `contain`, add `scrollToEnd` * rename `handleWindowScroll` to `handleScroll` * support basic `maintainVisibleContentPosition` * rename `contain` to `containWeb` * remove unnecessary `flex: 1` * add missing props * add root prop to `Visibility` * add root prop to `Visibility` * revert adding `maintainVisibleContentPosition` * remove unnecessary wrapper * add style * oops * maintain position for web * always apply `flex: 1` to styles when contained * add a contained list to storybook * make `onScroll` a worklet in storybook * revert test code * remove unnecessary `flex: 1`
* | | Further align web `List` with `FlatList`, add `contain` mode to web list ↵Hailey2024-05-064-85/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation (#3867) * add `onStartReached` to web list * fix `rootMargin` * Add `contain`, handle scroll events * improve types, fix typo * simplify * adjust `scrollToTop` and `scrollToOffset` to support `contain`, add `scrollToEnd` * rename `handleWindowScroll` to `handleScroll` * support basic `maintainVisibleContentPosition` * rename `contain` to `containWeb` * remove unnecessary `flex: 1` * add missing props * add root prop to `Visibility` * add root prop to `Visibility` * revert adding `maintainVisibleContentPosition` * oops * always apply `flex: 1` to styles when contained * add a contained list to storybook * make `onScroll` a worklet in storybook * revert test code * add scrolling to storybook * simplify getting scrollable node * nit: extra whitespace * nit: random comment * foolproof the logic * typecheck
* | | Fix `IntersectionObserver` `rootMargin` in web `List` implementation, add ↵Hailey2024-05-051-8/+30
| | | | | | | | | | | | | | | | | | | | | `onStartReached` (#3866) * add `onStartReached` to web list * fix `rootMargin`
* | | only use `KeyboardProvider` in conversation screen (#3869)Hailey2024-05-052-8/+8
| | |
* | | [Clipclops] Delete message in dialog (#3849)Hailey2024-05-052-15/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * delete and copy * add retry dialog if message send fails * add layout animation * fix `nextMessage` being incorrect --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* | | [🐴] Improve message pressing (#3864)Samuel Newman2024-05-052-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow tapping message when keyboard open * dismiss keyboard on open msg menu * show message info on press * Revert "show message info on press" This reverts commit 61d039a7024c27583aed7d1e9f1ff5b919dc7d30.
* | | fix typo in `app-info` (#3863)Hailey2024-05-042-2/+4
| | |
* | | [🐴] Dismiss keyboard before opening convo menu (#3862)Samuel Newman2024-05-052-2/+7
| | | | | | | | | | | | | | | * Dismiss keyboard before opening convo menu * call `props.onPress()` instead
* | | add bundle identifiers to app-info (#3861)Hailey2024-05-043-22/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add bundle identifiers to `app-info` * add them to the `.env.example` * add environment variables for docker build * add environment variables for native builds and bundles * also include the hour in bundle date * organize app info better in settings
* | | [🐴] List Adjustments (#3857)Hailey2024-05-044-53/+48
| | |
* | | Assorted clipclop fixes (#3853)Samuel Newman2024-05-045-23/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * empty state for new chat dialog * use terniary * dark mode pending state * copy message text option * fix service url input (scrollview ftw) * whoops, fix equality * slightly reduce horizontal message padding
* | | Clipclop tweaks (#3851)Hailey2024-05-035-13/+20
| | | | | | | | | | | | | | | | | | | | | * scroll on input resize * add back the padding 🙊 * fix timestamps
* | | [Clipclops] Refactor message list (#3832)Hailey2024-05-037-95/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rework the list for accessibility * Reverse reverse * progress * good to start testing * memo `MessageItem` * small hack * use our custom `List` impl * use `ScrollProvider` for `onScroll` event * remove use of `runOnJS` * actually, let's keep it * add some comments --------- Co-authored-by: Eric Bailey <git@esb.lol>
* | | [Clipclops] Pending message style with layout animation (#3844)Samuel Newman2024-05-032-7/+23
| | | | | | | | | | | | | | | | | | | | | * decrease group gap to 3 mins * pending style with layout animation * make pending state lighter
* | | reenable tabs (#3847)Samuel Newman2024-05-031-12/+5
| | |
* | | add focus refresh + polling (#3846)Samuel Newman2024-05-033-2/+23
| | |
* | | [Session] Align state and global agent switchpoints (#3845)dan2024-05-033-70/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adopt synced accounts unconditionally * Remove try/catch around resuming session * Move to login form on resume failure * Restructure code flow for easier reading --------- Co-authored-by: Eric Bailey <git@esb.lol>
* | | Don't clear toasts when changing users (#3843)dan2024-05-034-62/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move ThemeProvider to the top * Move RootSiblingParent above the remounted part * Move ToastContainer outside the remounted part * Remove setTimeout around toasts * Consistently handle dropped session
* | | make service url gate friendlier (#3841)Samuel Newman2024-05-032-24/+32
| | |
* | | remove broken keyboard offset code (#3842)Samuel Newman2024-05-031-16/+4
| | |
* | | [Clipclops] Header tweaks (#3839)Samuel Newman2024-05-032-2/+6
| | | | | | | | | | | | | | | * wrap text * add dividers to convo menu
* | | update date logic to account for timezones (#3840)Samuel Newman2024-05-031-4/+12
| | |
* | | [Clipclops] Moar error (#3837)Eric Bailey2024-05-033-34/+132
| | | | | | | | | | | | | | | | | | | | | * Add history error * Log error * Add period
* | | [Session] Reset global agent on expire (#3838)dan2024-05-031-6/+11
| | |
* | | [Session] Rely on agent session change event for persisting resumed session ↵dan2024-05-031-32/+12
| | | | | | | | | | | | | | | | | | | | | (#3836) * Rely on agent session change handler for resumption * Add a fast path for noop resumes
* | | [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