(feat) O3-5265 implemented delete bed feature in Bed Management#2175
(feat) O3-5265 implemented delete bed feature in Bed Management#2175sourav-jyoti wants to merge 10 commits intoopenmrs:mainfrom
Conversation
|
thanks @sourav-jyoti for the work on this , have you seen the |
|
Thanks @gitcliff I've identified and fixed the issues: The mockMutateBeds is a shared Jest mock, and despite clearMocks: true in global jest config, it seems call history was persisting across tests. Changes:
|
|
@denniskigen could you pls review this pr |
|
@sourav-jyoti have you confirmed with @VeronicaMuthee if we even want the delete functionality? Also if we do, consider adding them in an overflow menu. Would look much cleaner |
|
@VeronicaMuthee could you please take a look at the functionality |
|
Hey @sourav-jyoti, we need to clarify with PIH folks. And if that's the case, overflow menu makes sense as suggested by @UjjawalPrabhat. cc: @chibongho |
Ok after the confirmation of the functionality i will update it |
packages/esm-bed-management-app/src/summary/summary.resource.ts
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.modal.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.modal.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/bed-administration-table.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/bed-administration-table.component.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.modal.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.modal.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.modal.tsx
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.modal.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.modal.tsx
Outdated
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.scss
Outdated
Show resolved
Hide resolved
0d3e4b6 to
4e22904
Compare
| <TextInput | ||
| {...field} |
There was a problem hiding this comment.
@denniskigen should i use < stack > here similar to https://github.com/openmrs/openmrs-esm-billing-app/pull/629/changes#diff-cfde1cff3804d2ed593ce6a901b90ae254aa57831151dce56388197c83a487a4R60
There was a problem hiding this comment.
The Stack is used for consistent vertical spacing when we have more than one nested block-level element. In this case because we only have a TextInput as the sole nested element, we shouldn't need to use a Stack here.
packages/esm-bed-management-app/src/bed-administration/modal/delete-bed-confirmation.scss
Show resolved
Hide resolved
@sourav-jyoti, here is the feedback from PIH (Fiona): "If it can be permissioned so not everyone can delete beds then it's a good feature to have." |
awesome ! thnks for the follow up |
Requirements
Summary
There was no delete bed feature pn frontend though an api was available for it -- (delete) /bed/[uuid]
this pr implements the delete feature on ui
Screenshots
Before
After
Screencast.From.2025-12-19.12-43-15.mp4
Related Issue
https://openmrs.atlassian.net/issues?filter=-1&selectedIssue=O3-5265