about summary refs log tree commit diff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix fixed footer experiment (#4969)dan2024-08-221-27/+18
| | | | | | | | | | | | | | | | | * Split minimal shell mode into headerMode and footerMode For now, we'll always write them in sync. When we read them, we'll use headerMode as source of truth. This will let us keep footerMode independent in a future commit. * Remove fixed_bottom_bar special cases during calculation This isn't the right time to determine special behavior. Instead we'll adjust footerMode itself conditionally on the gate. * Copy-paste setMode into MainScrollProvider This lets us fork the implementation later just for this case. * Gate footer adjustment in MainScrollProvider This is the final piece. Normal calls to setMode() keep setting both header and footer, but MainScrollProvider adjusts the footer conditionally.
* Change size (#4957)Hailey2024-08-211-0/+1
|
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-214-57/+96
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Show quote posts (#4865)Samuel Newman2024-08-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * show quote posts * fix filter * fix keyExtractor * move likedby and repostedby to new file structure * use modern list component * remove relative imports * update quotes count after quoting * call `onPost` after updating quote count * Revert "update quotes count after quoting" This reverts commit 1f1887730a210c57c1e5a0eb0f47c42c42cf1b4b. * implement * update like count in quotes list * only add `onPostReply` where needed * Filter quotes with detached embeds * Bump SDK * Don't show error for no results --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Update joined stat (#4967)Eric Bailey2024-08-211-1/+1
|
* Add `list hidden` screen (#4958)Hailey2024-08-201-0/+23
| | | | | Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Fix orphaned feed slices, handle blocks (#4944)Eric Bailey2024-08-191-5/+26
| | | | | | | | | | | * Fix orphaned feed slices, handle blocks * Revert to filerting out orphan threads * Support NotFoundPost views too * Just kidding, use ReplyRef.root as source of grandparent data * Fixes
* [Experiment] Always show bottom bar (#4946)dan2024-08-162-0/+19
|
* Revert "[Video] Download videos" (#4945)Hailey2024-08-151-1/+0
|
* Move global "Sign out" out of the current account row (#4941)dan2024-08-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | * Rename logout to logoutEveryAccount * Add logoutCurrentAccount() * Make all "Log out" buttons refer to current account Each of these usages is completely contextual and refers to a specific account. * Add Sign out of all accounts to Settings * Move single account Sign Out below as well * Prompt on account removal * Add Other Accounts header to reduce ambiguity * Spacing fix --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* [Video] Download videos (#4886)Hailey2024-08-151-0/+1
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Add `/live/` to supported YouTube embed URLs (#4932)Hailey2024-08-131-5/+10
|
* Don't kick to login screen on network error (#4911)dan2024-08-131-1/+66
| | | | | | | | | | | | | | | | | | | | | * Don't kick the user on network errors * Track online status for RQ * Use health endpoint * Update test with new behavior * Only poll while offline * Handle races between the check and network events * Reduce the poll kickoff interval * Don't cache partially fetched pinned feeds This isn't a new issue but it's more prominent with the offline handling. We're currently silently caching pinned infos that failed to fetch. This avoids showing a big spinner on failure but it also kills all feeds which is very confusing. If the request to get feed gens fails, let's fail the whole query. Then it can be retried.
* Remove .withProxy() calls (#4929)dan2024-08-131-1/+0
|
* Upgrade API, implement XRPC rework (#4857)Hailey2024-08-127-143/+125
| | | | Co-authored-by: Matthieu Sieben <matthieu.sieben@gmail.com>
* Improve styles (#4916)Minseo Lee2024-08-112-4/+5
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Remove show_avi_follow_button (#4900)Eric Bailey2024-08-081-1/+0
|
* Remove native_pwi_disabled (#4896)Eric Bailey2024-08-081-1/+0
| | | | | * Remove native_pwi_disabled * Remove search button
* Remove new_user_progress_guide (#4895)Eric Bailey2024-08-081-1/+0
|
* Remove explore_page_profile_card_social_proof (#4894)Eric Bailey2024-08-081-1/+0
|
* Remove ungroup_follow_backs gate (#4893)Eric Bailey2024-08-081-1/+0
|
* Cleanup flags (#4891)dan2024-08-082-15/+2
| | | | | * Remove launched gates * Remove disabled gates
* ALF suggested follows in profile header (#4828)Eric Bailey2024-08-081-0/+4
| | | | | | | | | * Refactor ProfileHeaderSuggestedFollows * Load fresh data every time * Oops, missed a file * Update ProfileCard.Link usage, tweak copy
* Added trans (#4890)Minseo Lee2024-08-081-1/+1
|
* Add logging of selected feed preference when displaying the following feed ↵Hailey2024-08-071-0/+6
| | | | (#4789)
* [Video] Visibility detection view (#4741)Hailey2024-08-071-0/+1
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Tweak feed manip to show cases of A -> B without further children (#4883)Hailey2024-08-061-8/+10
|
* Show more replies in Following (different heuristic) (#4880)dan2024-08-061-15/+79
|
* Show replies in context of their threads (#4871)dan2024-08-052-184/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't reconstruct threads from separate posts * Remove post-level dedupe for now * Change repost dedupe condition to look just at length * Delete unused isThread * Delete another isThread field It is now meaningless because there's nothing special about author threads. * Narrow down slice item shape so it does not need reply * Consolidate slice validation criteria in one place * Show replies in context * Make fallback marker work * Remove misleading and now-unused property It was called rootUri but it was actually the leaf URI. Regardless, it's not used anymore. * Add by-thread dedupe to non-author feeds * Add post-level dedupe * Always count from the start This is easier to think about. * Only tuner state need to be untouched on dry run * Account for threads in reply filtering * Remove repost deduping This is already being taken care of by item-level deduping. It's also now wrong and removing too much (since it wasn't filtering for reposts directly). * Calculate rootUri correctly * Apply Following settings to all lists * Don't dedupe intentional reposts by thread * Show reply parent when ambiguous * Explicitly remove orphaned replies from following/lists * Fix thread dedupe to work across pages * Mark grandparent-blocked as orphaned * Guard tuner state change by dryRun * Remove dead code * Don't dedupe feedgen threads * Revert "Apply Following settings to all lists" This reverts commit aff86be6d37b60cc5d0ac38f22c31a4808342cf4. Let's not do this yet and have a bit more discussion. This is a chunky change already. * Reason belongs to a slice, not item * Logically feedContext belongs to the slice * Update comment to reflect latest behavior
* Only show replies in Following if following all involved actors (#4869)dan2024-08-021-27/+17
| | | | | | | * Only show replies in Following for followed root and grandparent * Remove now-unnecessary check * Simplify condition
* Always limit Following replies to the people you follow (#4868)dan2024-08-011-12/+2
| | | | | * Limit feed replies to people you follow * Remove dead code
* Move theme controls to its own screen (#4866)Samuel Newman2024-08-011-0/+1
|
* 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>