about summary refs log tree commit diff
path: root/src/view/screens
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Explore feed cards (#4521)Eric Bailey2024-06-172-23/+22
| | | | | | | | | * Replace FeedSourceCard on Explore page (cherry picked from commit e7e9787bfaa9368bfaeaaa4ca144ab77b438219c) * Replace FeedSourceCard on Search page (cherry picked from commit ac47aade7622d359eee9509763cda666d964d8a3)
* Add patch for `RCTBaseTextInput` fixing `selectTextOnFocus` prop (#4533)Hailey2024-06-171-7/+1
| | | | | * create patch * remove js fix in `SearchScreen`
* Use URI as key (#4522)Eric Bailey2024-06-141-1/+1
|
* Feed source card (#4512)Eric Bailey2024-06-141-11/+11
| | | | | | | | | | | | | | | * Pass event through click handlers * Add FeedCard, use in Feeds screen * Tweak space * Don't contrain rt height * Tweak space * Fix type errors, don't pass event to fns that don't expect it * Show unresolved RT prior to facet resolution
* Redo explore page (#4491)Eric Bailey2024-06-142-87/+610
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Redo explore page, wip * Remove circle icons * Load more styling * Lower limit * Some styling tweaks * Abstract * Add tab, query, factor out * Revert unneeded change * Revert unneeded change v2 * Update copy * Load more styling * Header styles * The thin blue line * Make sure it's hairline * Update query keys * Border * Expand avis * Very load more copy
* Reuse overfetching for popular feeds, add in existing filtering (#4501)Eric Bailey2024-06-141-40/+6
|
* Release 1.86 prep (#4490)Paul Frazee2024-06-111-0/+1
| | | | | * Test updates * Run intl extract
* Update feeds header to just have edit link (#4484)Paul Frazee2024-06-111-45/+18
|
* Move feeds screen into common navigator, handle usages (#4365)Eric Bailey2024-06-113-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Add a loading indicator to notifications when loading latest (#4468)Paul Frazee2024-06-111-3/+19
| | | | | * Add a loading indicator to notifications when loading latest * Adjust size and alignment
* Visually improve the empty state of feeds (#4466)Paul Frazee2024-06-102-2/+2
|
* Check `canAskAgain` for notification permissions (#4460)Hailey2024-06-101-0/+6
|
* Fix (#4430): Use separate hooks for shell mode animated styles (#4451)Francesco Lodovici2024-06-101-2/+2
| | | | | | | | | * Fix (#4430): Use separate hooks for shell mode animated styles * Consolidate in one file --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix a few border nits (#4349)Hailey2024-06-042-10/+13
| | | | | | | | | | | | | | | * replace w/ hairline width * no border for placeholder * few notifications screen fixes tablet * still show the border on desktop * Simp --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Mark `accessibilityLabel` and `accessibilityHint` for translation (#4351)surfdude292024-06-041-2/+5
| | | | | | | * mark `accessibilityLabel` and `accessibilityHint` for translation * lint * try again
* use rngh scrollview in search horizontal list (#4350)Hailey2024-06-041-2/+3
|
* add profiles to search history (#4169)Ryan Skinner2024-06-041-7/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | * add profiles to search history * increasing horizontal padding slightly * tightening up styling * fixing navigation issue * making corrections * Make the search history profiles a little smaller * bug stomping * Fix issues * Persist taps * Rm unnecessary --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* [🙅] Disambiguation of the deactivation (#4267)Eric Bailey2024-06-041-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Disambiguation of the deactivation * Snapshot crackle pop * Change log context * [🙅] Add status to session state (#4269) * Add status to session state * [🙅] Add new deactivated screen (#4270) * Add new deactivated screen * Update copy, handle logout * Remove icons, adjust padding * [🙅] Add deactivate account dialog (#4290) * Deactivate dialog (cherry picked from commit 33940e2dfe0d710c0665a7f68b198b46f54db4a2) * Factor out dialog, add to delete modal too (cherry picked from commit 47d70f6b74e7d2ea7330fd172499fe91ba41062d) * Update copy, icon (cherry picked from commit e6efabbe78c3f3d9f0f8fb0a06a6a1c4fbfb70a9) * Update copy (cherry picked from commit abb0ce26f6747ab0548f6f12df0dee3c64464852) * Sizing tweaks (cherry picked from commit fc716d5716873f0fddef56496fc48af0614b2e55) * Add a11y label
* Unify profile tabs and lists screens placeholders (#4315)Bartosz Kaszubowski2024-06-031-6/+6
|
* remove resolution from post thread (#4297)Hailey2024-06-031-32/+21
| | | | | | | | | | | | | | | | | | | | | * remove resolution from post thread nit completely remove did cache lookup move cache check for did to `usePostThreadQuery` remove resolution from post thread * helper function * simplify * simplify search too * fix missing check for root or parent quoted post 🤯 * fix thread traversal
* truncate if extending one line acct switcher (#4310)Hailey2024-06-031-3/+3
|
* Change many border widths from `1` to `hairlineWidth` (#4294)Hailey2024-05-315-41/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feed items * update some more * moar * profile card * composer and notifications * settings screen * remove border from first item in feeds * remove border from first item in feeds * more removal of top border * fix flatlist rendering * oops * scroll to top fab * a.border * centeredview/list * placeholder * web sidebar * search posts * feeds list * user lists * list header * account list width 1 * hide top border feedgens * same for lists * fix tab bar web desktop * wait... * show the border on desktop web * fix lists * fix lists * round
* [Statsig] Sample noisy events (#4288)dan2024-05-301-3/+6
| | | | | | | * Sample state:background and state:foreground * Sample feed events * Add DEV protection against forgetting to add events to the list
* adjust notifications experiment by removing `canAskAgain` (#4271)Hailey2024-05-301-7/+0
| | | | | * adjust notifications experiment by removing `canAskAgain` * move to `StepFinished` for after onboarding
* Upgrade to Expo 51 and React Native 0.74 (#3980)Hailey2024-05-292-18/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upgrade packages * remove `expo-image-picker` patch * remove old expo-updates patch * rename rn patch * downgrade crop picker * bump `ExpoGifView` `SDWebImage` version * apply config changes * update build docs for apple silicon * update build docs for apple silicon * update expo-updates patch * add back patch readme * bump `expo-dev-client` * bump `babel-preset` * update `babel.config.js` * update `react-native-paste-input` patch * remove old ota updates hook * update types * update types * downgrade pager-view * update animated ref type * fix web-only type * update `react-native-bottom-sheet` `BottomSheetTextInput` * add `expo-application` to jest mocks * remove reanimated patch * update notifications patch * update reanimated path * fix import * update yarn.lock * use `ItemT` instead of `any` * expo bump * Revert logic change, fix types * Fix JSON file --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Replace getAgent() with reading agent (#4243)dan2024-05-284-14/+13
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* Improve moderation behaviors: show alert/inform sources and improve UX ↵Paul Frazee2024-05-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | around threads (#3677) * Dont show account or profile alerts and informs on posts * Sort threads to put blurred items at bottom * Group blurred replies under a single 'show hidden replies' control * Distinguish between muted and hidden replies in the thread view * Fix types * Modify the label alerts with some minor aesthetic updates and to show the source of a label * Tune when an account-level alert is shown on a post * Revert: show account-level alerts on posts again * Rm unused import * Fix to showing hidden replies when viewing a blurred item * Go ahead and uncover replies when 'show hidden posts' is clicked --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Privileged app passwords (#4200)Samuel Newman2024-05-231-18/+35
| | | | | | | | | | | | | | | | | | | * add checkbox to create privileged app password * add indicator to privileged app pwds to list * bump api * oops missed the yarnlock * adjust modal padding * lowercase * one more lowercase --------- Co-authored-by: Hailey <me@haileyok.com>
* Remove `getProfile` calls when loading feed (#3881)Hailey2024-05-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove unnecessary `getProfile()` calls from feed load add comments ensure only if first simplify nit handle cases where the parent is removed add a comment remove unnecessary `getProfile()` calls from feed load limit only to the first post in the returned items move the logic out of the render and into the query add the grandparent properly update `FeedItem` bump package update `FeedItem` update `post-feed` query update `FeedSlice` * nit * simplify logic * always pass `parentAuthor` * oops! * update `DebugMod`
* [🐴] add link to chat settings from main settings (#4197)Samuel Newman2024-05-231-0/+25
| | | | | | | * add link to chat settings from main settings * move to beneath saved feeds weird ass diff on this commit lol
* Cleanup gates (#4170)dan2024-05-221-8/+5
| | | | | | | | | * Unlaunch disable_poll_on_discover_v2 * Rm unused gates * Unlaunch autoexpand_suggestions_on_profile_follow_v2 * Launch disable_min_shell_on_foregrounding_v3
* expand the background color to cover the overscroll area on settings screen ↵Pokai Chang2024-05-211-2/+1
| | | | (#4101)