about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
* Log to Sentry whenever users encounter Bluesky feed errors (#2999)Hailey2024-02-271-18/+41
|
* Add tags and mute words (#2968)Eric Bailey2024-02-263-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add bare minimum hashtags support (#2804) * Add bare minimum hashtags support As atproto/api already parses hashtags, this is as simple as hooking it up like link segments. This is "bare minimum" because: - Opening hashtag "#foo" is actually just a search for "foo" right now to work around #2491. - There is no integration in the composer. This hasn't stopped people from using hashtags already, and can be added later. - This change itself only had to hook things up - thank you for having already put the hashtag parsing in place. * Remove workaround for hash search not working now that it's fixed * Add RichTextTag and TagMenu * Sketch * Remove hackfix * Some cleanup * Sketch web * Mobile design * Mobile handling of tags search * Web only * Fix navigation woes * Use new callback * Hook it up * Integrate muted tags * Fix dropdown styles * Type error * Use close callback * Fix styles * Cleanup, install latest sdk * Quick muted words screen * Targets * Dir structure * Icons, list view * Move to dialog * Add removal confirmation * Swap copy * Improve checkboxees * Update matching, add tests * Moderate embeds * Create global dialogs concept again to prevent flashing * Add access from moderation screen * Highlight tags on native * Add web highlighting * Add close to web modal * Adjust close color * Rename toggles and adjust logic * Icon update * Load states * Improve regex * Improve regex * Improve regex * Revert link test * Hyphenated words * Improve matching * Enhance * Some tweaks * Muted words modal changes * Handle invalid handles, handle long tags * Remove main regex * Better test * Space/punct check drop to includes * Lowercase post text before comparison * Add better real world test case --------- Co-authored-by: Kisaragi Hiu <mail@kisaragi-hiu.com>
* Scale back sentry logs for trivial events (#2997)Hailey2024-02-264-19/+19
| | | | | * scale back sentry logs * update migrate log tests
* Fix flash when pressing into just-created post (#2945)dan2024-02-201-1/+8
|
* Prefer full posts for post thread placeholder (#2943)dan2024-02-203-67/+33
| | | | | | | | | * Revert "Prefer post over quote when finding cached post (#2935)" This reverts commit da62a77f05258ce2b0609248cb5677c2406a4e63. * Prefer full posts for post thread placeholder * Clarify with a comment
* Prefer post over quote when finding cached post (#2935)Hailey2024-02-191-1/+8
|
* Add embed to post view when converting from embed view (#2929)Hailey2024-02-191-0/+1
|
* remove sandbox labels (#2883)Hailey2024-02-161-6/+0
| | | | | * rm sandbox * remove comment
* Update tests to get them passing again (#2853)Paul Frazee2024-02-121-0/+146
|
* Improved server selector during account creation and signin (#2840)Paul Frazee2024-02-123-7/+3
| | | | | | | | | | | | | | | | | * Replace the ServerInput modal with a new dialog based on alf that remembers your server address history and doesnt put staging and localdev in the options * Update the server selector during account creation * dont apply capitalization, use url keyboard * Apply insets to dialog top * Improve padding of dialogs on native * Fix race condition in dialog close; also fix fire of the onClose event in dialogs --------- Co-authored-by: Hailey <me@haileyok.com>
* Fix flashes and jumps when opening profile (#2815)dan2024-02-081-11/+13
| | | | | | | | | | | * Don't reset the tree when profile loads fully * Give avatars a background color like placeholders * Prevent jumps due to rich text resolving * Rm log * Rm unused
* Precache basic profile from posts for instant future navigations (#2795)Hailey2024-02-095-58/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * skeleton for caching * modify some existing logic * refactor uri resolution query * add precache feed posts * adjustments * remove prefetch on hover (maybe revert, just example) * fix * change arg name to match what we want * optional infinite stale time * use `ProfileViewDetailed` * Revert "remove prefetch on hover (maybe revert, just example)" This reverts commit 08609deb0defa7cea040438bc37dd3488ddc56f4. * add warning comment back for stale time * remove comment * store profile with both the handle and did for query key * remove extra block from revert * clarify argument name * remove QT cache * structure queries the same (put `enabled` at bottom) * use both `ProfileViewDetailed` and `ProfileView` for the query return type * placeholder profile header * remove logs * remove a few other things we don't need * add placeholder * refactor * refactor * we don't need this height adjustment now * use gray banner while loading * set background color of image to the loading placeholder color * reorg imports * add border to header on loading * Fix style * Rm radius * oops * Undo edit * Back out type changes * Tighten some types and moderate shadow * Move precaching fns to profile where the cache is * Rename functions to match what they do now * Remove anys --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Remove Profile Preview modal (#2790)dan2024-02-081-6/+0
|
* Keep pager feeds in sync with the right pane (#2775)dan2024-02-081-0/+61
| | | | | | | | | | | * Hoist selected feed state * Seed state from params * Refine and fix logic * Fix scroll restoration * Soft reset on second click
* Hackfix to avoid creating identical profile objects during account creationPaul Frazee2024-02-071-0/+6
|
* fix theme cross-tab write loop (#2774)Hailey2024-02-061-21/+23
| | | | | * don't write on onUpdate, memoize * refac useColorModeTheme
* Refactor Home feed pager rendering logic (#2768)dan2024-02-062-0/+3
| | | | | * Use new persistence API for selected feed * Refactor Home feeds pager data source
* convert query to lowercase before performing search (#2770)Hailey2024-02-061-0/+1
|
* Options for selecting dark theme, fix some white flashes when in dark mode ↵Hailey2024-02-064-32/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#2722) * add dark theme selection to settings/schema * use `useThemePrefs` where needed * adjust theme providers to support various themes * update storybook * handle web themes * better themeing for web * dont show dark theme prefs when color mode is light * drop the inverted text change on oled theme * get the color mode inside of `useColorModeTheme` * use `ThemeName` type everywhere * typo * use dim/dark instead of dark/oled * prevent any fickers on web * fix styles * use `dim` for dark default * more cleanup * 🤔 * set system background color * ts
* password flow improvements (#2730)Hailey2024-02-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add button to skip sending reset code * add validation to reset code * comments * update test id * consistency sneak in - everything capitalized * add change password button to settings * create a modal for password change * change password modal * remove unused styles * more improvements * improve layout * change done button color * add already have a code to modal * remove unused prop * icons, auto add dash * cleanup * better appearance on android * Remove log * Improve error messages and add specificity to function names --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Onboarding moderation improvements (#2713)Hailey2024-01-311-1/+9
| | | | | | | | | | | | | | | | | * create separate label group arrays * render adult and other label groups separately * animate in/out the additional settings * improve toggle logic * support animations on all platforms * remove debug * update notice, prevent running animations on mount * reorg imports
* 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