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

style: remove bottom margin of model store error message #2653

Merged

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Aug 22, 2024

TL;DR

Improved error message display in ModelStoreListPage component.

What changed?

Added a style prop to the Typography.Paragraph component within the Alert message. This sets the marginBottom to 0, removing any extra space below the error message.

How to test?

  1. Navigate to the ModelStoreListPage.
  2. Trigger an error condition that displays an error message.
  3. Verify that the error message is displayed without extra bottom margin.
  4. Compare with the previous version to ensure the spacing has been reduced.

Why make this change?

This change improves the visual consistency and compactness of error messages in the ModelStoreListPage. By removing the extra bottom margin, it ensures that error messages are displayed more efficiently, especially in cases where multiple errors might be shown.


Checklist: (if applicable)

  • Mention to the original issue
  • Documentation
  • Minium required manager version
  • Specific setting for review (eg., KB link, endpoint or how to setup)
  • Minimum requirements to check during review
  • Test case(s) to demonstrate the difference of before/after

Copy link

graphite-app bot commented Aug 22, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @agatha197 and the rest of your teammates on Graphite Graphite

Copy link

github-actions bot commented Aug 22, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 3.7% 215/5807
🔴 Branches 4.05% 159/3926
🔴 Functions 2.24% 43/1920
🔴 Lines 3.59% 204/5688

Test suite run success

71 tests passing in 7 suites.

Report generated by 🧪jest coverage report action from 67f8d9e

@ironAiken2 ironAiken2 force-pushed the style/remove-bottom-margin-of-model-store-error-msg branch from fd481a0 to 0d4085d Compare August 22, 2024 08:28
@github-actions github-actions bot added size:S 10~30 LoC and removed size:XS ~10 LoC labels Aug 22, 2024
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Aug 22, 2024

Merge activity

### TL;DR

Improved error message display in ModelStoreListPage component.

### What changed?

Added a `style` prop to the `Typography.Paragraph` component within the `Alert` message. This sets the `marginBottom` to 0, removing any extra space below the error message.

### How to test?

1. Navigate to the ModelStoreListPage.
2. Trigger an error condition that displays an error message.
3. Verify that the error message is displayed without extra bottom margin.
4. Compare with the previous version to ensure the spacing has been reduced.

### Why make this change?

This change improves the visual consistency and compactness of error messages in the ModelStoreListPage. By removing the extra bottom margin, it ensures that error messages are displayed more efficiently, especially in cases where multiple errors might be shown.

---

<!--
Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes,
and how it affects the users and other developers.
-->

**Checklist:** (if applicable)

- [ ] Mention to the original issue
- [ ] Documentation
- [ ] Minium required manager version
- [x] Specific setting for review (eg., KB link, endpoint or how to setup)
- [x] Minimum requirements to check during review
- [ ] Test case(s) to demonstrate the difference of before/after
@ironAiken2 ironAiken2 force-pushed the style/remove-bottom-margin-of-model-store-error-msg branch from 0d4085d to 67f8d9e Compare August 22, 2024 08:33
@graphite-app graphite-app bot merged commit 67f8d9e into main Aug 22, 2024
6 checks passed
@graphite-app graphite-app bot deleted the style/remove-bottom-margin-of-model-store-error-msg branch August 22, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S 10~30 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants