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

Add technical identifiers for questions #1553

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Conversation

susnux
Copy link
Collaborator

@susnux susnux commented Mar 13, 2023

Summary

Technical identifiers allow to map form questions to custom data.
On the frontend those identifiers are implemented as name props on the form elements.

Screenshots

Name input:
name input on question actions menu

Other notes

The name attribute for technical identifier should be mapped to all options so a fieldset is introduced around radio / checkbox buttons.
Added required aria label for fieldset (labeled by the question title).

@susnux susnux added enhancement New feature or request 3. to review Waiting for reviews labels Mar 13, 2023
@susnux susnux force-pushed the feat/technical-names branch 2 times, most recently from 2985c69 to 686aeff Compare March 13, 2023 21:22
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #1553 (3f0f96d) into main (b6a3066) will decrease coverage by 0.14%.
The diff coverage is 15.38%.

❗ Current head 3f0f96d differs from pull request most recent head 46dfde2. Consider uploading reports for the commit 46dfde2 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1553      +/-   ##
============================================
- Coverage     40.16%   40.03%   -0.14%     
- Complexity      560      562       +2     
============================================
  Files            54       55       +1     
  Lines          2365     2378      +13     
============================================
+ Hits            950      952       +2     
- Misses         1415     1426      +11     

@susnux susnux added this to the 3.3 milestone Mar 20, 2023
@Chartman123 Chartman123 modified the milestones: 3.3, 3.4 May 22, 2023
Copy link
Collaborator

@Chartman123 Chartman123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please squash the two commits in one before merging? I don't think that it's really needed to have two commits here :) Rest seems fine.

@susnux
Copy link
Collaborator Author

susnux commented Jun 25, 2023

@Chartman123 Shure, done. The second commit was just for review purpose to see why I changed it :)

@Chartman123
Copy link
Collaborator

@susnux Please also add the new prop to the API docs :)

Technical identifiers allow to map form questions to custom data.
On the frontend those identifiers are implemented as `name` props on the form elements.

The name attribute for technical identifier should be mapped to all options
so a `fieldset` is introduced around radio / checkbox buttons.
Added required aria label for `fieldset` (labeled by the question title).

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
@susnux
Copy link
Collaborator Author

susnux commented Jun 25, 2023

Please also add the new prop to the API docs :)

Done ✔️

@Chartman123 Chartman123 merged commit 1be02c1 into main Jun 27, 2023
23 of 25 checks passed
@Chartman123 Chartman123 deleted the feat/technical-names branch June 27, 2023 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add technical identifier / name for fields
2 participants