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

Feat: conditional question logic #50

Merged
merged 18 commits into from
Nov 1, 2024
Merged

Conversation

justiandevs
Copy link
Contributor

@justiandevs justiandevs commented Oct 28, 2024

Fixes #6 and integrates unit tests for each input type to check if it should be rendered or not based on conditional logic.

Copy link

vercel bot commented Oct 28, 2024

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

Name Status Preview Comments Updated (UTC)
signalen-frontend-wcag ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 1, 2024 1:42pm

@justiandevs
Copy link
Contributor Author

Ik ga het toch op een andere manier aanpakken denk ik, met de render logica in het component zelf in plaats van in de algemene useEffect. Ik verwacht dan minder problemen tegen te komen.

https://chatgpt.com/share/671ff3b1-d49c-800d-a175-0606b481fbb4, dit is wat chatgpt mij als advies gaf en dit: https://github.com/Amsterdam/signals-frontend/blob/472508e94719ebcb7be8840e893872ff4d8a5977/src/signals/incident/services/checkVisibility/index.js is de huidige Amsterdam code. Weet dus nu ongeveer in welke hoek ik het ga zoeken.

@justiandevs justiandevs marked this pull request as ready for review October 29, 2024 14:09
@justiandevs justiandevs changed the title Feat: basic conditional question logic Feat: conditional question logic Oct 29, 2024
…estions

# Conflicts:
#	src/app/[locale]/incident/add/components/IncidentQuestionsLocationForm.tsx
#	src/app/[locale]/incident/add/components/questions/CheckboxInput.tsx
#	src/app/[locale]/incident/add/components/questions/RadioInput.tsx
#	src/app/[locale]/incident/add/components/questions/TextAreaInput.tsx
#	src/app/[locale]/incident/add/components/questions/TextInput.tsx
@bartjkdp
Copy link
Member

bartjkdp commented Nov 1, 2024

Het ziet er echt heel netjes uit. 🚀 Over het algemeen heel goed te volgen wat hier gebeurt. Ik heb nog een belangrijk structuur-ding, verder allemaal minor.

@justiandevs justiandevs merged commit 79f5961 into main Nov 1, 2024
4 checks passed
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.

De mogelijkheid toevoegen om conditioneel vragen te tonen
3 participants