about summary refs log tree commit diff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused NoopFeedTuner (#4856)dan2024-07-311-10/+0
|
* useDedupe callback (#4855)GSMT2024-07-301-2/+2
|
* [Video] Uploads (#4754)Hailey2024-07-302-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Refactor feed slices (#4834)dan2024-07-252-62/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Priority notifications (#4798)Samuel Newman2024-07-242-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Hack-modify avi path to use smaller thumbs behind gate (#4816)Paul Frazee2024-07-231-0/+1
| | | | | * Hack-modify avi path to use smaller thumbs behind gate * Only use small thumbs on smaller rendering
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-232-3/+3
| | | | | | | | | | | | | * 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>
* Remove invalid labelers when subscribing/unsubscribing (#4771)Eric Bailey2024-07-121-0/+2
| | | | | | | * Remove invalid labelers when subscribing/unsubscribing * Let the async lock cook * Use link to associate, leave copy as is
* Make all referrer info sync (#4782)Hailey2024-07-121-9/+8
|
* referrers for all platforms (#4514)Hailey2024-07-113-22/+19
|
* Create shared preferences API (#4654)Hailey2024-07-111-0/+1
|
* [ALF] Theme & palette cleanup (#4769)Eric Bailey2024-07-112-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Invert primary scale * Invert negative palette * Replace theme specific styles in Toggle * Remove theme specific colors from Button, improves secondary solid on dark mode * TextField * Remove from MessageItem * Threadgate editor * IconCircle * Muted words * Generate themes from hues * Cleanup * Deprecate more values, fix circular import * Invert positive too, hardly use * Button tweaks, some theme diffs * Match disabled state for negative button * Fix unread noty bg
* [Session] Experiment: Don't use withProxy (#4762)dan2024-07-101-0/+1
| | | | | * Reorder statements * Remove withProxy() usage behind a gate
* Add social proof to suggested follows (#4602)Samuel Newman2024-07-091-0/+1
| | | | | | | | | | | | | * replace unused `followers` prop with social proof * Introduce 'minimal' version * Gate social proof one explore page, fix space if no desc * Use smaller avis for minimal --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Fix RTL text rendering for display names (#4747)Hailey2024-07-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * header display name rtl support * highlighted post rtl * move `NON_BREAKING_SPACE` to an external constant * rtl support in search dropdown * profile card rtl * old profile card rtl * hover card * wizard list card * new chat * account card * chat header * clean up notifications * just force LTR on meta display name
* Fix misplaced '@' in RTL post meta. (#4531)Joel2024-07-073-6/+16
| | | | | Co-authored-by: Joel <joel.garplind+github@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* Ensure `/start` navigates to `/starter-pack` when clicking a link internally ↵Hailey2024-07-071-0/+6
| | | | | | | (#4745) * remove temporary metadata removal * ensure proper navigation
* Video compression in composer (#4638)Samuel Newman2024-07-056-0/+102
| | | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Update statsPaul Frazee2024-07-051-1/+1
|
* [D1X] Pull out follow-backs for higher signal (#4719)Eric Bailey2024-07-041-2/+3
| | | | | | | | | | | * 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-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-043-6/+71
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Guided tour for new users (#4690)Paul Frazee2024-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add home guided tour (WIP) * Add web handling of the tour * Switch to our fork of rn-tourguide * Bump guided-tour * Fix alignment on android * Implement home page tour trigger after account creation * Add new_user_guided_tour gate * Add a title line to the tour tooltips * A11y improvements: proper labels, focus capture, scroll capture * Silence type error * Native a11y * Use FocusScope * Switch to useWebBodyScrollLock() --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Don't follow self, blocks or mute when following all; don't show blocks in ↵Hailey2024-07-031-0/+17
| | | | | | | | | | | list (#4715) * don't follow self when following all * also filter blocks * add more filtering to follow all * extract logic to functions
* [D1X] Integrate interstitials (#4698)Eric Bailey2024-07-031-0/+2
| | | | | | | | | | | | | | | * Use discriminated union * Integrate interstitials * Add gates and handling for variants * Only show interstitials for logged in accounts since flags are based on user ID * Nit --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [D1X] Add interstitials, component tweaks, placeholders (#4697)Eric Bailey2024-07-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add interstitials, component tweaks, placeholders * Tweak feed card styles * Port over same fix to ProfileCard * Add browse more link on desktop * Rm Gemfile * Update logContext * Update logContext * Add click metric to cards * Pass through props to ProfileCard.Link * 2-up grid for profile cards on desktop web * Add secondary_inverted button color * Use inverted button color * Adjust follow button layout * Update skeleton * Use round button * Translate
* [D1X] Minimum interest experiment (#4653)Eric Bailey2024-07-021-0/+1
| | | | | | | | | | | | | | | | | | | * Change up copy * Add min # prompt * Improve style * Add gate * Tweak padding * Translate * Revert string change --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Add events to signup for captcha results (#4712)Hailey2024-07-011-0/+6
|
* Handle pressing all go.bsky.app links in-app w/ resolution (#4680)Hailey2024-06-273-5/+24
|
* Add some events to landing screen (#4664)Hailey2024-06-261-0/+6
|
* Better starterpack embed (#4659)Hailey2024-06-264-3/+43
|
* Remove starterpack gate (#4645)Hailey2024-06-251-1/+0
|
* Set up the global 'joined this week' (#4625)Paul Frazee2024-06-241-0/+9
|
* use granular permission of for media perm request (#4609)Hailey2024-06-241-1/+3
|
* Starter Packs (#4332)Hailey2024-06-2112-2/+377
| | | | | | | 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>
* [Statsig] Send Discover aggregate interactions (#4599)dan2024-06-222-0/+19
|
* Add debug feedContext label (#4598)dan2024-06-221-0/+1
|
* Rework "Who can reply" to blend more nicely into the UI (#4578)Paul Frazee2024-06-191-0/+1
| | | | | | | | | | | | | * Rework WhoCanReply controls in threads to blend more nicely * Fix layout * Fix post control hitslops * Move dialog content to separate component --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* GIF previews in notifications (#4447)Samuel Newman2024-06-191-35/+65
| | | | | | | | | | | * gifs in notifications * remove try/catch * Limit try/catch scope --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Verify email reminders (#4510)Eric Bailey2024-06-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement thread locking (#4545)Paul Frazee2024-06-182-5/+14
| | | | | | | * Add the ability to edit threadgates * Fix bottom border on mobile * Refresh thread after threadgate edit
* Force callers of `getTimeAgo` to pass in the value for "now" (#4560)Eric Bailey2024-06-181-13/+4
| | | | | | | * Remove icky hook for now * Force callers of getTimeAgo to pass in the 'now' value * Update usage in Newskie dialog
* Server-side thread mutes (#4518)Samuel Newman2024-06-181-0/+2
| | | | | | | | | | | * update atproto/api * move thread mutes to server side * rm log * move muted threads provider to inside did key * use map instead of object
* Add `useGetTimeAgo` and utils (#4556)Eric Bailey2024-06-183-42/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create a testable version of ago() and re-enable the disabled test (#4364) * Enable the test of ago() * Use test cases This puts the input and the expected values next to each other. * Create dateDiff function This is a copy of ago(), but with the ability to specify the second date instead of using Date.now(). * Let ago() use dateDiff() * Move constants close to usage * Test dateDiff instead of ago This makes it possible to test the dates without being forced to rely on what the current date is. The commented out tests do not yet pass. This is fixed in later commits. * Update dateDiff and enable the remaining tests * Split up tests, use date-fns as helpers * Remove old test * Add long format * Add hook * Migrate to hooks * Delete old code * Or equal to * Update comment --------- Co-authored-by: Jan Aagaard <jan@aagaard.net>
* Add `native_pwi_disabled` feature gate experiment (#4507)Eric Bailey2024-06-172-2/+9
| | | | | * Add native_pwi_disabled feature gate experiment * Use const
* Try/catch URL parsing of referrer (#4511)Samuel Newman2024-06-131-6/+13
|
* add `document.referrer` to statsig custom (#4509)Hailey2024-06-131-0/+14
| | | | | | | | | | | | | | | * add referrer to statsig custom dont include referrer if hostname is bsky.app save add `document.referrer` to statsig custom * add a hostname field * account for ssr * account for ssr
* Add KnownFollowers component to standard profile header (#4420)Eric Bailey2024-06-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Move feeds screen into common navigator, handle usages (#4365)Eric Bailey2024-06-113-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move feeds screen into common navigator, handle usages * Add link to Feeds from home screen (#4366) * Add link to feeds to home screen header * Center logo * Replace icons * Tweak spacing * Tweak spacing * Swap icon, sizing * Buttonize, size * Make menu same alignment on all screens * Remove FeedsTab support, enable drawer swipe on MessagesTab * Add note * Vertically align header * Swap in Pin * Use hashtag icon * Remove png * Fix reference * Ensure alignment with home and other screens
* register the push token after request has been approved on android (#4481)Hailey2024-06-111-1/+15
| | | | | | | | | | | * register the push token after request has been approved on android * use a `0` string for badge count * Revert "use a `0` string for badge count" This reverts commit efac39861817f4237c58211f68ef266d919b4d40. * temporary fix