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

Feature/bai 951 model contributors and owners should be able to edit releases #867

Conversation

ARADDCC012
Copy link
Member

No description provided.

}, [isEdit, setUnsavedChanges])

if (isModelError) {
return <MessageAlert message={isModelError.info.message} severity='error' />
Copy link
Member

Choose a reason for hiding this comment

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

Did we decide on how we wanted to handle errors? Happy to leave this for another ticket if that's what we decided

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah this is what we decided on. Any components that don't include the Wrapper can safely use a MessageAlert. Any of the page components with their own Wrapper will need to use the MultipleErrorWrapper

<Box py={1}>
<EditableFormHeading
heading={
<div>
Copy link
Member

Choose a reason for hiding this comment

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

Does this need to be a div or can we use a fragment?

Copy link
Member Author

Choose a reason for hiding this comment

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

Internally the EditableFormHeading puts the heading inside of a Stack direction='row' so the div is needed so that these are rendered on top of each other instead of side-by-side. I've had to do the same for access requests too.

I thought about managing this within EditableFormHeading, but I decided to let us decide how the heading will look on a case-by-case basis instead.

}

const releaseNotesLabel = (
<Typography component='label' sx={{ fontWeight: 'bold' }} htmlFor={'new-model-description'}>
Copy link
Member

Choose a reason for hiding this comment

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

Can we replace the sx={} prop with fontWieght prop instead fontWeight: 'bold'

Copy link
Member Author

Choose a reason for hiding this comment

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

I've changed this across the app for consistency

@ARADDCC012 ARADDCC012 merged commit 6c20f5f into main Nov 10, 2023
@ARADDCC012 ARADDCC012 deleted the feature/BAI-951-model-contributors-and-owners-should-be-able-to-edit-releases branch November 10, 2023 16:21
@ARADDCC012 ARADDCC012 restored the feature/BAI-951-model-contributors-and-owners-should-be-able-to-edit-releases branch November 14, 2023 11:50
@ARADDCC012 ARADDCC012 deleted the feature/BAI-951-model-contributors-and-owners-should-be-able-to-edit-releases branch November 14, 2023 11:51
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.

2 participants