Skip to content

Conversation

@Koc
Copy link
Collaborator

@Koc Koc commented Oct 3, 2025

Closes #2606

🚧 Development still in progress. This is reopening of the #2924 but pushed to upstream instead of my fork.

I'm trying to reuse already existent Option entity and corresponding UI components by adding extra column optionType=row|column. Why?

  • as rows/columns can be renamed - we need to store their ids. So I've just reused already existent mechanism
  • we should have possibility to reorder rows/columns. Already existent UI components for options allow us to do that

✔️ Implemented

🔍 Various input types

Radio
image

Checkbox
image

Text/Number
image

🔍 Question management

Create new field with nested select menu
image image

Manage rows and columns
image

🔍 Results storing and rendering

Responses view
image

⚠️ Summary view not ready
image

🗒️ Todo

  • Improve summary view
  • Export support
  • Tests

@Koc Koc force-pushed the feature/add-grid-question-type branch 9 times, most recently from 5a1bc6a to 42a3fc6 Compare October 12, 2025 14:41
@codecov
Copy link

codecov bot commented Oct 12, 2025

Codecov Report

❌ Patch coverage is 13.88889% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.10%. Comparing base (451efd3) to head (4e80a8e).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2945      +/-   ##
============================================
- Coverage     44.40%   42.10%   -2.30%     
- Complexity     1031     1039       +8     
============================================
  Files            80       81       +1     
  Lines          3648     3631      -17     
============================================
- Hits           1620     1529      -91     
- Misses         2028     2102      +74     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Koc Koc force-pushed the feature/add-grid-question-type branch 2 times, most recently from 3ba7380 to 40f3f9e Compare October 13, 2025 22:58
@Koc
Copy link
Collaborator Author

Koc commented Oct 13, 2025

@nimishavijay @jancborchardt please suggest how to display results summary

image

I guess we can show table with counters for radio/checkbox grid cell type. But what to do for a number/text values?

FYI @nimishavijay I've applied almost all of your suggestions. Please check or even feel free to commit to my branch

Also does anybody know how to export this type of the question to xlsx files?

@Koc Koc force-pushed the feature/add-grid-question-type branch 2 times, most recently from f02625c to bb7ee7c Compare October 13, 2025 23:36
@Chartman123
Copy link
Collaborator

But what to do for a number/text values?

@Koc I'm still against allowing free text answers for the grid questions. It makes things much more complex than needed and I didn't see any other form solution providing this.

Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc Koc force-pushed the feature/add-grid-question-type branch from bb7ee7c to 4e80a8e Compare October 26, 2025 10:11
@Koc
Copy link
Collaborator Author

Koc commented Oct 26, 2025

@Chartman123 I agree that free text answers is indeed can be an overkill and it will be removed.

But worth to mention that the main reason I started working on the Grid field type is our need to collect numeric values in matrix form. I've added checkboxes and radios to make it more universal, but without numeric input, the field would have no real value for our use cases.

We are using that for resource allocation tables, workload estimations, etc

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.

[QuestionType] Multiple choice grid

2 participants