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

Add notes for Case items #737

Merged
merged 61 commits into from
Oct 16, 2023
Merged

Add notes for Case items #737

merged 61 commits into from
Oct 16, 2023

Conversation

crfmc
Copy link
Contributor

@crfmc crfmc commented Jul 27, 2023

Corresponds to Trello Ticket

  • Adds functionality for POSTing and PATCHing Note Items linked to Case Items
  • Reveals new "Notes" column in columnExtensionMap
  • New "notes available" indicator in search headers column
  • New textarea popup component (CaseNotesColumn.js) for text input

deployed to cgap-devtest 09/25

drio18 and others added 30 commits July 27, 2023 15:11
- feat: note icon functionality
- style: use flexbox container to align indicators
- style: add classnames
- feat: consider empty string notes as non-notes
- fix: remove line appearing at bottom of element
- feat: pass down result to component
- feat: POST and PATCH funcitonality
- feat: update date and user after request
- feat: add loading spinner to save button
- feat: switch to status based note deletion
- feat: note icon functionality
- style: use flexbox container to align indicators
- style: add classnames
- feat: add latency warning on save
- style: render hidden note icon (icon added after component load)
- feat: update note icon on input text change
@crfmc crfmc marked this pull request as ready for review September 25, 2023 17:58
- feat: update status indicator tooltip on unsaved changes
@crfmc crfmc changed the base branch from master to cesar September 28, 2023 16:58
@crfmc crfmc changed the base branch from cesar to master September 28, 2023 16:58
Copy link
Member

@Bianca-Morris Bianca-Morris left a comment

Choose a reason for hiding this comment

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

Nice job on this! Most of the comments on here are smaller nitpicks and things that probably don't need to be explicitly addressed before merging, but there are some things in CaseNotesColumn that I'd like changed before approval. It should be fairly clear which is which, but if it isn't, please don't hesitate to ask!

src/encoded/static/scss/style.scss Outdated Show resolved Hide resolved
src/encoded/schemas/case.json Show resolved Hide resolved
src/encoded/static/components/browse/columnExtensionMap.js Outdated Show resolved Hide resolved
src/encoded/static/components/browse/CaseNotesColumn.js Outdated Show resolved Hide resolved
src/encoded/static/components/browse/CaseNotesColumn.js Outdated Show resolved Hide resolved
src/encoded/static/components/browse/CaseNotesColumn.js Outdated Show resolved Hide resolved
src/encoded/static/components/browse/CaseNotesColumn.js Outdated Show resolved Hide resolved
- feat: update warning text
- feat: keep warning text in variable
- feat: remove status indicator response to save state
- feat: add and format error text in UI
Copy link
Contributor

@drio18 drio18 left a comment

Choose a reason for hiding this comment

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

One small comment to address; otherwise, tested well (no front-end code review from me). I found the lack of an explicit delete note button a little odd but figured out I could do it by saving with no text; can't remember what we do with technical review here.

pyproject.toml Outdated Show resolved Hide resolved
src/encoded/schemas/case.json Show resolved Hide resolved
@crfmc crfmc requested a review from Bianca-Morris October 11, 2023 18:40
@Bianca-Morris
Copy link
Member

One small comment to address; otherwise, tested well (no front-end code review from me). I found the lack of an explicit delete note button a little odd but figured out I could do it by saving with no text; can't remember what we do with technical review here.

Hmm, yeah that's fair. Can bring that up for the future.

Copy link
Member

@Bianca-Morris Bianca-Morris left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for making so many of the changes I suggested. Should be good to go for now; any additional feedback we can collect in another ticket and work on later.

@crfmc crfmc merged commit b6e4667 into master Oct 16, 2023
4 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.

3 participants