From 3371038f7d8b740f2415d3a54dc99b69e0598042 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 25 Jan 2024 22:22:40 -0600 Subject: New Onboarding (#2596) * Add round and square buttons * Allow some style for buttons, add icons * Change text selection color * Center button text, whoops * Outer layout, some primitive updates * WIP * onboarding feed prefs (#2590) * add `style` to toggle label to modify text style * Revert "add `style` to toggle label to modify text style" This reverts commit 8f4b517b8585ca64a4bf44f6cb40ac070ece8932. * following feed prefs * remove unnecessary memo * reusable divider component * org imports * add finished screen * Theme SelectedAccountCard * Require at least 3 interests * Placeholder save logic * WIP algo feeds * Improve lineHeight handling, add RichText, improve Link by adding InlineLink * Inherit lineHeight in heading comps * Algo feeds mostly good * Topical feeds ish * Layout cleanup * Improve button styles * moderation prefs for onboarding (#2594) * WIP algo feeds * modify controlalbelgroup typing for easy .map() * adjust padding on button * add moderation screen * add moderation screen * add moderation screen --------- Co-authored-by: Eric Bailey * Fix toggle button styles * A11y props on outer portal * Put it all on red * New data shape * Handle mock data * Bulk write (not yet) * Remove interests validation * Clean up interests * i18n layout and first step * Clean up suggested follows screen * Clean up following step * Clean up algo feeds step * Clean up topical feeds * Add skeleton for feed card * WIP moderation step * cleanup moderation styles (#2605) * cleanup moderation styles * fix(?) toggle button group styles * adjust toggle to fit any screen * Some more cleanup * Icons * ToggleButton tweaks * Reset * Hook up data * Better suggestions * Bulk write * Some logging * Use new api * Concat topical feeds * Metrics * Disable links in RichText, feedcards * Tweak primary feed cards * Update metrics * Fix layout shift * Fix ToggleButton again, whoops * Error state * Bump api package, ensure interests are saved * Better fix for autofill * i18n, button positions * Remove unused export * Add default prefs object * Fix overflow in user cards * Add 2 lines of bios to suggested accounts cards * Nits * Don't resolve facets by default * Update storybook * Disable flag for now * Remove age dialog from moderations step * Improvements and tweaks to new onboarding --------- Co-authored-by: Hailey <153161762+haileyok@users.noreply.github.com> Co-authored-by: Paul Frazee --- assets/icons/arrowRotateCounterClockwise_stroke2_corner0_rounded.svg | 1 + assets/icons/at_stroke2_corner0_rounded.svg | 1 + assets/icons/check_stroke2_corner0_rounded.svg | 1 + assets/icons/chevronLeft_stroke2_corner0_rounded.svg | 1 + assets/icons/chevronRight_stroke2_corner0_rounded.svg | 1 + assets/icons/circleInfo_stroke2_corner0_rounded.svg | 1 + assets/icons/emojiSad_stroke2_corner0_rounded.svg | 1 + assets/icons/eyeSlash_stroke2_corner0_rounded.svg | 1 + assets/icons/filterTimeline_stroke2_corner0_rounded.svg | 1 + assets/icons/growth_stroke2_corner0_rounded.svg | 1 + assets/icons/hashtag_stroke2_corner0_rounded.svg | 1 + assets/icons/listMagnifyingGlass_stroke2_corner0_rounded.svg | 1 + assets/icons/listSparkle_stroke2_corner0_rounded.svg | 1 + assets/icons/loader_stroke2_corner0_rounded.svg | 1 + assets/icons/news2_stroke2_corner0_rounded.svg | 1 + assets/icons/plusLarge_stroke2_corner0_rounded.svg | 1 + assets/icons/trending2_stroke2_corner2_rounded.svg | 1 + 17 files changed, 17 insertions(+) create mode 100644 assets/icons/arrowRotateCounterClockwise_stroke2_corner0_rounded.svg create mode 100644 assets/icons/at_stroke2_corner0_rounded.svg create mode 100644 assets/icons/check_stroke2_corner0_rounded.svg create mode 100644 assets/icons/chevronLeft_stroke2_corner0_rounded.svg create mode 100644 assets/icons/chevronRight_stroke2_corner0_rounded.svg create mode 100644 assets/icons/circleInfo_stroke2_corner0_rounded.svg create mode 100644 assets/icons/emojiSad_stroke2_corner0_rounded.svg create mode 100644 assets/icons/eyeSlash_stroke2_corner0_rounded.svg create mode 100644 assets/icons/filterTimeline_stroke2_corner0_rounded.svg create mode 100644 assets/icons/growth_stroke2_corner0_rounded.svg create mode 100644 assets/icons/hashtag_stroke2_corner0_rounded.svg create mode 100644 assets/icons/listMagnifyingGlass_stroke2_corner0_rounded.svg create mode 100644 assets/icons/listSparkle_stroke2_corner0_rounded.svg create mode 100644 assets/icons/loader_stroke2_corner0_rounded.svg create mode 100644 assets/icons/news2_stroke2_corner0_rounded.svg create mode 100644 assets/icons/plusLarge_stroke2_corner0_rounded.svg create mode 100644 assets/icons/trending2_stroke2_corner2_rounded.svg (limited to 'assets') diff --git a/assets/icons/arrowRotateCounterClockwise_stroke2_corner0_rounded.svg b/assets/icons/arrowRotateCounterClockwise_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..955b3dbc3 --- /dev/null +++ b/assets/icons/arrowRotateCounterClockwise_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/at_stroke2_corner0_rounded.svg b/assets/icons/at_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..8d30d7c8c --- /dev/null +++ b/assets/icons/at_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/check_stroke2_corner0_rounded.svg b/assets/icons/check_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..b336a518f --- /dev/null +++ b/assets/icons/check_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/chevronLeft_stroke2_corner0_rounded.svg b/assets/icons/chevronLeft_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..d9a8660f7 --- /dev/null +++ b/assets/icons/chevronLeft_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/chevronRight_stroke2_corner0_rounded.svg b/assets/icons/chevronRight_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..b57fd0398 --- /dev/null +++ b/assets/icons/chevronRight_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/circleInfo_stroke2_corner0_rounded.svg b/assets/icons/circleInfo_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..926d4b391 --- /dev/null +++ b/assets/icons/circleInfo_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/emojiSad_stroke2_corner0_rounded.svg b/assets/icons/emojiSad_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..0a5a43cd0 --- /dev/null +++ b/assets/icons/emojiSad_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/eyeSlash_stroke2_corner0_rounded.svg b/assets/icons/eyeSlash_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..f11bdd937 --- /dev/null +++ b/assets/icons/eyeSlash_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/filterTimeline_stroke2_corner0_rounded.svg b/assets/icons/filterTimeline_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..459b9212a --- /dev/null +++ b/assets/icons/filterTimeline_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/growth_stroke2_corner0_rounded.svg b/assets/icons/growth_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..ec9083fb1 --- /dev/null +++ b/assets/icons/growth_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/hashtag_stroke2_corner0_rounded.svg b/assets/icons/hashtag_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..05b2353db --- /dev/null +++ b/assets/icons/hashtag_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/listMagnifyingGlass_stroke2_corner0_rounded.svg b/assets/icons/listMagnifyingGlass_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..1b1857efa --- /dev/null +++ b/assets/icons/listMagnifyingGlass_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/listSparkle_stroke2_corner0_rounded.svg b/assets/icons/listSparkle_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..702e1895f --- /dev/null +++ b/assets/icons/listSparkle_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/loader_stroke2_corner0_rounded.svg b/assets/icons/loader_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..9dbc01379 --- /dev/null +++ b/assets/icons/loader_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/news2_stroke2_corner0_rounded.svg b/assets/icons/news2_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..66e4c373a --- /dev/null +++ b/assets/icons/news2_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/plusLarge_stroke2_corner0_rounded.svg b/assets/icons/plusLarge_stroke2_corner0_rounded.svg new file mode 100644 index 000000000..8d568437b --- /dev/null +++ b/assets/icons/plusLarge_stroke2_corner0_rounded.svg @@ -0,0 +1 @@ + diff --git a/assets/icons/trending2_stroke2_corner2_rounded.svg b/assets/icons/trending2_stroke2_corner2_rounded.svg new file mode 100644 index 000000000..cc806b0eb --- /dev/null +++ b/assets/icons/trending2_stroke2_corner2_rounded.svg @@ -0,0 +1 @@ + -- cgit 1.4.1