about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* [🐴] Refactor event bus (#3919)Eric Bailey2024-05-084-257/+151
| | | | | * Refactor to singleton class outside react * Fix retry, remove debug logs
* Replace updateCurrentAccount() with refreshSession() (#3910)dan2024-05-089-257/+15
| | | Replace updateCurrentAccount() with resumeSession()
* [🐴] Adjust press and hold delay on messages (#3918)Hailey2024-05-081-5/+7
| | | | | * adjust press and hold delay on messages * adjust hit slop
* add sideborders prop (#3920)Samuel Newman2024-05-083-1/+5
|
* actually optimistic mark as read (#3917)Samuel Newman2024-05-082-5/+9
|
* Move to requestPollInterval handling (#3914)Eric Bailey2024-05-082-23/+43
|
* [🐴] Mark as read in convo menu (#3913)Samuel Newman2024-05-085-8/+51
| | | | | | | * add mark as read option * optimistic update + link up menu * rm messageid
* [🐴] Reorg convo files (#3909)Eric Bailey2024-05-078-278/+296
| | | | | * Remove unused prop * Reorganize
* Add session reducer tests (#3860)dan2024-05-082-0/+1644
|
* [Session] Code cleanup (#3854)dan2024-05-0811-503/+554
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [🐴] Unread messages badge (#3901)Samuel Newman2024-05-075-8/+162
| | | | | | | | | | | | | | | | | | | | | * add badge * move stringify logic to hook * add mutation hooks * optimistic mark convo as read * don't count muted chats * Integrate new context * Integrate mark unread mutation * Remove unused edit --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Session] Remove global agent (#3852)dan2024-05-085-355/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-076-31/+112
| | | | | * Conditionally run global event bus * Add current convo id context, bundle providers
* Remove messages provider (#3902)Eric Bailey2024-05-072-41/+35
|
* [🐴] State transitions (#3880)Eric Bailey2024-05-074-208/+490
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* [🐴] Global event mgmt (#3897)Eric Bailey2024-05-075-41/+686
| | | | | | | | | | | | | * Add global event bus for messages logs * Add rev to state * Better handle error * Clean up polling, add backgrounding * Add trailConvo method * Extend polling until we're ready for this
* Run intl:extractPaul Frazee2024-05-0717-8276/+14285
|
* Remove unnecessary Trans tags (#3888)Minseo Lee2024-05-072-14/+10
|
* [GIFs] Restore default alt text (#3893)Samuel Newman2024-05-074-20/+84
| | | | | | | | | | | | | | | | | | | | | | | * restore default alt text * factor out gif alt logic + enable require alt text setting * rm console.log * don't prefill input + esc handling * typo * Nits * shorten user alt prefix * Remove unnecessary condition, rename for clarity * Add comment --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Update Feed.tsx (#3715)Minseo Lee2024-05-071-1/+5
|
* Update Feeds.tsx (#3719)Minseo Lee2024-05-071-1/+1
|
* Update Indonesian translation (#3891)kodebanget2024-05-071-1273/+449
| | | | | | | | | * Update Indonesian translation * Update id/messages.po --------- Co-authored-by: Indonesian <github-actions@github.com>
* Update WhoCanReply.tsx (#3720)Minseo Lee2024-05-071-6/+8
|
* fix bad bool check in action (#3885)Hailey2024-05-061-2/+1
| | | | | | | * fix bad bool check in action * add `fetch-depth` so we can get the commit hash * `.env` should be in `.easignore` 🙃
* Finnish translation update (#3755)Jan-Olof Eriksson2024-05-061-87/+49
| | | | | | | | | | | | | * Update messages.po Translated new strings (GIF's etc) and cleaned up deprecated ones. * Update messages.po resolve conflict * Update messages.po removed double quotes. Thanks @lapanti
* 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