about summary refs log tree commit diff
path: root/src/state
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused NoopFeedTuner (#4856)dan2024-07-311-22/+7
|
* [Video] Uploads (#4754)Hailey2024-07-306-0/+401
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * state for video uploads * get upload working * add a debug log * add post progress * progress * fetch data * add some progress info, web uploads * post on finished uploading (wip) * add a note * add some todos * clear video * merge some stuff * convert to `createUploadTask` * patch expo modules core * working native upload progress * platform fork * upload progress for web * cleanup * cleanup * more tweaks * simplify * fix type errors --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Boolean filter improvement alternative: TS upgrade (#4840)Dmitrii Kartashev2024-07-262-3/+3
| | | | | * upgrade typescript and use new feature * fix: typing error
* Refactor feed slices (#4834)dan2024-07-251-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Copy FeedViewPost into FeedSliceItem * Explicitly construct feed slice items by copying known fields * Type rootItem as FeedViewPost for now Mergefeed logic relies on that. * Unify reason and __source for slice items * Move feedContext out of FeedSliceItem * Remove slice.isFlattenedReply * Remove unnused slice.ts * Inline slice.isFullThread * Refactor condition for clarity * Extract slice.includesThreadRoot * Encapsulate more usages of slice.rootItem into slice * Rename slice.rootItem so semi-private slice._feedPost * Move reason into slice * Simplify slice ctor argument * Reorder getters to reduce diff * Make feedContext a getter to reduce diff
* Fix sloppy filter(Boolean) types (#4830)dan2024-07-252-19/+32
| | | | | | | | | | | | | * Fix sloppy filter(Boolean) in threadgate * Fix sloppy filter(Boolean) in Explore * Fix sloppy filter(Boolean) in post-feed * Harden FeedPostSliceItem.reason type def * Harden parentAuthor types * Fix lying component types, handle blocks
* special invalidation logic (#4820)Samuel Newman2024-07-241-0/+2
| | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Priority notifications (#4798)Samuel Newman2024-07-244-16/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * new settings screen * bring back the spinner * add experimental language * fix typo, change leading * integrate priority notifications API * update package * use refetch instead of invalidateQueries * fix read-after-write issue by polling for update * add spinner for initial load * rm onmutate, it's overcomplicated * set error state eagerly * Change language in description Co-authored-by: Hailey <me@haileyok.com> * prettier * add `Toggle.Platform` * extract out mutation hook + error state * rm useless cache mutation * disambiguate isError and isPending * rm unused isError --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* dont filter exact matches from typeahead (#4802)Hailey2024-07-191-11/+22
|
* Remove invalid labelers when subscribing/unsubscribing (#4771)Eric Bailey2024-07-121-3/+46
| | | | | | | * Remove invalid labelers when subscribing/unsubscribing * Let the async lock cook * Use link to associate, leave copy as is
* [Session] Include stack with the debug event (#4763)dan2024-07-101-1/+6
|
* [Session] Experiment: Don't use withProxy (#4762)dan2024-07-101-13/+31
| | | | | * Reorder statements * Remove withProxy() usage behind a gate
* Rename session event, scope to errors (#4761)dan2024-07-092-4/+6
|
* Log session events unconditionally (#4758)dan2024-07-092-1/+15
|
* Show feedback for Follow button in interstitials (#4738)dan2024-07-051-2/+17
| | | | | * Fix Follow in interstitials * Show feedback in toast
* [D1X] Use user action and viewing history to inform suggested follows (#4727)Eric Bailey2024-07-044-3/+110
| | | | | | | | | | | | | * Use user action and viewing history to inform suggested follows * Remove dynamic spreads * Track more info about seen posts * Add ranking --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix responsiveness of dismissing the progress guide (#4729)Paul Frazee2024-07-041-8/+7
|
* Fix feed feedback (#4730)dan2024-07-041-7/+5
|
* [D1X] Pull out follow-backs for higher signal (#4719)Eric Bailey2024-07-043-6/+25
| | | | | | | | | | | * Pull out follow-backs for higher signal * Gate it * Fix early gate check --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* New user progress guides (#4716)Paul Frazee2024-07-044-0/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add the animated checkmark svg * Add progress guide list and task components * Add ProgressGuide Toast component * Implement progress-guide controller * Add 7 follows to the progress guide * Wire up action captures * Wire up progress-guide persistence * Trigger progress guide on account creation * Clear the progress guide from storage on complete * Add progress guide interstitial, put behind gate * Fix: read progress guide state from prefs * Some defensive type checks * Create separate toast for completion * List tweaks * Only show on Discover * Spacing and progress tweaks * Completely hide when complete * Capture the progress guide in local state, and only render toasts while guide is active * Fix: ensure persisted hydrates into local state * Gate --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Add starter pack embeds to posts (#4699)Hailey2024-07-041-0/+33
| | | | | | | | | | | | | | | | | | | | | | | * starter pack embeds * revert test code * Types * add `BaseLink` * precache on click * rm log * add a comment * loading state * top margin --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Handle pushing to starterpack screen when unauthed (#4692)Hailey2024-06-272-25/+15
|
* Handle pressing all go.bsky.app links in-app w/ resolution (#4680)Hailey2024-06-272-0/+44
|
* Remove reposts from the Replies tab (#4669)dan2024-06-271-0/+6
|
* [Starter Packs] Posts tab (#4660)dan2024-06-272-3/+30
| | | | | * [Starter Packs] Posts tab * oops
* Only add the URI to the record (#4639)Hailey2024-06-251-1/+1
|
* add rich text facets to description (#4619)Hailey2024-06-241-14/+36
|
* Composer - replace threadgate modal with alf dialog (#4329)Samuel Newman2024-06-241-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace threadgate modal with alf dialog * add accessibility to selectable * add aria * hide spinner once fetched * add `hasOpenDialogs` value to context * remove state * Rm loading state * Update the threadgate dialog button theming * Factor out the threadgate editor and add editing to post views * Mark messages for localization * Use colors from mute dialog * Remove unnecessary effect * Reset state on dialog dismiss * Clearer CTA * Fix bugs * Scope keyboard fix * Rm getAreDialogsActive (no longer needed) --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix crash in Feeds and Starter Packs (#4616)dan2024-06-241-16/+28
| | | | | | | * Remove useless check * Fix the bug by only adding resolved feeds/lists * Clarify the purpose of the count field
* Starter Packs (#4332)Hailey2024-06-2116-61/+659
| | | | | | | 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>
* Tweak feed card to prevent spinnerz when pushing to screen (#4600)Hailey2024-06-211-1/+9
|
* [Statsig] Send Discover aggregate interactions (#4599)dan2024-06-221-1/+106
|
* Pinned feeds cards (#4526)Eric Bailey2024-06-222-1/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add lists support to FeedCard * Add useSavedFeeds query, similar to usePinnedFeedInfos * Integrate into Feeds screen * Fix alignment on mobile * Update usages * Add placeholder loading state * Handle no feeds state * Reuse previous data for placeholder * Staged loading * Improve staged loading * Use setQueryData approach to pre-caching * Add types for a little more safety * Fix precaching --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fetch more than 3 suggested follows after first load (#4595)Eric Bailey2024-06-211-2/+7
| | | | | * Fetch more than 3 sugg follows after first load * Preview handling via overfetching
* [Session] Logging (#4476)dan2024-06-203-6/+178
| | | | | | | * Add session logging (console.log) * Hook it up for real * Send type separately
* Add a11y context (#4586)Eric Bailey2024-06-201-0/+65
| | | | | * Add a11y context * Feedback
* Option for large alt badges (#4571)Samuel Newman2024-06-205-11/+67
| | | | | | | | | | | | | * add pref for large alt badge * add to settings * do the large badge bit * Tweak wording --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [Session] Convert account to session data explicitly (#4446)dan2024-06-192-17/+24
| | | | | | | * Extract a variable * Extract sessionAccountToSession * Convert account to session data on assignment
* Fix undefined block (#4479)Eric Bailey2024-06-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | * Fix undefined block (#4378) * Fix undefined block * Changing text and handling all blocks. * Tweaks * Update copy, make non-interactive * Remove console * Clarify logic * Pass through parent blocked state for 3p blocks * Better translation --------- Co-authored-by: Josh <hi@oracularhades.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Verify email reminders (#4510)Eric Bailey2024-06-183-25/+40
| | | | | | | | | | | | | | | | | | | | | | | | | * Clarify intent * Increase email reminder period to once per day * Fallback * Snooze immediately after account creation, prevent showing right after signup * Fix e2e test exports * Remove redundant check * Better simple date generation * Replace in DateField * Use non-string comparison * Revert change to unrelated code * Also parse * Remove side effect
* Migrate local thread mutes (#4523)Samuel Newman2024-06-193-4/+58
| | | | | | | | | | | | | | | * migrate thread mutes * don't try and clear if not logged in yet * migrate mutes one at a time * write before mutating * only migrate mutes of self posts * use /** @deprecated */ * shouldLike -> shouldMute
* Implement thread locking (#4545)Paul Frazee2024-06-183-2/+36
| | | | | | | * Add the ability to edit threadgates * Fix bottom border on mobile * Refresh thread after threadgate edit
* Fix: only apply self-thread load-more behavior on the outer edge of the ↵Paul Frazee2024-06-181-2/+11
| | | | reply tree (#4559)
* Server-side thread mutes (#4518)Samuel Newman2024-06-186-119/+115
| | | | | | | | | | | * update atproto/api * move thread mutes to server side * rm log * move muted threads provider to inside did key * use map instead of object
* Select, don't mutate (#4541)Eric Bailey2024-06-171-19/+21
|
* Redo explore page (#4491)Eric Bailey2024-06-142-6/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Redo explore page, wip * Remove circle icons * Load more styling * Lower limit * Some styling tweaks * Abstract * Add tab, query, factor out * Revert unneeded change * Revert unneeded change v2 * Update copy * Load more styling * Header styles * The thin blue line * Make sure it's hairline * Update query keys * Border * Expand avis * Very load more copy
* Add known followers to shadow cache (#4517)Eric Bailey2024-06-142-2/+32
|
* Reuse overfetching for popular feeds, add in existing filtering (#4501)Eric Bailey2024-06-141-5/+95
|
* Set profile hover prefetch stale time to 30s (#4417)Eric Bailey2024-06-131-0/+1
| | | | | | | * Set prefetch stale time to 30s * Run prefetch on mouseOver * Only prefetch once on mousemove
* Add KnownFollowers component to standard profile header (#4420)Eric Bailey2024-06-111-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add KnownFollowers component to standard profile header * Prep for known followers screen * Add known followers screen * Tighten space * Add pressed state * Edit title * Vertically center * Don't show if no known followers * Bump sdk * Use actual followers.length to show * Updates to show logic, space * Prevent fresh data from applying to cached screens * Tighten space * Better label * Oxford comma * Fix count logic * Add bskyweb route * Useless ternary * Minor spacing tweak --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix to thread load-more bug (#4488)Paul Frazee2024-06-111-3/+2
|