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

KB editor #523

Merged
merged 25 commits into from
Nov 2, 2023
Merged

KB editor #523

merged 25 commits into from
Nov 2, 2023

Conversation

eb1
Copy link
Contributor

@eb1 eb1 commented Nov 2, 2023

Fixes #507 .

Changes proposed in this request:

  • KB editor available from Settings screen, shows paged target unit list (100 items per page), with an optional search filter to find individual items.
  • New TU functionality available from KB editor (New Entry button) -- user must enter one source and at least one target (can add more via an "Add Translation" button).
  • Edit TU functionality available from KB editor (clicking on an item in the list). User can edit the RefString or create a new one (via an "Add Translation" button).

@adapt-it/developers

eb1 added 25 commits October 2, 2023 10:37
Split out KBView / TargetUnit template to service both a KB item view (without a selected source phrase) and a "Show Translations" screen (with a selected source phrase)
Fix "find in documents" for TU detail view
Fix a couple bugs in the TU item list / Find in Documents code, including an existing problem counting pre+foll puncts in search results.
For some weird reason, setting contenteditable was moving the scroll on the initial render for Find in Documents. Moved the call to set contenteditable up in the method, so that the scroll call doesn't get overridden.
Code checkpoint: Show Translations screen lookup code cleanup (add case and punct handling). Still need to handle adding refstrings / translations in-place.
More progress on new refstring code.
New RefString (new translation) working. Next up is New TU (net entry) code
TargetUnit.html to be used for new TU functionality as well
Apply similar styling to Add Translation button (add refstring)
Just updating some strings (other changes are local for now).
Code checkpoint. Updated language strings, and moved the New TU functionality to a wizard page. Work still in progress.
Yet more refactoring... not ready for testing.
Couple bug fixes. Still need to run end-to-end test.
Edit KB functionality done I think -- still needs end-to-end testing.
Last change here is to fix a bug in autoAddCaps that was causing weird duplicate entries for arrays (i.e., the typeahead dropdown)
Grr... forgot to add search functionality. Partially working now.
Getting search results back now. Still need to figure out paging mechanism for larger data sets.
Lots of re-plumbing for paged data retrieval. Separated sql row count into separate getCount() method, and added check for filters and isGloss flag. More to do...
Bug fixes -- some internal plumbing not connected properly. Still testing.
Remove extraneous call to fetch KB (Application.editTU()), as the KB should already have the TU in the collection.
@eb1 eb1 merged commit 6e5eb7a into adapt-it:master Nov 2, 2023
2 checks 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.

In-place KB data entry
1 participant