about summary refs log tree commit diff
path: root/src/view/screens
Commit message (Collapse)AuthorAgeFilesLines
* Make settings account buttons a little nicer (#4980)Eric Bailey2024-08-221-30/+41
| | | | | | | | | | | * Replace account dropdown with Menu * Replace card row and add interaction state * Remove testID copy pasta * Sanitize handle * Remove hover from row
* Fix fixed footer experiment (#4969)dan2024-08-221-3/+3
| | | | | | | | | | | | | | | | | * 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.
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-211-0/+1
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Show quote posts (#4865)Samuel Newman2024-08-212-64/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Add `list hidden` screen (#4958)Hailey2024-08-201-63/+85
| | | | | Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* [Experiment] Always show bottom bar (#4946)dan2024-08-161-1/+7
|
* Revert "[Video] Download videos" (#4945)Hailey2024-08-151-45/+1
|
* Move global "Sign out" out of the current account row (#4941)dan2024-08-151-27/+38
| | | | | | | | | | | | | | | | | | | | | | | * 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-1/+45
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Show handle in recent searches and fix truncation (#4917)Roland Crosby2024-08-111-9/+5
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Improve styles (#4916)Minseo Lee2024-08-116-5/+8
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Move onPressReply into child component (#4898)dan2024-08-081-32/+2
| | | | | * Move ComposePrompt to post-thread/ * Move onPressReply into child component
* Remove explore_page_profile_card_social_proof (#4894)Eric Bailey2024-08-081-6/+2
|
* Remove unnecessary state update for reply gate (#4897)dan2024-08-081-40/+2
| | | | | | | * Move mobile compose prompt to inner component * Make canReply computed * Use same clamp we use elsewhere
* Added trans (#4890)Minseo Lee2024-08-081-1/+1
|
* Add logging of selected feed preference when displaying the following feed ↵Hailey2024-08-071-2/+28
| | | | (#4789)
* [Persisted] Fork web and native, make it synchronous on the web (#4872)dan2024-08-061-18/+1
| | | | | | | | | | | | | | | | | | | * Delete logic for legacy storage * Delete superfluous tests At this point these tests aren't testing anything useful, let's just get rid of them. * Inline store.ts methods into persisted/index.ts * Fork persisted/index.ts into index.web.ts * Remove non-essential code and comments from both forks * Remove async/await from web fork of persisted/index.ts * Remove unused return * Enforce that forked types match
* Add `PlatformInfo` module (#4877)Hailey2024-08-051-0/+19
|
* Respect labels on feeds and lists (#4818)Eric Bailey2024-08-021-46/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Always limit Following replies to the people you follow (#4868)dan2024-08-011-105/+2
| | | | | * Limit feed replies to people you follow * Remove dead code
* Fix missing header on Likes/Reposted By, add missing perf optimizations (#4867)Hailey2024-08-013-21/+24
| | | | | | | | | * fix liked by list * fix lists * tweaks to style * change string
* Move theme controls to its own screen (#4866)Samuel Newman2024-08-015-77/+42
|
* Boolean filter improvement alternative: TS upgrade (#4840)Dmitrii Kartashev2024-07-261-1/+1
| | | | | * upgrade typescript and use new feature * fix: typing error
* Add labels to a few missing places (#4838)Eric Bailey2024-07-252-2/+5
|
* Replace `import hairlineWidth =` with const (#4831)Samuel Newman2024-07-255-20/+20
| | | | | | | | | * replace import with const * just use `StyleSheet.hairlineWidth` --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Fix sloppy filter(Boolean) types (#4830)dan2024-07-251-8/+9
| | | | | | | | | | | | | * 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
* make some settings screens scrollable for accessibility (#4819)Hailey2024-07-241-3/+3
| | | | | * make settings scrollable for accessibility * nit
* Modernise thread/following feed settings screen (#4797)Samuel Newman2024-07-244-148/+90
| | | | | | | | | | | * fix web * show back button on tablet for certain settings screens * move headers to inside of scrollview --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Priority notifications (#4798)Samuel Newman2024-07-242-41/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-234-7/+9
| | | | | | | | | | | | | * 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-0/+13
|
* [ALF] Theme & palette cleanup (#4769)Eric Bailey2024-07-112-23/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add social proof to suggested follows (#4602)Samuel Newman2024-07-091-3/+12
| | | | | | | | | | | | | * 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>
* change `contentVisibility` to `contain` (#4752)Hailey2024-07-081-1/+1
|
* Fix RTL text rendering for display names (#4747)Hailey2024-07-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Guided tour for new users (#4690)Paul Frazee2024-07-022-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* [D1X] Add interstitials, component tweaks, placeholders (#4697)Eric Bailey2024-07-032-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* FeedCard & ListCard cleanups (#4644)Eric Bailey2024-06-283-22/+34
| | | | | | | | | | | | | | | * 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
* Remove starterpack gate (#4645)Hailey2024-06-251-8/+1
|
* ensure we get navigated away to starter pack when signed in (#4640)Hailey2024-06-251-0/+17
| | | | | * ensure we get navigated away to starter pack when signed in * clean
* Resolve facets in feed description on feed lander (#4628)Eric Bailey2024-06-241-1/+3
|
* Starter Packs (#4332)Hailey2024-06-213-48/+77
| | | | | | | 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-3/+6
|
* Pinned feeds cards (#4526)Eric Bailey2024-06-223-205/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-6/+19
| | | | | * Fetch more than 3 sugg follows after first load * Preview handling via overfetching
* Merge #4492, fixes profile menu hover (#4580)Eric Bailey2024-06-201-6/+7
| | | | | | | | | | | | | | | | | * Fix button hover color (#4492) * Update ProfileMenu.tsx * Update Button.tsx * Update ProfileFeed.tsx * Update ProfileFeed.tsx * Re-add change post conflict --------- Co-authored-by: Minseo Lee <itoupluk427@gmail.com>
* Option for large alt badges (#4571)Samuel Newman2024-06-201-11/+24
| | | | | | | | | | | | | * 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>
* Force callers of `getTimeAgo` to pass in the value for "now" (#4560)Eric Bailey2024-06-181-1/+3
| | | | | | | * Remove icky hook for now * Force callers of getTimeAgo to pass in the 'now' value * Update usage in Newskie dialog
* Explore fixes (#4540)Eric Bailey2024-06-181-12/+19
| | | | | | | | | | | | | * Use safe check, check for next page, handle varied lengths * Fix border width * Move safe check * Add font_heavy and use it on the explore page headers --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Add `useGetTimeAgo` and utils (#4556)Eric Bailey2024-06-181-11/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>