Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create proof-of-concept for improved TidCarousel UI #4

Open
4 of 14 tasks
patcon opened this issue Sep 30, 2024 · 0 comments
Open
4 of 14 tasks

Create proof-of-concept for improved TidCarousel UI #4

patcon opened this issue Sep 30, 2024 · 0 comments

Comments

@patcon
Copy link
Member

patcon commented Sep 30, 2024

Working on this in: #10 https://github.com/CivicTechTO/polis-storybook/tree/tidcarousel-v2
Demo: https://civictechto.github.io/polis-storybook/PR-10/?path=/story/client-participation-tidcarouselv2--default

Key Features

  • changing buttons for statement numbers will expand/collapse out of appropriate space on invisible number line, giving a sense of what's happening when button labels change numbers
  • buttons are always same width (don't vary based on size of number)
  • intended to remain static on its own row (not jump around)
  • a statement is selected by default (the first), which allows consistent real estate for statements (never missing)
  • if statement is consistent between statement sets, will stay selected
    • allows easier comparison between groups (does a statement exist in both groups? if yes, will remain static when switching)
Screen.Recording.2024-09-30.at.4.17.49.PM.mov

Open Questions

  • How to handle majority opinion, which can have up to 10 statements. should this be 2 rows? how will animation work?
  • Is performance for this too poor? Can more of it be done with more efficient CSS transforms? Would this require a library, and is it worth adding the overhead of a new package for that?

To Do

  • create a page to direct visitors to any custom components we've worked on (OurComponents.mdx)
  • create animated TidCarouselV2 component for selecting statement
  • create CurateV2 component for selecting group
  • mount TidCarouselV2 in context with rest of CurateV2 component (SelectionWidgetV2)
    • add ExploreTidV2 to SelectionWidgetV2
  • create a static version of TidCarouselV2 (no heavy animation)
  • create ExploreTidV2
  • implement theme-ui styling
  • format all V2 components better for desktop (currently mobile-first)
    • appropriately resize when screen width changes
  • add "Statements:" label
  • add "Groups:" label
  • add low motion mode
  • add prefers-reduced-motion simulation addon in storybook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant