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

feat(issue-views): Add save button to issue stream #88757

Merged
merged 4 commits into from
Apr 4, 2025

Conversation

malwilley
Copy link
Member

Adds a save button and modal for creating a new view. Saving a new view works by selecting "Save as", but for now the "Save" button behavior has not been implemented.

CleanShot 2025-04-03 at 15 30 49
CleanShot 2025-04-03 at 15 31 09
CleanShot 2025-04-03 at 15 31 30

@malwilley malwilley requested a review from a team as a code owner April 3, 2025 22:33
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 3, 2025
grid-template-areas: 'page-filters search sort';
}
${p =>
p.hasIssueViewSharing
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to modify the grid styles to fit the save button in. Here's what it looks like when the screen is a bit smaller:

CleanShot 2025-04-03 at 15 37 48

Copy link
Member

@MichaelSun48 MichaelSun48 left a comment

Choose a reason for hiding this comment

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

Looks great! Just two tiny nits

items={[
{
key: 'save-as',
label: t('Save As'),
Copy link
Member

Choose a reason for hiding this comment

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

nit: maybe "Save as New View"? would also increase the width of the button, which would be nice since it's all the way to the window.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call, does look awkwardly tiny right now!

},
]}
trigger={props => (
<DropdownTrigger
Copy link
Member

Choose a reason for hiding this comment

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

nit: this right/left padding looks a little too much to my eye, this is what It looks like w/ 8px padding (down from 16px)

Screenshot 2025-04-04 at 9 55 25 AM

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 agreed, looks like all the buttons we have like this are smaller so the default paddings look alright

@malwilley malwilley merged commit 0b6c171 into master Apr 4, 2025
41 checks passed
@malwilley malwilley deleted the malwilley/feat/issue-views-create branch April 4, 2025 19:43
andrewshie-sentry pushed a commit that referenced this pull request Apr 8, 2025
Adds a save button and modal for creating a new view. Saving a new view
works by selecting "Save as", but for now the "Save" button behavior has
not been implemented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants