about summary refs log tree commit diff
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* Submit fix (#4978)dan2024-08-221-1/+1
| | | | | | | | | | | | | | | * Fix submit logic * Fix type * Align submit task creation 1:1 with callsites * blegh. `useThrottledValue` * make `useThrottledValue`'s time required --------- Co-authored-by: Hailey <me@haileyok.com>
* Change size (#4957)Hailey2024-08-213-12/+27
|
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-217-390/+707
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Fix hidden list for author (#4968)Eric Bailey2024-08-211-1/+1
|
* Add `list hidden` screen (#4958)Hailey2024-08-204-36/+137
| | | | | Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Expose more methods, support disabled items (#4954)Eric Bailey2024-08-194-25/+71
|
* Expose more props from button (#4953)Eric Bailey2024-08-191-25/+55
|
* Revert "[Video] Download videos" (#4945)Hailey2024-08-152-219/+0
|
* [Video] Download videos (#4886)Hailey2024-08-152-0/+219
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Embed] Starter pack embed embed (#4935)Samuel Newman2024-08-141-7/+14
| | | | | | | | | | | | | | | | | * update @atproto/api * add starter pack embed * update depreciated BskyAgent to AtpAgent * unrelated, but avoid direct import of type * nits * rm commented out code --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Remove .withProxy() calls (#4929)dan2024-08-132-53/+25
|
* Improve styles (#4916)Minseo Lee2024-08-113-22/+7
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Fix `occurred` typo (#4919)Shubh Porwal2024-08-111-1/+1
| | | | Co-authored-by: Hailey <hailey@blueskyweb.xyz>
* Fix overflow on posts (#4899)Samuel Newman2024-08-081-20/+2
| | | | | | | | | | | | | | | | | * overflow posts, via contentHider * margin->padding for a bit more leeway * overflow notifications * overflow on header * revert from contenthider, put on text in all places * fix zalgo text in handle in composer --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Include follow-based suggestions in interstitial (#4889)dan2024-08-081-2/+12
|
* Include popcluster in suggestion ranking (#4887)dan2024-08-081-4/+6
|
* [Videos] Video player - PR #2 - better web support (#4732)Samuel Newman2024-08-074-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt some sort of "usurping" system * polling-based active video approach * split into inner component again * click to steal active video * disable findAndActivateVideo on native * new intersectionobserver approach - wip * fix types * disable perf optimisation to allow overflow * make active player indicator subtler, clean up video utils * partially fix double-playing * start working on controls * fullscreen API * get buttons working somewhat * rm source from where it shouldn't be * use video elem as source of truth * fix keyboard nav + mute state * new icons, add fullscreen + time + fix play * unmount when far offscreen + round 2dp * listen globally to clicks rather than blur event * move controls to new file * reduce quality when not active * add hover state to buttons * stop propagation of videoplayer click * move around autoplay effects * increase background contrast * add subtitles button * add stopPropagation to root of video player * clean up VideoWebControls * fix chrome * change quality based on focused state * use autoLevelCapping instead of nextLevel * get subtitle track from stream * always use hlsjs * rework hls into a ref * render player earlier, allowing preload * add error boundary * clean up component structure and organisation * rework fullscreen API * disable fullscreen on iPhone * don't play when ready on pause * debounce buffering * simplify giant list of event listeners * update pref * reduce prop drilling * minimise rerenders in `ActiveViewContext` * restore prop drilling --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* tweak list header (#4870)Samuel Newman2024-08-031-2/+10
| | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Respect labels on feeds and lists (#4818)Eric Bailey2024-08-021-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prep * Pass in optional moderation to FeedCard * Compute moderation decision, filter contentList contexts, pass into card * Let's go a different route * Filter from within search queries * Use same search query for starter packs * Filter lists from profile tabs * Cleanup * Filter from profile feeds * Moderate post embeds * Memoize * Use ScreenHider on lists * Hide both list types * Fix crash on iOS in screen hider, fix lineheight * Memoize renderItem * Reuse objects to prevent re-renders
* Move theme controls to its own screen (#4866)Samuel Newman2024-08-013-1/+11
|
* Update muted words dialog with `expiresAt` and `actorTarget` (#4801)Eric Bailey2024-08-014-122/+412
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP not working dropdown * Update MutedWords dialog * Add i18n formatDistance * Comments * Handle text wrapping * Update label copy Co-authored-by: Hailey <me@haileyok.com> * Fix alignment * Improve translation output * Revert toggle changes * Better types for useFormatDistance * Tweaks * Integrate new sdk version into TagMenu * Use ampersand Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * Bump SDK --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Make label required in link components (#4844)Eric Bailey2024-07-252-9/+7
|
* Boolean filter improvement alternative: TS upgrade (#4840)Dmitrii Kartashev2024-07-261-1/+3
| | | | | * upgrade typescript and use new feature * fix: typing error
* Add label to profile card (#4843)Eric Bailey2024-07-252-7/+21
|
* Add labels in feed card (#4836)Eric Bailey2024-07-251-3/+7
|
* Add labels to mod details dialog (#4839)Eric Bailey2024-07-251-3/+10
|
* Add labels to a few missing places (#4838)Eric Bailey2024-07-254-6/+18
|
* Add labels in list card (#4837)Eric Bailey2024-07-251-3/+3
|
* [Videos] Video player - PR #1 - basic player (#4731)Samuel Newman2024-07-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add ffmpeg-kit-react-native * get select video button + compression working * up res to 1080p * add progress component * move logic out of compressVideo * (WIP) add lonestar compression * rework web compression a bit * mess around with adding a thumbnail * 3mbps * replace * use 3mbps * add expo-video * remove unnecessary try/catch * rm ToastAndroid * fix web * wrap lazy component in suspense * gate video select button * rm web compression * flip sign * remove expo-video from web * review nits * add video picker permissions + rm temp buttons * add ffmpeg-kit-react-native * replace * hls-capable player * start trying to hoist up video player instance * hoist video player and move things around * always show native controls * fix controls on expo video android * gate temp video player in feed * rm IS_DEV, doesn't do what I thought it did * use __DEV__ instead --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Priority notifications (#4798)Samuel Newman2024-07-243-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* swap flex-start/end (#4815)Samuel Newman2024-07-231-2/+2
| | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Fix switch style and animate (#4814)Samuel Newman2024-07-231-14/+17
| | | | | | | | | | | | | | * set height to 20+(2*hairline) * animate switch * Try to align on line height across platforms * Use border 1px --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-2313-20/+32
| | | | | | | | | | | | | * 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>
* Create shared preferences API (#4654)Hailey2024-07-111-9/+5
|
* [ALF] Theme & palette cleanup (#4769)Eric Bailey2024-07-118-72/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Filter yourself out of follows interstitial (#4770)Eric Bailey2024-07-111-2/+6
|
* [Session] Experiment: Don't use withProxy (#4762)dan2024-07-102-18/+56
| | | | | * Reorder statements * Remove withProxy() usage behind a gate
* Add social proof to suggested follows (#4602)Samuel Newman2024-07-091-6/+14
| | | | | | | | | | | | | * 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-085-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Reduce the size of the inner logo in the QR code (#4746)Hailey2024-07-081-1/+1
| | | | | | | | | | | * use a scale of `1` on QR code inner logo * remove logo entirely * Revert "remove logo entirely" This reverts commit dee57f48c7bf5e3b5765631b8cbbd1c746e9c884. * use scale of 0.95
* Video compression in composer (#4638)Samuel Newman2024-07-051-0/+5
| | | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* Tweak checkmark sizePaul Frazee2024-07-051-1/+1
|
* Show feedback for Follow button in interstitials (#4738)dan2024-07-052-1/+25
| | | | | * Fix Follow in interstitials * Show feedback in toast
* Feed interstitial snapping (#4737)Samuel Newman2024-07-051-3/+13
| | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [D1X] Use user action and viewing history to inform suggested follows (#4727)Eric Bailey2024-07-041-20/+85
| | | | | | | | | | | | | * 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>
* Feed interstitial tweaks (#4733)dan2024-07-041-1/+1
| | | | | * Swap interstitial positions * Fix color
* New user progress guides (#4716)Paul Frazee2024-07-045-0/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-15/+115
| | | | | | | | | | | | | | | | | | | | | | | * 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>
* Don't follow self, blocks or mute when following all; don't show blocks in ↵Hailey2024-07-031-1/+2
| | | | | | | | | | | 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-4/+4
| | | | | | | | | | | | | | | * 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>