about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
...
* set default display name to be blank (#2717)Hailey2024-01-311-1/+1
|
* moderate avatars and embeds in composer reply to (#2665)Hailey2024-01-301-1/+6
| | | | | | | * moderate avatars and embeds in composer reply to * oops * dont need moderation in the quote opts
* Fix notification mark-read behaviors (#2696)Paul Frazee2024-01-303-17/+25
| | | | | * Mark read on first notifs page fetch always; this is less optimal but it fixes a case where when the first full page's unreads are all filtered out * Use the pre-filter indexedAt for updateSeen
* check if a thread is muted before incrementing notif badge, filter out ↵Hailey2024-01-301-7/+40
| | | | | | | | | | | | | | | | | | | | | quotes (#2686) * check if a thread is muted before incrementing notif badge * some filtering for quotes and reposts * move logic to util * change logic * revert always fetching * logic for cases when we don't have a subject (count) * unneeded change * check subject embed in `isThreadMuted` * remove todo
* Autofocus the alt text input on all platforms, improve dismissability on ↵Hailey2024-01-301-1/+1
| | | | | | | | | native (#2690) * sneak in a eslint fix * autofocus the alt text input whenever we open the modal * properly use the hook
* Merge pull request #2679 from bluesky-social/hailey/check-blocks-load-profileHailey2024-01-302-6/+27
|\ | | | | clear cache when blocking/unblocking and whenever we get blocked, better invalidation logic for `useProfileQuery`
| * move to correct fileHailey2024-01-302-13/+14
| |
| * better namingHailey2024-01-291-3/+3
| |
| * configurable stale time for profile queriesHailey2024-01-291-5/+8
| |
| * check if we are blocked when opening a profile, reset posts cache if we areHailey2024-01-291-1/+18
| |
* | Avatar type for Feed check (#2661)Prates2024-01-301-0/+4
|/ | | | | * Changed type from algo to list * Fixed to check if it's a feed or a list
* Prefetch profile links on web (#2634)dan2024-01-251-0/+17
|
* Clean up some sentry logs (#2630)Eric Bailey2024-01-257-83/+18
| | | | | | | * Change prop name for sentry ingestion * Fix test * Add default object
* New Onboarding (#2596)Eric Bailey2024-01-253-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add round and square buttons * Allow some style for buttons, add icons * Change text selection color * Center button text, whoops * Outer layout, some primitive updates * WIP * onboarding feed prefs (#2590) * add `style` to toggle label to modify text style * Revert "add `style` to toggle label to modify text style" This reverts commit 8f4b517b8585ca64a4bf44f6cb40ac070ece8932. * following feed prefs * remove unnecessary memo * reusable divider component * org imports * add finished screen * Theme SelectedAccountCard * Require at least 3 interests * Placeholder save logic * WIP algo feeds * Improve lineHeight handling, add RichText, improve Link by adding InlineLink * Inherit lineHeight in heading comps * Algo feeds mostly good * Topical feeds ish * Layout cleanup * Improve button styles * moderation prefs for onboarding (#2594) * WIP algo feeds * modify controlalbelgroup typing for easy .map() * adjust padding on button * add moderation screen * add moderation screen * add moderation screen --------- Co-authored-by: Eric Bailey <git@esb.lol> * Fix toggle button styles * A11y props on outer portal * Put it all on red * New data shape * Handle mock data * Bulk write (not yet) * Remove interests validation * Clean up interests * i18n layout and first step * Clean up suggested follows screen * Clean up following step * Clean up algo feeds step * Clean up topical feeds * Add skeleton for feed card * WIP moderation step * cleanup moderation styles (#2605) * cleanup moderation styles * fix(?) toggle button group styles * adjust toggle to fit any screen * Some more cleanup * Icons * ToggleButton tweaks * Reset * Hook up data * Better suggestions * Bulk write * Some logging * Use new api * Concat topical feeds * Metrics * Disable links in RichText, feedcards * Tweak primary feed cards * Update metrics * Fix layout shift * Fix ToggleButton again, whoops * Error state * Bump api package, ensure interests are saved * Better fix for autofill * i18n, button positions * Remove unused export * Add default prefs object * Fix overflow in user cards * Add 2 lines of bios to suggested accounts cards * Nits * Don't resolve facets by default * Update storybook * Disable flag for now * Remove age dialog from moderations step * Improvements and tweaks to new onboarding --------- Co-authored-by: Hailey <153161762+haileyok@users.noreply.github.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add account-activation queueing to signup (#2613)Paul Frazee2024-01-252-5/+34
| | | | | | | | | | | | | | | | | | | * Add deactivated-account tracking * Center button text * Add Deactivated screen * Add icon to Deactivated screen * Abort session resumption if the session is deactivated * Implement deactivated screen status checks * Bump api@0.9.5 * Use new typo-fixed scope * UI refinements
* Fix races for post like/repost toggle (#2617)dan2024-01-251-66/+121
|
* Derive shadow like count (#2616)dan2024-01-252-25/+27
|
* Remove dead code for optimistic updates (#2615)dan2024-01-251-138/+8
|
* Resolve facets on list descriptions (#2485)Mary2024-01-231-2/+13
| | | | | * feat: add strict/loose link mapping * feat: resolve facets on list description
* use color scheme in in-app browser (#2580)Hailey2024-01-221-1/+4
|
* properly shorten links in quote embeds (#2570)Hailey2024-01-191-1/+2
| | | | | * properly shorten links in quote embeds * lint
* Phone number verification in account creation (#2564)Paul Frazee2024-01-181-1/+13
| | | | | | | | | | | | | | | | | * Add optional sms verification * Add support link to account creation * Add e2e tests * Bump api@0.9.0 * Update lockfile * Bump api@0.9.1 * Include the phone number in the ui * Add phone number validation and normalization
* New component library based on ALF (#2459)Eric Bailey2024-01-181-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Install on native as well * Add button and link components * Comments * Use new prop * Add some form elements * Add labels to input * Fix line height, add suffix * Date inputs * Autofill styles * Clean up InputDate types * Improve types for InputText, value handling * Enforce a11y props on buttons * Add Dialog, Portal * Dialog contents * Native dialog * Clean up * Fix animations * Improvements to web modal, exiting still broken * Clean up dialog types * Add Prompt, Dialog refinement, mobile refinement * Integrate new design tokens, reorg storybook * Button colors * Dim mode * Reorg * Some styles * Toggles * Improve a11y * Autosize dialog, handle max height, Dialog.ScrolLView not working * Try to use BottomSheet's own APIs * Scrollable dialogs * Add web shadow * Handle overscroll * Styles * Dialog text input * Shadows * Button focus states * Button pressed states * Gradient poc * Gradient colors and hovers * Add hrefAttrs to Link * Some more a11y * Toggle invalid states * Update dialog descriptions for demo * Icons * WIP Toggle cleanup * Refactor toggle to not rely on immediate children * Make Toggle controlled * Clean up Toggles storybook * ToggleButton styles * Improve a11y labels * ToggleButton hover darkmode * Some i18n * Refactor input * Allow extension of input * Remove old input * Improve icons, add CalendarDays * Refactor DateField, web done * Add label example * Clean up old InputDate, DateField android, text area example * Consistent imports * Button context, icons * Add todo * Add closeAllDialogs control * Alignment * Expand color palette * Hitslops, add shortcut to Storybook in dev * Fix multiline on ios * Mark dialog close button as unused
* Reduce some Sentry logs (#2549)Eric Bailey2024-01-164-7/+8
| | | | | * Reduce some Sentry logs * Update tests
* Add a new home feed-api wrapper and give a header indicating the fallback ↵Paul Frazee2024-01-151-1/+6
| | | | | | | | | behavior (#2534) * Add a new home feed-api wrapper and give a header indicating the fallback behavior * Sneak in a quick fix: use the correct text color in the delete modal * Use imported constant
* Create a profile record on new user (#2520)Paul Frazee2024-01-121-0/+6
| | | | | * Create a profile record on new user * Dont hold up account creation for the profile
* Ensure sessions and tokens are synced between tabs (#2498)Eric Bailey2024-01-121-23/+37
| | | | | * Ensure sessions and tokens are synced between tabs * Send clear account to sentry for monitoring
* (optional) In app browser (#2490)Paul Frazee2024-01-124-1/+91
| | | | | | | | | | | | | * add expo web browser + modal * add in app browser option to settings * don't show toggle on web * Tweak browser-choice UIs --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Add expired log (#2456)Eric Bailey2024-01-101-0/+2
| | | | | * Add expired log * Add service
* Reduce polling (#2465)Paul Frazee2024-01-104-5/+31
| | | | | | | | | | | | | * Move profile and preference polling to polls-on-foreground * Refetch prefs on feeds screen refresh since polling no longer occurs * Reduce notifications polling by 50% if there's already an unread * Disable feed polling if we know we have content * Disable the hard refresh after 1 hour in case it's the cause of the random feed refresh bug * Fix types
* add expandable context to composer when replying to post (#2419)Hailey2024-01-081-0/+1
| | | | | | | | | | | | | | | * add expand replyTo text with animation * add images, quote to replyTo * support withmedia * adjust layout * add embed to all needed openComposer calls * adjust gap * organize imports
* Do not nuke session on unknown backend errors (#2399)Eric Bailey2024-01-081-23/+43
| | | | | | | | | | | * Do not nuke session on unknown backend errors * Restore existing functionality * Use new event * Kick user out to sign in * Remove unstable
* convert prefix to lowercase in actor autocomplete query (#2431)Hailey2024-01-081-0/+2
|
* Additional embed sources and external-media consent controls (#2424)Paul Frazee2024-01-045-1/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add apple music embed * add vimeo embed * add logic for tenor and giphy embeds * keep it simple, use playerUri for images too * add gif embed player * lint, fix tests * remove links that can't produce a thumb * Revert "remove links that can't produce a thumb" This reverts commit 985b92b4e622db936bb0c79fdf324099b9c8fcd8. * Revert "Revert "remove links that can't produce a thumb"" This reverts commit 4895ded8b5120c4fc52b43ae85c9a01ea0b1a733. * Revert "Revert "Revert "remove links that can't produce a thumb""" This reverts commit 36d04b517ba5139e1639f2eda28d7f9aaa2dbfb6. * properly obtain giphy metadata regardless of used url * test fixes * adjust gif player * add all twitch embed types * support m.youtube links * few logic adjustments * adjust spotify player height * prefetch gif before showing * use memory-disk cache policy on gifs * use `disk` cachePolicy on ios - can't start/stop animation * support pause/play on web * onLoad fix * remove extra pressable, add accessibility, fix scale issues * improve size of embed * add settings * fix(?) settings * add source to embed player params * update tests * better naming and settings options * consent modal * fix test id * why is webstorm adding .tsx * web modal * simplify types * adjust snap points * remove unnecessary yt embed library. just use the webview always * remove now useless WebGifStill 😭 * more type cleanup * more type cleanup * combine parse and prefs check in one memo * improve dimensions of youtube shorts * oops didn't commit the test 🫥 * add shorts as separate embed type * fix up schema * shorts modal * hide gif details * support localized spotify embeds * more cleanup * improve look and accessibility of gif embeds * Update routing for the external embeds settings page * Update and simplify the external embed preferences screen * Update copy in embedconsent modal and add 'allow all' button --------- Co-authored-by: Hailey <me@haileyok.com>
* Reduce web requests (#2420)Paul Frazee2024-01-044-2/+8
| | | | | * Stop auto-refetching app passwords and invites on an interval * Don't poll for posts or notifs if the app/tab isnt focused
* Add some more logging (#2402)Eric Bailey2024-01-021-8/+4
| | | | | | | | | * Add a few logs * Report unknown create account errors separately * Downgrade to warn * Nvm
* emoji picker improvements (#2392)Hailey2024-01-021-0/+1
| | | | | | | | | | | | | * rework emoji picker * dynamic position * always prefer the left if it will fit * add accessibility label * Update EmojiPicker.web.tsx oops. remove accessibility from fake button
* A couple notifications fixes (#2327)Paul Frazee2023-12-272-1/+6
| | | | | * Clear the app badge notif count on markallread * Fix like notifications on custom feeds
* Hide posts tool (#2299)Eric Bailey2023-12-247-10/+84
| | | | | | | | | | | | | * Set up hidden posts persisted state * Wrap moderatePost * Integrate hidden posts into moderation * Complete hide-post behaviors --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix blank home screen (close #2281) (#2291)Paul Frazee2023-12-241-1/+4
|
* Fix some account filtering behaviors (#2290)Paul Frazee2023-12-231-1/+1
| | | | | * Fix: don't filter ProfileCards out of certain lists * Fix: don't filter ProfileCards and autocomplete based on mutes
* Invalid handle autocomplete (#2251)Samuel Newman2023-12-201-1/+2
| | | | | * refactor invalid handle check from a previous PR to use util function * add invalid handle check to `prefixMatch`
* Use same source for pinned feeds on Home and tab/sidebars (#2235)Eric Bailey2023-12-181-0/+1
|
* fix Create Account metrics (#2242)Ansh2023-12-181-0/+2
|
* Traffic reduction and tuned caching strats (#2215)Paul Frazee2023-12-154-75/+38
| | | | | | | | | | | | | * Update the feed to only check latest on focus after 30s, but to do a full reset on focus after 1 hour to avoid very stale data * Remove the isFeedPublic query * Fix: avoid double next-page fetches * Reduce some poll intervals to reduce server load * Guard against double-fires of fetchNextPage * Reduce polling on blurred screens
* PWI behavior updates (#2207)Paul Frazee2023-12-143-6/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable PWI * Disable access to feeds on PWI * Remove feeds nav item from drawer when signed out * Replace discover feed on home with a CTA * Wire up the sign in and create account buttons to go straight to their respective screens * Give a custom ScreenHider interface for no-pwi * Add side borders on desktop to the screen hider * Filter accounts in the autocomplete according to mod settings * Trim replies in the post thread that are pwi opt-out * Show 'learn more' on the content hider when no-override is enabled * Apply the moderation filter on profile cards * Disable post search on logged-out view * Update locale files * Bump api pkg * Ensure feeds with no posts don't show as NSFPublic * Fix types --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Feed bugfixes (#2204)Paul Frazee2023-12-132-2/+14
| | | | | * Dont show both an error and empty message in the feed * Add a sanity check when attempting to fill the first 30
* More notifications improvements (#2198)Paul Frazee2023-12-133-26/+25
| | | | | * On mobile, never replace the notifs under the user due to focus events * Use the server's seenAt response to calculate isRead state locally
* Add fallback to email reminder modal (#2193)Eric Bailey2023-12-121-0/+9
| | | | | * Add fallback to email reminder modal * Add more debug
* i18n settings improvements (#2184)Eric Bailey2023-12-121-3/+4
| | | | | | | | | * Handle language selector * Improve type safety * Add a little more safety * Update comment