about summary refs log tree commit diff
path: root/src/screens
Commit message (Collapse)AuthorAgeFilesLines
...
* Add gate, a:a swap onboarding state (#3930)Eric Bailey2024-05-092-9/+153
|
* [🐴] Add hover context menu for convo list on web (#3923)Hailey2024-05-091-10/+41
| | | | | | | | | | | | | | | | | | | | | * remove some unnecessary props * add hover trigger on web for convo list * lint * use `UserAvatar` to not affect accessibility * remove extra wrapper * add `label` * always show on mobile * adjust size of dots * make the message trigger dots the same size * ❓
* [🐴] Skeleton header (#3921)Samuel Newman2024-05-081-22/+45
|
* add sideborders prop (#3920)Samuel Newman2024-05-081-0/+1
|
* [🐴] Mark as read in convo menu (#3913)Samuel Newman2024-05-081-1/+2
| | | | | | | * add mark as read option * optimistic update + link up menu * rm messageid
* [🐴] Reorg convo files (#3909)Eric Bailey2024-05-073-26/+26
| | | | | * Remove unused prop * Reorganize
* [Session] Code cleanup (#3854)dan2024-05-081-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Split utils into files * Move reducer to another file * Write types explicitly * Remove unnnecessary check * Move things around a bit * Move more stuff into agent factories * Move more stuff into agent * Fix gates await * Clarify comments * Enforce more via types * Nit * initSession -> resumeSession * Protect against races * Make agent opaque to reducer * Check using plain condition
* [Session] Remove global agent (#3852)dan2024-05-081-14/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove logs and outdated comments * Move side effect upwards * Pull refreshedAccount next to usage * Simplify account refresh logic * Extract setupPublicAgentState() * Collapse setStates into one * Ignore events from stale agents * Use agent from state * Remove clearCurrentAccount * Move state to a reducer * Remove global agent * Fix stale agent reference in create flow * Proceed to onboarding even if setting date fails --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Handle invalid service URLs (#3908)Eric Bailey2024-05-072-3/+19
|
* [🐴] Integrate global event bus (#3904)Eric Bailey2024-05-071-1/+12
| | | | | * Conditionally run global event bus * Add current convo id context, bundle providers
* [🐴] State transitions (#3880)Eric Bailey2024-05-072-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle init/resume/suspend/background and polling * Add debug and temp guard * Make state transitions sync * Make init sync also * Checkpoint: confusing but working state machine * Reducer-esque * Remove poll events * Guard fetchConvo (cherry picked from commit 8385579d31500bb4bfb60afeecdc1eb3ddd7e747) * Clean up polling, make sync (cherry picked from commit 7f75cd04c3bf81c94662785748698640a84bef51) * Update history handling (cherry picked from commit b82b552ba4040adf7ead2377541132a386964ff8) * Check for screen focus in app state listener * Get rid of ad-hoc status checks
* Remove unnecessary Trans tags (#3888)Minseo Lee2024-05-071-7/+5
|
* Update Feed.tsx (#3715)Minseo Lee2024-05-071-1/+5
|
* Improve localization marks (#3285)Minseo Lee2024-05-064-22/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update Lightbox.tsx * Change strings for easier localization * Update DeleteAccount.tsx * Update LabelsOnMeDialog.tsx * Update FeedCard.tsx * Update index.tsx * Update LabelsOnMeDialog.tsx * Update index.tsx * Update FeedCard.tsx * Update SelfLabel.tsx * Update Hashtag.tsx * Update index.tsx * Update Hashtag.tsx * Update ChangeHandle.tsx * Update index.web.tsx * Update index.web.tsx * Update index.tsx * Remove unnecessary `<Trans>` tags * Update Drawer.tsx
* Replace pluralize by plural by @tkusano (#3882)Paul Frazee2024-05-063-27/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replace pluralize with plural or Plural * Replace all pluralize (defined by src/lib/strings/helpers.ts) with plural or Plural (defined by @lingui/macro) to make some UI elements translatable. * Delete pluralize() and related test. * Import @formatjs polyfill libraries for plural on ios and android - ios and andorid: import `@formtjs/intl-locale` and `@formatjs/intl-pluralrules` to polyfill `Intl.Locale` and `Intl.PluralRules` which are used in `plural()` and '<Plural />'. - update `plural` use in notification messages for better translation. * Rewrite to pass lint * Add Catalan plural polyfill * more replacement * import zh plural data for zh-CN * Refactor feed header components (#2964) * Move home-related files to view/com/home * Add HomeHeader in front of FeedTabBar * Move isDekstop check outside FeedsTabBar * Remove PWI logic from tabbar * Separate platform-specific layout from shared logic * Rename Home Feed Prefs to Following Feed Prefs (#2965) * use `useOpenLink` hook for links in ALF (#2975) * use `useOpenLink` hook for links in ALF * web only for `outline` * increase timeout to 15s (#2958) * Normalize relative day (#2874) * fix: normalize relative date * chore: add comments * refactor: skip flooring normalized diff * refactor: let -> const * fix: get own copy of date to prevent mutating * refactor: rounding does the same trick * Add handle validation to create account UI (#2959) * show uiState errors in the box as well simplify copy update ui for only letters and numbers add ui validation to handle selection * simplify names * Fix accidental text-node render --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Make dim theme dim (#2966) * Make dim color scheme dim * Tweaks * Overall tweaks * We have to go darker * Tweak saturation of blues in dim * Increase contrast on dark-dark mode * adjust dim --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Hailey <me@haileyok.com> * Fix dim mode unread notif color * use `showControls` to show/hide live text icon on ios (#2982) * Update .po files * fix reversed icons in validator 🤦 (#2991) * Adjust `windowSize` on `PostThread` `FlatList` (#2989) * adjust window size, cells batching period * rm batching period change * Pluralize 'follow(s)' * Include a space between the msgid count and "follower(s)/following(s)" so the translator can adjust the translated count line to fit within the Drawer. * pluralie '# following' * Fix & Update * Rewrite to use Plural * rmeove unused import * When commiting changes, disable 'simple-import-sort' plugin in .eslintrc.js to sync with bluesky-social:main * Revert simple-import-sort/imports related changes * Move ProfileHoverCard web to plural util * Followings -> following * Add plural following to hovercard * Followings -> Following --------- Co-authored-by: Takayuki KUSANO <kusano@tkusano.jp> Co-authored-by: Takayuki KUSANO <65759+tkusano@users.noreply.github.com> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Mary <148872143+mary-ext@users.noreply.github.com> Co-authored-by: Eric Bailey <git@esb.lol>
* [Clipclops] All my clops gone (#3850)Eric Bailey2024-05-063-24/+24
| | | | | | | | | * Handle two common errors, provide more clarity around error states * Handle failed polling * Remove unused error type * format
* [🐴] Finalize web message screen (#3868)Hailey2024-05-061-35/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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`
* only use `KeyboardProvider` in conversation screen (#3869)Hailey2024-05-051-4/+7
|
* [🐴] Improve message pressing (#3864)Samuel Newman2024-05-051-0/+1
| | | | | | | | | | | * 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.
* [🐴] Dismiss keyboard before opening convo menu (#3862)Samuel Newman2024-05-051-1/+1
| | | | | * Dismiss keyboard before opening convo menu * call `props.onPress()` instead
* [🐴] List Adjustments (#3857)Hailey2024-05-044-53/+48
|
* Assorted clipclop fixes (#3853)Samuel Newman2024-05-041-2/+3
| | | | | | | | | | | | | | | * 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-033-12/+14
| | | | | | | * scroll on input resize * add back the padding 🙊 * fix timestamps
* [Clipclops] Refactor message list (#3832)Hailey2024-05-035-67/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-031-1/+7
| | | | | | | * 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-031-1/+4
|
* [Session] Align state and global agent switchpoints (#3845)dan2024-05-031-24/+26
| | | | | | | | | | | | | * 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-031-3/+1
| | | | | | | | | | | * 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-031-0/+32
|
* remove broken keyboard offset code (#3842)Samuel Newman2024-05-031-16/+4
|
* [Clipclops] Header tweaks (#3839)Samuel Newman2024-05-031-2/+4
| | | | | * wrap text * add dividers to convo menu
* [Clipclops] Moar error (#3837)Eric Bailey2024-05-032-0/+57
| | | | | | | * Add history error * Log error * Add period
* [Clipclops] External store, suspend/resume (#3829)Eric Bailey2024-05-022-25/+22
| | | | | | | | | | | | | * 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
* visually align icon (#3831)Samuel Newman2024-05-032-2/+2
|
* Improve account switcher pending state (#3827)dan2024-05-021-5/+17
| | | | | | | | | * 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-022-166/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* create keyboardverticaloffset hook (#3823)Samuel Newman2024-05-021-3/+28
|
* rename "MessagesList" to "Messages" (#3826)Samuel Newman2024-05-022-3/+3
|
* [Session] Extract selectAccount out (#3812)dan2024-05-021-0/+5
|
* [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
|
* [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-022-27/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [Clipclops] Pending messages (#3803)Eric Bailey2024-05-011-3/+1
| | | | | | | * Make pending message like normal message * Remove getter * Make props public
* [Clipclops] Replace 🐴 with real icon (#3802)Samuel Newman2024-05-013-6/+6
| | | | | * replace 🐴 with paper plane icon * replace envelope with plus
* Retry clops (#3800)Eric Bailey2024-05-011-0/+9
| | | | | | | * 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