-
Notifications
You must be signed in to change notification settings - Fork 188
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
(feat) Add support for setting custom workspace title #1067
Conversation
@@ -37,7 +38,21 @@ export interface DefaultWorkspaceProps { | |||
* will directly close the workspace without any prompt | |||
*/ | |||
closeWorkspaceWithSavedChanges(closeWorkspaceOptions?: CloseWorkspaceOptions): void; | |||
handlePostResponse?(): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk what this is or why it was here, but it appears not to be used anywhere (based on some github searching)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used in esm-fast-data-entry
to handle postSubmission action. https://github.com/openmrs/openmrs-esm-fast-data-entry-app/blob/79bdd85e23c1245d5daee1d0d1137b00cdb871fc/src/FormBootstrap.tsx#L161 but i guess we can remove it since we aren't using it with workspaces.
Size Change: -364 kB (-9.07%) ✅ Total Size: 3.65 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @brandones. LGTM.
Requirements
feat
,fix
, orchore
, among others). See existing PR titles for inspiration.For changes to apps
If applicable
Summary
This allows workspaces to set their own title dynamically, including setting custom React components as the title.
Screenshots
recording-2024-07-02_13.13.48.mp4
Related Issue
Needed for https://openmrs.atlassian.net/browse/O3-3246
Other