Skip to content

Conversation

@nsemets
Copy link
Collaborator

@nsemets nsemets commented Oct 20, 2025

  • Ticket: [ENG-9250]
  • Feature flag: n/a

Summary of Changes

  1. Update text display for schemas.

Screenshot(s)

image

@nsemets nsemets changed the base branch from develop to feature/pbs-25.01 October 20, 2025 16:39
@nsemets nsemets requested a review from brianjgeiger October 20, 2025 16:39
Copy link
Contributor

@futa-ikeda futa-ikeda left a comment

Choose a reason for hiding this comment

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

I think this fix should address the two discrepancies I found between production and staging5. I think my biggest concern here is that there are currently some assumptions baked into how these sections/questions relate to each other, and some assumptions in the code being made when creating each currentSection and currentQuestion object, but this is going to be a discussion with Product team moreso than anything.

It also looks like some of the analysis I did in the original ticket weren't quite right, as I don't think it's the helpText attr being overwritten, necessarily.

Comment on lines 15 to 16
ContributorsInput = 'contributors-input',
SelectOtherOption = 'select-other-option',
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this, as these haven't been used and I don't think there are plans to use this in the future.

Comment on lines -52 to +56
@if (q.helpText && q.fieldType !== FieldType.Radio && q.fieldType !== FieldType.Checkbox) {
<p>{{ q.helpText }}</p>
@if (q.helpText) {
Copy link
Contributor

@futa-ikeda futa-ikeda Oct 20, 2025

Choose a reason for hiding this comment

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

Does this update the issue outlined in the ticket ("Another one that’s not showing up is the help_text..." ). I think the root cause of the problem that's outlined in that ticket is not addressed where we use a currentQuestion object to store helpText, but this helpText can be overwritten in subsequent blocks.

Edit: it looks like the original analysis wasn't correct, as I thought we were overriding currentQuestion.helpText with SelectSingleInputOption, but this is setting helpText for a member in the currentQuestion?.options array

@nsemets nsemets merged commit e65d926 into CenterForOpenScience:feature/pbs-25.01 Oct 21, 2025
1 check 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.

2 participants