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

Add Warning Message for Fillet Engine Limitations in CommandBar #4076

Merged
merged 10 commits into from
Oct 8, 2024

Conversation

max-mrgrsk
Copy link
Collaborator

@max-mrgrsk max-mrgrsk commented Oct 2, 2024

this issue is part of Fillet project: #2606
closes: #3833

Summary:

This PR adds a warning message to the CommandBar to inform users about current engine limitations with fillets (e.g., fillets cannot touch other fillets). The warning is visually distinct and aims to improve user awareness.

Changes:

Added warningMessage to CommandArgument type and integrated it into the UI.

warningMessage

Future Enhancements:

The message will evolve to cover more fillet-related errors in the separate PRs, such as selecting already filleted edges, or engine fails on dry run : #2612

This is a first step toward improving user feedback for fillet operations.

@max-mrgrsk max-mrgrsk self-assigned this Oct 2, 2024
@max-mrgrsk max-mrgrsk linked an issue Oct 2, 2024 that may be closed by this pull request
Copy link

vercel bot commented Oct 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Oct 5, 2024 7:04am

Copy link

qa-wolf bot commented Oct 2, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

…max-command-bar-multiple-fillet-selection
@max-mrgrsk max-mrgrsk requested a review from franknoirot October 3, 2024 12:06
@max-mrgrsk max-mrgrsk assigned nadr0 and max-mrgrsk and unassigned nadr0 and max-mrgrsk Oct 3, 2024
@max-mrgrsk max-mrgrsk requested a review from nadr0 October 3, 2024 12:06
@max-mrgrsk max-mrgrsk marked this pull request as ready for review October 3, 2024 12:07
Copy link
Collaborator

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

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

Nice, just a couple comments. I think it was a good move to make this a simple string for now, and not a full ReactNode.

I can see this parameter becoming more general in the future, so that instead of warningMessage it's something like additionalInfo: { level: 'warning'; message: 'Fillets cannot touch other fillets yet. This is under development.' }, so we can have other message levels like info and destructive that result in different-styled components. But we shouldn't do that until we need it.

src/lib/commandBarConfigs/settingsCommandConfig.ts Outdated Show resolved Hide resolved
src/lib/commandTypes.ts Outdated Show resolved Hide resolved
src/lib/kclCommands.ts Outdated Show resolved Hide resolved
@nadr0
Copy link
Collaborator

nadr0 commented Oct 4, 2024

I agree with Frank's comments. I tested locally and it looks good. Glad it only shows up during the selection step.

@max-mrgrsk max-mrgrsk requested a review from lf94 October 5, 2024 08:18
Copy link
Collaborator

@franknoirot franknoirot left a comment

Choose a reason for hiding this comment

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

Nice, that became a tiny PR!

@max-mrgrsk max-mrgrsk merged commit 3c5bf70 into main Oct 8, 2024
26 checks passed
@max-mrgrsk max-mrgrsk deleted the max-command-bar-multiple-fillet-selection branch October 8, 2024 14:28
@pierremtb pierremtb mentioned this pull request Oct 17, 2024
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.

Add Multiple Fillet Selection Support to Command Bar UI
3 participants