about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve localization marks (#3285)Minseo Lee2024-05-0612-66/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement FeedFeedback API (#3498)Paul Frazee2024-05-0719-63/+505
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement onViewableItemsChanged on List.web.tsx * Introduce onItemSeen to List API * Add FeedFeedback tracker * Add clickthrough interaction tracking * Add engagement interaction tracking * Reduce duplicate sends, introduce a flushAndReset to be triggered on refreshes, and modify the api design a bit * Wire up SDK types and feedContext * Avoid needless function allocations * Fix schema usage * Add show more / show less buttons * Fix minor rendering issue on mobile menu * Wire up sendInteractions() * Fix logic error * Fix: it's item not uri * Update 'seen' to mean 3 seconds on-screen with some significant portion visible * Fix non-reactive debounce * Move methods out * Use a WeakSet for deduping * Reset timeout * 3 -> 2 seconds * Oopsie * Throttle instead * Fix divider * Remove explicit flush calls * Rm unused --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Protect against missing elementPaul Frazee2024-05-061-5/+4
|
* Merge branch 'web-loading' of ↵Paul Frazee2024-05-061-2/+8
|\ | | | | | | https://github.com/TuxPenguin09/bsky-social-app into TuxPenguin09-web-loading
| * Added Preload for Webaliamanuba2024-05-021-2/+8
| | | | | | | | - Bluesky logo in the center when a new visitor or shift+refresh by browser client
* | Replace pluralize by plural by @tkusano (#3882)Paul Frazee2024-05-0616-96/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | Dont leave promise unresolvedPaul Frazee2024-05-063-17/+33
| |
* | Merge branch 'fix-banner-cropper' of ↵Paul Frazee2024-05-066-50/+92
|\ \ | | | | | | | | | https://github.com/piotrpalek/social-app into piotrpalek-fix-banner-cropper
| * | add missing cropImageUtil filePiotr P2024-04-271-0/+13
| | |
| * | hide alternative ratio buttons when using custom ratioPiotr P2024-04-271-30/+34
| | |
| * | allow for custom cropper aspect ration based on imagePiotr P2024-04-273-5/+30
| | |
| * | Fix cropper crashing after clicking cancelPiotr P2024-04-271-3/+1
| | |
| * | eslint autofixesPiotr P2024-04-273-12/+14
| | |
* | | make gif alt text prompt selectable (#3879)Samuel Newman2024-05-062-2/+6
| | |
* | | remove trailing period from query term in `useActorAutocompleteQuery` (#3765)Hailey2024-05-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * remove trailing period from query term * Rm useMemo --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* | | A few `containWeb` List nits (#3877)Hailey2024-05-062-24/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | * use getters for returned values * pass ref * add log to `onScroll` in tester * improve expect error
* | | [Clipclops] All my clops gone (#3850)Eric Bailey2024-05-065-104/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle two common errors, provide more clarity around error states * Handle failed polling * Remove unused error type * format
* | | Update catalan messages.po (#3764)Ivan Beà2024-05-061-10/+10
| | | | | | | | | | | | Translate new lines, messages are coming! You can check it @jordimas @darccio @ferranrego @MiquelAdell @mvdan @johnnydement @Mejans @surfdude29
* | | Update Korean localization (#3809)Minseo Lee2024-05-061-244/+434
| | | | | | | | | | | | | | | | | | | | | * Update messages.po * Update messages.po * Update messages.po
* | | Update Japanese translations (#3810)Takayuki KUSANO2024-05-061-15/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update Japanese translations * Updated Japanese translation * Updated Japanese translation * Update Japanese translations * Updated based on @Hima-Zinn's suggestion
* | | Update zh-TW translations (#3873)Frudrax Cheng2024-05-061-508/+418
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 修正及改進翻譯 * Epic zh-TW rebrand * small fix * remove reundant "設定" for "偏好" * legacy for "殘存" * Update Translator --------- Co-authored-by: Kuwa Lee <kuwalee1069@gmail.com>
* | | remove `hide_vertical_scrollbars` test (#3855)Hailey2024-05-065-28/+1
| | |
* | | show spinner when preferences has not loaded yet (#3756)Hailey2024-05-061-3/+3
| | |
* | | Alt text for gifs (#3876)Samuel Newman2024-05-069-47/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add alt text dialog * multiline alt text input * add pressable alt text badge * rename `ALT: ` to `Alt text: ` to avoid including old bad ones * reuse alt text reminder * reuse alt text reminder in gallery * add alt text reminder in the dialog itself * autofocus text input * reorder components to fix tab order * fix close btn position
* | | [🐴] 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