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: Allow entering agenda text directly #6792

Merged
merged 7 commits into from
Dec 20, 2023
Merged

Conversation

pselkirk
Copy link
Collaborator

Fixes #6532

@pselkirk
Copy link
Collaborator Author

For whatever reason (because I don't know javascript), the script that shows the appropriate file/text input box (taken from complete-review.js) doesn't hide the label of the hidden field.

@jennifer-richards
Copy link
Member

For whatever reason (because I don't know javascript), the script that shows the appropriate file/text input box (taken from complete-review.js) doesn't hide the label of the hidden field.

The issue is that the bootstrap_form call is rendering the fields like (paraphrasing)

<div class="mb-3">
  <label class="form-label" ...>Agenda text</label>
  <textarea id="id_content" name="content" ...></textarea>
</div>

and you are selecting for [name="content"], which selects only the <textarea/>.

Easiest thing to do is to change line 54 of the template to var row = form.find(selector).parent(); so you hide the whole <div>...</div> wrapper. It's somewhat fragile, but I don't see a way to more directly label and select the wrapper <div/>.

Also, not sure if you're ready for review, but the JS code should go in its own module like is done for complete-review.js so that it can be packaged properly.

@pselkirk
Copy link
Collaborator Author

var row = form.find(selector).parent();

Thanks, that was the nudge I needed.

the JS code should go in its own module like is done for complete-review.js so that it can be packaged properly.

Yeah, I just wanted to get the JS working before going through the packaging step.

@pselkirk pselkirk marked this pull request as ready for review December 18, 2023 22:05
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f3a574c) 88.78% compared to head (4ecbf3e) 88.80%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6792      +/-   ##
==========================================
+ Coverage   88.78%   88.80%   +0.01%     
==========================================
  Files         285      285              
  Lines       40324    40367      +43     
==========================================
+ Hits        35800    35846      +46     
+ Misses       4524     4521       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

Suggestion inline - I'm open to discussion if you think it's preferable to stick with the status code checks as they are

ietf/meeting/tests_views.py Outdated Show resolved Hide resolved
@rjsparks rjsparks merged commit c1e40ff into ietf-tools:main Dec 20, 2023
9 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow entering text directly instead of uploading a file for the agenda
3 participants