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

Removed excess buttons in entry overview, replacing it with button th… #1457

Conversation

IR96334
Copy link
Member

@IR96334 IR96334 commented Aug 7, 2024

…at releases a dropdown menu

@IR96334 IR96334 requested review from ARADDCC012 and ARADDCC002 and removed request for ARADDCC012 August 7, 2024 14:22
frontend/src/entry/overview/FormEditPage.tsx Outdated Show resolved Hide resolved
frontend/src/entry/overview/FormEditPage.tsx Outdated Show resolved Hide resolved
frontend/src/entry/overview/FormEditPage.tsx Outdated Show resolved Hide resolved
frontend/src/entry/overview/FormEditPage.tsx Outdated Show resolved Hide resolved
@IR96334 IR96334 requested a review from ARADDCC012 August 8, 2024 14:11
@ARADDCC002
Copy link
Member

I think it would be nice if we added chevrons to the button so that it points down when closed:

image

And then like so when it's opened:

image

I also think the list would like nicer with icons on the left-hand side:

image

The above example is also using the dense prop which removes some of the padding which I think looks a bit nicer.

</Button>
<Button variant='outlined' onClick={() => setHistoryDialogOpen(true)}>
View History
<Fragment>
Copy link
Member

Choose a reason for hiding this comment

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

<Fragment></Fragment> can be replaced with <></>

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

</MenuItem>
{!readOnly && (
<Tooltip title={requiredRolesText}>
<span>
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to wrap the <MenuItem /> in a <span />

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

Copy link
Member

@ARADDCC012 ARADDCC012 left a comment

Choose a reason for hiding this comment

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

Approved pending approval from @ARADDCC002

Copy link
Member

@ARADDCC002 ARADDCC002 left a comment

Choose a reason for hiding this comment

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

Approved - but we should wait for #1455 to go in first, then merge those changes into this PR.

Copy link
Member

@ARADDCC002 ARADDCC002 left a comment

Choose a reason for hiding this comment

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

Sorry reverting previous approval as we're still waiting on some changes.

@IR96334 IR96334 merged commit 002f707 into main Aug 13, 2024
14 checks passed
@ARADDCC012 ARADDCC012 deleted the BAI-1408-Add-a-menu/drop-down-for-thebuttons-on-the-model-overview-page branch August 14, 2024 15:13
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