about summary refs log tree commit diff
path: root/src/components/hooks
Commit message (Collapse)AuthorAgeFilesLines
* run `yarn lint --fix` (#9013)Samuel Newman2025-09-091-3/+3
|
* Upgrade `@types/react` to 19 and run codemod (attempt 2) (#8918)Samuel Newman2025-09-091-1/+1
| | | | | | | | | | | | | * update dependencies * rm `import type React from 'react'` * run codemods * patch discord types * update types/react-dom * Update yarn.lock
* Welcome modal on logged-out homepage (#8944)Alex Benzer2025-09-042-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds welcome modal to logged-out homepage * Adds metrics and feature gate for welcome modal * Slightly smaller text for mobile screens to avoid wrapping * Remove unused SVG * Adds text gradient and "X" close button * Fix color on "Already have an account?" text * tweak hooks, react import * rm stylesheet * use hardcoded colors * add focus guards and scope * no such thing as /home * reduce spacign * use css animations * use session storage * fix animation fill mode * add a11y props * Fix link/button color mismatch, reduce gap between buttons, show modal until user dismisses it * Fix "Already have an account?" line left-aligning in small window sizes * Adds "dismissed" and "presented" metric events --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Tooltip (#8555)Eric Bailey2025-06-242-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Working overlay, WIP * Ok working with no overlay and global gesture handler * Ok pretty good on native * Cleanup * Cleanup * add animation * add transform origin to animation * Some a11y * Improve colors * Explicitly wrap gesture handler * Add easier abstraction * Web * Fix animation * Cleanup and remove provider * Include demo for now * Ok diff interface to avoid collapsed views * Use dimensions hook * Adjust overlap, clarify intent of consts * Revert testing edits --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Port post embeds to new arch (#7408)Eric Bailey2025-06-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Direct port of embeds to new arch (cherry picked from commit cc3fa1f6cea396dd9222486c633a508bfee1ecd6) * Re-org * Split out ListEmbed and FeedEmbed * Split out ImageEmbed * DRY up a bit * Port over ExternalLinkEmbed * Port over Player and Gif embeds * Migrate ComposerReplyTo * Replace other usages of old post-embeds * Migrate view contexts * Copy pasta VideoEmbed * Copy pasta GifEmbed * Swap in new file location * Clean up * Fix up native * Add back in correct moderation on List and Feed embeds * Format * Prettier * delete old video utils * move bandwidth-estimate.ts * Remove log * Add LazyQuoteEmbed for composer use * Clean up unused things * Remove remaining items * Prettier * Fix imports * Handle nested quotes same as prod * Add back silenced error handling * Fix lint --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Add language: European Portuguese (`pt-PT`) (#8375)surfdude292025-05-301-0/+2
| | | | | | | | | | | | | | | | | | | * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Create messages.po * prettier
* Add language: Frisian (#8214)surfdude292025-05-091-0/+2
| | | | | | | | | | | | | | | | | * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Create messages.po
* Add language: Esperanto (#7863)surfdude292025-03-051-0/+2
| | | | | | | | | | | | | | | | | * Create messages.po * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts
* Add language: Scottish Gaelic (#7864)surfdude292025-03-051-0/+2
| | | | | | | | | | | | | | | | | * Create messages.po * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts
* Add language: Welsh (#7866)surfdude292025-03-051-0/+2
| | | | | | | | | | | | | | | | | * Create messages.po * Update app.config.js * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts
* `@atproto/api@next` integration (#7344)Eric Bailey2025-02-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump SDK * Use consistent type in profile query * Omit from constraint for profile shadow * Replace isRecord with isValidRecord in QuoteEmbed * Omit type from constraint for old ProfileCard * Omit type from constraint in profile queries where appropriate * Use correct type for update profile mutation * Conslidate and fix check for isValidRecord in Post.tsx * Replace isRecord with isValidRecord in PostThreadItem * Remove redundant cast in PostThreadFollowBtn * Ignore errors in DebugMod screen * Use matching type in ProfileFollows screen * Use matching type in ProfileFollowers screen * Migrate to isValidRecord in PostFeedItem * Use matching type if PostRepostedBy * Omit type from constraint in avatar props * Use matching types in NotificationFeedItem * Todo * Use isValidRecord in NotfyFeedItem * Improve MediaPreview types * Migrate another isValidRecord in NotificationFeedItem * Migrate to isValidView in queries/util * Migrate to isValidRecord in threadgate/util * Fix types in threadgates * Fix up types in starter-packs queries * Todo * Specify exact types in search-posts * Use internal type util to align types * Ditto last * Migrate postgate/index * Specify exact types in post-thread * Use correct type in post-quotes * FIX potential bug in post-thread * Use correct type in post-feed * Add correct type guards to notifications/feed * Migrate a guard in notifications/util * Migrate guard in Wizard/State * [@next] Profile handling, migrate `ProfileCard` (#7347) * Introduce new utils for profiles, migrate old ProfileCard * Rename, reorg * Add parseEmbed utils * Expand AnyProfileView to include chat profile view, update post shadow to reflect this * Cast for perf reasons * Tighten up types now that we have AnyProfileView * Add fastIsType util * Use `assertDid` Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use util types * Comment * Use fastIsType where no validation was happening before * suggestions (#7382) * suggestions * Revert unneeded changes --------- Co-authored-by: Eric Bailey <git@esb.lol> * Use new util * Rename to dangerousIsType * Convert object shape * Use dangerous util * Use dangerous util * Use dangerous util, we can trust post records * Use dangerous util * Use AnyProfileVIew * Convert object shape * Clean up handling * Patch moderateProfile to accept known profile views, to discuss * Add AnyStarterPackView and related, implement in first usage * Remove validation, fix type, fix ref * Migrate over list-conversations * Clarify intent behind precacheProfile and its unstable query cache * Clean up unstable profile cache * Fix types during label creation in PwiOptOut (#7346) * Tighten types in queries/list * Chat: use correct profile views * Chat: fix log type check * Chat: construct lexically correct shape, even though it's only internal usage * Chat: use correct profile types * Chat: fix type check in logs * Starter: use correct profile types * Starter: use correct profile types * Starter: tighten types to match lex * Any profile type will work in blocked-and-muted * Use dangerous util * Use dangerousIsType * Update new ProfileCard to use AnyProfileView * Use dangerousIsType * Remove outdated todo * Use correct profile type * Use correct profile types * Tighten up types * Use dangerousIsType * Chat: more type fixes * Remove unused file * Add a few utils * Remove unused file * Ignore feedPost.__source * Clean up types, leave validation in critical path * Use dangerousIstype * Use ANyProfileView * Use isValidRecord * Use dangerousIsType * Fix types in ListCard * Fix FeedInterstitials types * Fix types in FeedCard * Fix types in dms ReportDialog * Fix types in SearchablePeopleList * Fix bad type in composer opts * Starter: ok these need to be loose too * Clarify docs Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Less code Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use package exports Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> * Use package exports * Bump sdk, update $Typed imports * Format * Format * Fix weird TS error * Remove patch * Beter name * It's memo, can validate * Tighten up parseEmbed, dogfood * Bump sdk * Use asPredicate * Loosen types a bit * use asPredicate * Fix types * Use asPredicate * Use asPredicate * Use asPredicate * Clean up upsertProfile types * Use asPredicate * Use Un util * Fix types * Use new AnyProfileView * Use dangerousIsType * Use asPredicate * Use asPredicate * Add fallback content-type to pass typecheck * Clean up upsertProfile types * Align types * Use dangerousIsType * Use dangerousIsType * Use asPredicate * Align types * Convert findLast * Align types * Just ignore type errors and use findLast * Rename atproto -> bsky * Add validate util * Fix type error * Loosen types * Export post * rename atp bsky * Remove unused code * minor changes * Bump deps * Fix types * Tighten back up loose check * Tighten back up loose check * Fix small bug * Update comment * Revert change --------- Co-authored-by: Matthieu Sieben <matthieusieben@users.noreply.github.com> Co-authored-by: Matthieu Sieben <matthieu.sieben@gmail.com>
* Add language: Interlingua (#7715)Paul Frazee2025-02-111-0/+1
| | | | | * Add language: Interlingua * Add ia entry in dates
* Add Danish localization (#7220)Christian Schmidt2025-01-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Danish localization * Fix * Update src/locale/locales/da/messages.po Co-authored-by: Frudrax Cheng <i@cynosura.one> * Typo * Inconsistent translation of "draft" * Do not use "post" as verb * Change "post"/"repost" to "opslag"/"videredeling" * Fix "About" * Fix * Add to iOS config * Sort alphabetically * Typo fixes by @kseistrup * Fix gender of "opslag" * Plural * "videredeling" > "deling" * Be specific that ÆØÅ is not allowed * Add new strings from main --------- Co-authored-by: Frudrax Cheng <i@cynosura.one>
* Add Swedish localization (#7232)nilaallj2025-01-241-0/+2
| | | | | | | | | | | | | * Adding Swedish translation * Fixes and improvements * Fixes and improvements * Fixed inconsistencies + some other improvements * Made some improvements, added missing translations and added Swedish to app.config.js * Force push to resolve conflicts in messages.po
* Add Basque language ('eu') (#7479)REALSOULMAN2025-01-241-0/+2
| | | | | * Add Basque language * Contributor's changes
* Add Greek Language ('el') Support and Internationalization (#6677)Yiannis Mertzanis2024-12-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Add Greek language support to the application * Add support for Greek language in date handling and tests * Update Greek locale file with translator and team information * Add support for Greek language in date handling and tests * Add support for Greek language in app configuration, and updated translation from the reviewers' comments * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Update Chinese & Cantonese localization (#7235)Frudrax Cheng2024-12-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * Update translates from crowdin * Convert language codes from RFC-1766 to RFC-4646 * Update translates from crowdin * Update deviceLocales.ts * Revert 'changes zh-HK to yue' * Fix zh-HK messages.po * Revert 'en/messages.po' * Update deviceLocales.ts * Revert code comments * Update translates from crowdin * zh-TW: Improved translations
* Rework discover-feed trending interstitial (#7314)Paul Frazee2024-12-311-1/+1
| | | | | | | | | | | | | * Rework discover-feed trending interstitial to take one row * Fix loading state * Try putting it at the top * Color consistency * Tweak some spacing * Show trending when progress guide is there
* Fix Nepali language code (#7265)Minseo Lee2024-12-241-1/+1
| | | | | * Replace `np` with `ne` * Reorder
* Nepali Translation (divyaswormakai's reviewed & some changes) (#7033)Ankit Bhandari2024-12-181-0/+1
| | | | | | | | | | | | | | | | | * feat: prepare necesaary files * fix: message file for nepali translation * feat: language file update * feat: add missing pieces * feat: one and other updates * additional changes --------- Co-authored-by: Divyaswor Makai <makaidivya@gmail.com>
* Add Khmer Localization (#6914)roth2024-12-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * add khmer language * update translate * update translate * add missing localization key * update khmer wording * update khmer wording * add missing translate * add missing translate * chore: add khmer local date-time format * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Romanian localization (#6456)Claudiu Cristea2024-12-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Empty * First pass * More colloquial Romanian * Add Romanian lanaguage * Romanian specfic plural with 3 variants * Adjustments * Chat > Conversație * Keep code alphabetical order * Update messages.po * Add 'ro' to app.config.js * Regenerate and finish RO * Update messages.po * Fixing a previous wrong conflict resolution * Adapt after #6742 Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: Alex <alextec70@outlook.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Fix web Home header (#7086)dan2024-12-121-2/+2
| | | | | * Fix header disappearing on web * Make border nicer
* Add new languages to `CFBundleLocalizations` key (#6835)surfdude292024-12-021-1/+1
| | | | | | | | | | | | | | | * Order tweak in lingui.config.js * Add new languages to `CFBundleLocalizations` key * Order tweak in dates.ts * hyphen to en-dash * change two `zh` tags to use script rather than region * `zh_HK` ➡️ `yue-Hant` * `pt` ➡️ `pt-BR`
* Fix ast (#6774)Frudrax Cheng2024-11-271-2/+1
|
* Add "ast" locale support (#6411)Softastur2024-11-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" locale support * Add "ast" translations This commit adds preliminary translation support for "ast" locale. Around 20% is translated. * Update "ast" locale translations * Update "ast" translations Fixes minor spelling mistakes and translates many strings more * Update messages.po With this commit we reach the 55% of strings translated after the last code sync --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add Aragonese language ('an') support and l10n (#6638)Juan Pablo Martínez2024-11-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update languages.ts * Update i18n.web.ts * Update i18n.ts * Update helpers.ts * Create messages.po * Update lingui.config.js * Update dates.ts * Add files via upload * Update src/components/hooks/dates.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/components/hooks/dates.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update i18n.ts * Update messages.po * Update src/locale/i18n.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Merge branch 'main' into mainPaul Frazee2024-11-232-2/+8
|\
| * Added Galician language localization (#6463)xurxogp2024-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update languages.ts added galician language * Update i18n.web.ts added import of galician translations file * Update i18n.ts added galician language * Update helpers.ts added galician to sanitizeLanguage function * galician messages First commit * Second commit * Third commit * fourth commit * fifth commit * Update lingui.config.js change to make available Galician language * galician translation by Carlos Vieito and Alexandre Espinosa --------- Co-authored-by: Alexandre Espinosa Menor <aemenor@gmail.com>
| * Vietnamese Localization (Continued from #2524) (#6564)Quang Phan2024-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Vietnamese localization * Complete Vietnamese Translations * Add date localization for Vietnamese * Fix typos and wording in Vietnamese translation * Update Vietnamese translation * Add @vinhphm to Vietnamese translator list --------- Co-authored-by: CromNguyen <nguyenthietmanh98@gmail.com>
| * Implement Polish translation (#6283)axiand2024-11-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial polish translation sweep * rewrite feeds page flavor text * bring up to date with dev branch, revisit some strings * redoing some more... * bring up to date * rm dead strings, try out a different phrasing for threaded mode str prev translation was nonsensical - we're already calling threads "wątki". let's try "recursive tree" instead to describe what threaded mode does * tweaks here and there * more tweaks. sign translation file TL note: trying a new space-saving translation for send via direct message, old one made the context menu stretch * space-saving translations for profile tabs * up to date * tl latest changes * some small fixes * few more tweaks around profile editing strings * i dislike gendered languages * yet more tweaks * Update dates.ts * Review suggestions (1) * tiny fixes * Review suggestions (2) * Review suggestions (3) * Review suggestions (4) * "Anuluj wyciszenie" * A few new strings * Remove dead strings again * Review suggestions (5) * te -> to --------- Co-authored-by: Frudrax Cheng <i@cynosura.one>
| * [Statsig] Remove client downsampling (#6153)Hailey2024-11-151-2/+2
| |
* | Allow use of Dutch translations [ER].Guido Leenders2024-11-121-0/+2
|/
* add Thai Language translation support (#5879)Nawapon Boonjua2024-10-301-0/+2
| | | | | | | | | | | | | | | | | | | | | * add Thai Language support * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Update messages.po --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Sort imports (#6009)dan2024-10-292-6/+6
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Add Hungarian localisation (#5902)smileyhead2024-10-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add 'hu' to lingui.config.js * Add 'hu' to dates.ts * Add 'hu' to helpers.ts * Add 'hu' to i18n.ts * Add 'hu' to i18n.web.ts * Add 'hu' to languages.ts * Create messages.po * Update messages.po * Update messages.po * Update messages.po * Minor fixes Reworded some things in the hashtag context menu. * Some tweaks Shortened Media tab title Added spaces to the short timestamps (mp, p, ó, n, hó) * Hopefully fix the removing of plural strings * Update Hungarian localisation * Fixed some things * Fixed typo * Further small fixes * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Update src/locale/locales/hu/messages.po Co-authored-by: Frudrax Cheng <i@cynosura.one> * Update src/locale/locales/hu/messages.po Co-authored-by: Frudrax Cheng <i@cynosura.one> * Apply fixes after proofreading session --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> Co-authored-by: Frudrax Cheng <i@cynosura.one>
* Add `en-GB` localisation (#5952)surfdude292024-10-281-0/+2
| | | | | | | | | | | | | | | | | | | * Create blank en-GB/messages.po * localise certain strings for en-GB * Update lingui.config.js * Update dates.ts * Update helpers.ts * Update i18n.ts * Update i18n.web.ts * Update languages.ts * Update i18n.ts
* Add Cantonese Localization (#5479)Frudrax Cheng2024-10-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add zh-HK localization * Update dates.ts * HK: Update Translates * HK: Fix typo * HK: Fix wrong language code * HK: Update Translates * HK: Update Translates * rename 'Chinese (Hong Kong)' to 'Cantonese' * HK: Update Translates * Update languages.ts Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * HK: Update Translates by reviewers --------- Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Adjust header offset (#5501)Eric Bailey2024-09-271-3/+3
|
* [Video] Fix fullscreen on Chrome (#5246)Samuel Newman2024-09-091-0/+53
|
* Update dates.ts (#5220)surfdude292024-09-071-0/+2
|
* [Statsig] Add more events to downsample, increase downsample rate (#5198)Hailey2024-09-071-2/+2
| | | | | | | | | * add some events for sampling * include downsample rate in metadata * fix metadata logic * uncomment debug
* [Video] add scrubber to the web player (#4943)Samuel Newman2024-08-261-2/+2
|
* Submit fix (#4978)dan2024-08-221-1/+1
| | | | | | | | | | | | | | | * Fix submit logic * Fix type * Align submit task creation 1:1 with callsites * blegh. `useThrottledValue` * make `useThrottledValue`'s time required --------- Co-authored-by: Hailey <me@haileyok.com>
* Update muted words dialog with `expiresAt` and `actorTarget` (#4801)Eric Bailey2024-08-011-0/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP not working dropdown * Update MutedWords dialog * Add i18n formatDistance * Comments * Handle text wrapping * Update label copy Co-authored-by: Hailey <me@haileyok.com> * Fix alignment * Improve translation output * Revert toggle changes * Better types for useFormatDistance * Tweaks * Integrate new sdk version into TagMenu * Use ampersand Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Bump SDK --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-231-2/+2
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Create shared preferences API (#4654)Hailey2024-07-111-9/+5
|
* Starter Packs (#4332)Hailey2024-06-212-0/+97
| | | | | | | Co-authored-by: Dan Abramov <dan.abramov@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Replace getAgent() with reading agent (#4243)dan2024-05-281-3/+3
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* Movable following feed (#3593)Eric Bailey2024-05-111-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle home algo with backwards compat * Remove todo, fix pwi view * Simplify filter logic * Handle edge case * Handle home algo in FeedSourceCard * Fix handling of pinned feed if home algo is disabled * Handle home algo on ProfileFeed screen * Rename * Fix pinned feeds key * Improve perf of pinned feeds with primary algo * Update statsig API * Revert unneeded changes * Support following feed as well * Better formatting * Clarify primary algo usage * Better comment * Handle saved feed screen edge case * Restore Feeds sparkle, fix line height * Move gate call down * Filter out primary algo from feeds page * Filter dupe from Feeds screen * Simplify logic * Missing following handling * Hide primary feed setting outside exp * Revert testing change * Migrate usePinnedFeedInfos * Migrate FeedSourceCard * Migrate Feeds screen * Migrate SavedFeeds screen * Handle timeline in feed infos * Finish migrating ProfileFeed, FeedSourceCard * Migrate ProfileList * Finalize mutation hooks * Allow unsaving lists * Handle following feed on Feeds screen * Handle following on SavedFeeds * Get rid of deprecated interface usages * Handle no pinned feeds * Handle no feeds on Feeds screen * Reuse component on SavedFeeds screen * Handle no following feed * Remove primary algo references * Migrate to new plural APIs * Remove unused event * Prevent duplicate keys * Make handling much more clear * Dedupe useHeaderOffset * Filter unknown feed types at source * Use just following * Immprove key handling * Resume from last tab * Bump sdk * Revert Gemfile * Additional protection in FeedSourceCard * Fix ProfileList save/unsave handling * Translate * Translate * Match existing handling post-signup * Ensure onboarding results in correct selected feeds * Some testing tweaks on create/onboarding * Revert primary algo consderations * Remove comment * Handle default feed setting * Rm unnecessary type cast * Remove premature gate check * Remove nullable check in onPageSelecting, assume the pager checks bounds * Use null for default selected feed * Rm unrelated change * Remove the concept of __key__ I don't think this concept is consistent. It's introduced on FeedSourceInfo which is used both by pinned feeds and by useFeedSourceInfoQuery. Pinned feeds use the pinning ID there. But there is no pinning ID for useFeedSourceInfoQuery. So this means this field is sometimes one thing and sometimes some other thing. That is a decent sign that it shouldn't be on that type at all. It's not used anywhere except the desktop feed enumeration. It seems reasonable to assume there that we wouldn't want to show the same feed URL twice. (And if it does occur in the array twice, IMO we should solve that at the API level and dedupe it on read or next write.) So I think we should just use the URL in that place. (I used the descriptor, which is equivalent.) * Dedupe pinned feeds by URL on read * Filter timeline out of mergefeed sources * Put FeedDescriptor into FeedSourceInfo * Group saved info with feed for pins This removes a loop within a loop within a loop. * Fix Feeds link on native --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>