Skip to content

Conversation

@josephmyers
Copy link
Collaborator

@josephmyers josephmyers commented Nov 13, 2025

The notes are fetched from the Paratext local copy, and the relevant pieces are parsed. The back end replaces the tag numbers with their user-displayed text (for readability).

The front end makes this call when the user clicks the Paratext Import option in the import dialog. It first gathers the available tags and displays them as a dropdown. Once a value is chosen, it filters the notes down to the selection, and feeds them to the same display used for the Transcelerator questions.


This change is Reviewable

@josephmyers josephmyers added the will require testing PR should not be merged until testers confirm testing is complete label Nov 13, 2025
@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 70.95588% with 79 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.75%. Comparing base (9f18555) to head (abbf519).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...stions-dialog/import-questions-dialog.component.ts 71.28% 25 Missing and 4 partials ⚠️
...XForge.Scripture/Controllers/ParatextController.cs 28.57% 13 Missing and 2 partials ⚠️
...rc/SIL.XForge.Scripture/Services/NotesFormatter.cs 75.43% 10 Missing and 4 partials ⚠️
src/SIL.XForge.Scripture/Services/NotesService.cs 76.66% 5 Missing and 9 partials ⚠️
...c/SIL.XForge.Scripture/Services/ParatextService.cs 72.22% 2 Missing and 3 partials ⚠️
...ripture/ClientApp/src/app/core/paratext.service.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3570      +/-   ##
==========================================
- Coverage   82.83%   82.75%   -0.08%     
==========================================
  Files         610      612       +2     
  Lines       37217    37462     +245     
  Branches     6101     6122      +21     
==========================================
+ Hits        30828    31001     +173     
- Misses       5462     5530      +68     
- Partials      927      931       +4     

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

@josephmyers
Copy link
Collaborator Author

One thing I intentionally haven't done here is to exclude resolved notes/questions, the reasons being that, if we do, there's no option for the user to bypass that and that, if they really don't want to see the item in the import list, they can just delete it in Paratext.

@Nateowami Nateowami changed the title SF-3578 Add Import Questions from Paratext SF-3578 Add Import Questions from Paratext notes Nov 25, 2025
@josephmyers josephmyers force-pushed the feature/SF-3578 branch 4 times, most recently from b5d8d6e to d8a97d9 Compare December 4, 2025 17:27
@josephmyers josephmyers marked this pull request as ready for review December 4, 2025 17:36
josephmyers and others added 13 commits December 5, 2025 11:12
The notes are fetched from the Paratext local copy, and the relevant pieces are parsed. The back end replaces the tag numbers with their user-displayed text (for readability).

The front end makes this call when the user clicks the Paratext Import option in the import dialog. It first gathers the available tags and displays them as a dropdown. Once a value is chosen, it filters the notes down to the selection, and feeds them to the same display used for the Transcelerator questions.

The brunt of this is done, but there are a number of edge cases to work through. And tests.
And fixed layout squashing on intermediate sizes

And hooked up Learn More to Transcelerator help page (until this feature gets its own)
Before, follow-on steps in the dialog were "cancel" buttons, which would just close the dialog. This wasn't great UX. Now, all the major states of the dialog should allow the user to get back to the initial state. I had to split out the filter state into two states, since the Back for the Paratext notes (the new step) has to go to the Tag screen, not the initial.
Front end tests still remaining
… use Where

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… use Where

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

will require testing PR should not be merged until testers confirm testing is complete

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants