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

Generic(-ish) Questionnaire #980

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

annatraussnig
Copy link
Contributor

@annatraussnig annatraussnig commented Dec 17, 2024

Idea

  • generic overview and person view
  • all configuration is extracted into… wait for it… a config file (this could also live in the DC props, but feels messier)
  • config specifies the colors, illu, and questions grouping
  • each new questionnaire gets its own config but that's it
  • dynamic component specifies a config key (e.g. "klima-2023", or "democracy") which we use to retrieve the correct config
  • form and overview are publikator pages with embedded QUESTIONNAIRE components (like for klimafragebogen)
  • person page is a next page with 2 params, config key and user id (we could do something cute like: {userslug}/aeussert-sich-ueber/${key}, aka annatraussnig/aeussert-sich-ueber/demokratie)

Todos

  • setup person page in /pages
  • multiple choices answers
  • merge dbSlug prop and configKey (simplifies things some, maybe…?)

@annatraussnig annatraussnig changed the title feat(Questionnaire): create generic config-based overview and person … Generic(-ish) Questionnaire Dec 17, 2024
Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
staging-republik-love ❌ Failed (Inspect) Dec 17, 2024 4:09pm

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

Successfully merging this pull request may close these issues.

1 participant