about summary refs log tree commit diff
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* [D1X] Add interstitials, component tweaks, placeholders (#4697)Eric Bailey2024-07-036-27/+556
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Unify label pills (#4676)Eric Bailey2024-07-036-188/+216
| | | | | | | | | | | | | | | * New label pills * Fix type errors, add default case * Remove negative margin, only works in some places * Fix alignment edge case * Add a bit of padding --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* FeedCard & ListCard cleanups (#4644)Eric Bailey2024-06-283-71/+160
| | | | | | | | | | | | | | | * Extract ListCard from FeedCard * Export FeedCard.Action and optionally include in ListCard * Remove list dual usage from most of FeedCard * Update usages of FeedCard and ListCard * Add back list purpose logic * Make Action comp easier to use, clarify list purpose * Rename Action to SaveButton
* Refactor `ProfileCard` to be composable (#4622)Eric Bailey2024-06-271-59/+250
| | | | | | | | | | | | | * Break up new profile card for easier re-use * Break things up a bit more * Add round variant support and other button props * Handle blocks * Add Outer export * Tweak space
* [Starter Packs] Posts tab (#4660)dan2024-06-271-0/+51
| | | | | * [Starter Packs] Posts tab * oops
* Mark two starter pack strings for localization (#4655)surfdude292024-06-261-3/+5
|
* Add back pin action for feed cards (#4643)Eric Bailey2024-06-251-1/+5
|
* Fix typo in ThreadgateEditor.tsx (#4636)surfdude292024-06-251-1/+1
|
* Disable facets in `FeedCard.Description` component (#4620)Eric Bailey2024-06-241-8/+9
|
* tweak wording for own badge (#4631)Hailey2024-06-241-4/+20
|
* explicitly filter out labelers (#4629)Hailey2024-06-241-0/+1
|
* Newskie dialog tweaks (#4623)Eric Bailey2024-06-241-21/+34
|
* Composer - replace threadgate modal with alf dialog (#4329)Samuel Newman2024-06-244-69/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Couple of starter packs tweaks (#4604)Hailey2024-06-244-29/+35
|
* Remove the 'Who can reply' element except when viewing root, and add "edit" ↵Paul Frazee2024-06-241-0/+324
| | | | | | | (#4615) * Remove the 'Who can reply' element except when viewing root, and add the edit text to authors * Switch to icon
* Starter Packs (#4332)Hailey2024-06-2123-44/+1868
| | | | | | | 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-25/+77
|
* add flex shrink (#4597)Hailey2024-06-221-1/+1
|