Skip to content

feat: read comment review from DEMI - #966

Merged
danieltruong merged 2 commits into
developfrom
feat-demi-comment-review
Oct 14, 2026
Merged

danieltruong merged 2 commits into
developfrom
feat-demi-comment-review

Conversation

@danieltruong

Copy link
Copy Markdown
Collaborator

The comment review screens now read from DEMI's native routes instead of eagle-api.

  • The review tab lists /comments by period, with one eaoStatus parameter per selected status. Only the date column sorts, because DEMI sorts comments by dateAdded only. The default sort is newest first.
  • The comment resolver returns the DEMI comment plus its attachments, read from /documents?ids=.
  • The next and pending counts come from a count=true read.
  • Saves stay on eagle-api, using the Eagle comment id and Eagle document ids. The save still uses PUT comment/<id>, because that call also stores the notes and datePosted.
  • The add-comment and review screens take the period id from the route.

Fixed along the way: Save/Next reuses the component, so the form used to keep showing the previous comment. The form now reloads whenever the comment changes.

Tests: specs for the resolver, the review tab query, and the review form (next and pending, save by Eagle id, attachments published by Eagle id).

- Review tab lists /comments by period and eaoStatus. Only the date
  column sorts, since DEMI sorts comments by dateAdded only.
- Comment resolver returns the native row plus its attachments from
  /documents?ids=. Next and pending come from a count=true read.
- Saves stay on eagle-api under the Eagle comment and document ids.
- Save/Next reloads the form for the next comment. The component is
  reused, so its setup used to run only once.
- Period id comes from the route, not the period resolver row.
Count published comments over the whole period. A failed read used
to fall back to an empty page, which marked the period deletable.
Also test that Save/Next reloads the form for the next comment.
@danieltruong
danieltruong merged commit 0b222b3 into develop Oct 14, 2026
4 checks passed
@danieltruong
danieltruong deleted the feat-demi-comment-review branch October 14, 2026 03:59
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.

1 participant