about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Patch bad migration, sanitize bad value (#2179)Eric Bailey2023-12-111-1/+2
|
* Handle failed pinned feed fetches when rendering list of pinned feeds (#2173)Eric Bailey2023-12-111-20/+33
|
* Don't validate embeds when traversing cache (#2174)dan2023-12-111-12/+4
|
* Clarify MyList filter intent (#2167)Eric Bailey2023-12-111-2/+6
|
* Additional reductions in request traffic (#2169)Paul Frazee2023-12-113-6/+15
| | | | | | | * Dont poll for new content on profiles * Drop the whenAppReady query after new post to reduce traffic overhead * Reduce getPosts calls in notifs to only use them when needed
* Add "Who can reply" controls [WIP] (#1954)Paul Frazee2023-12-102-0/+13
| | | | | | | | | | | | | | | | | | | | | * Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer
* Add back isInitialLoad to session (#2155)Eric Bailey2023-12-091-0/+8
|
* Multiple notifications fixes (#2154)Paul Frazee2023-12-094-23/+53
| | | | | | | | | | | | | | | * Dont reset notifications feed on push notification event * Dont separate notifications by read state to avoid jank * On notifications screen focus, check latest and only rerender if not scrolled down * Reuse the cached notifs page when its not stale * Bump ios build number * Improve comments * Change the 'mark all read' condition to avoid firing too early
* Use new filter for Posts tab on profile (#2150)Eric Bailey2023-12-081-0/+1
| | | | | | | * Use new filter for Posts tab on profile * Update deps * Remove log
* Await app view when handling blocks mutes for lists (#2151)Eric Bailey2023-12-081-0/+10
| | | | | * Await app view when handling blocks mutes for lists * Do it right this time
* Add manual per-page memoization to post select (#2146)dan2023-12-081-57/+120
|
* Various search fixes (#2145)Paul Frazee2023-12-074-3/+85
| | | | | | | * Add posts-search query to shadow cache search * Update user search to use correct endpoint * Fix: include cursor in post search
* Stop using the cached notification page (#2142)Paul Frazee2023-12-071-14/+7
|
* Fixes issue with (#2119)Ansh2023-12-071-8/+62
| | | | | | | | | | | * Allow going directly to password input screen when switching accounts and password is required * Revise state handling * Handle logged out states, enable clearing requestedAccount --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fix invites used order, adjust layout (#2139)Eric Bailey2023-12-071-1/+8
|
* Grab-bag of post-feed improvements (#2140)Paul Frazee2023-12-072-2/+10
| | | | | | | * Sanity check against cases where empty pages may occur * Use the mergefeed as an emergency fallback to an empty feed * Check for new posts on focus
* Add label appeal tool to posts and accounts (#2124)Paul Frazee2023-12-071-0/+11
| | | | | * Add label appeal tool to posts and accounts * Fix translations
* Hoist moderation, attempt to fill feed up to 30 (#2134)Eric Bailey2023-12-072-33/+98
| | | | | | | | | | | * Move moderatePost up to feed query * Attemt to fill page up to 30 * Add the 'ensure full page' behavior to notifs --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Completely disable the RQ cache in post-thread (#2133)Paul Frazee2023-12-071-0/+1
|
* Apply color theme to HTML page itself (#2132)Eric Bailey2023-12-071-0/+1
|
* Add PWI opt-out toggle (#2122)Paul Frazee2023-12-072-35/+50
| | | | | | | | | | | | | | | | | * Add PWI opt-out toggle * Bump @atproto/api@0.7.0 * Tweak copy * Bump lockfile * Fix layout on ios * Tweak copy more * Fix types * Tweak copy some more