Skip to content

Conversation

@zeusongit
Copy link
Contributor

@zeusongit zeusongit commented Feb 6, 2026

In this PR:

  • Restructured labels to be more manageable
  • Added a Reset button next to Import Settings when new settings are imported, to reset to default state.
  • A dismissible toast message is shown after settings are imported: "Settings imported. Please restart Dynamo."

Should be merged before DynamoDS/Dynamo#16878

Screenshot 2026-02-09 183239
Screen.Recording.2026-02-09.183435.mp4
Old Implementation Screenshot 2026-02-05 191522
Screen.Recording.2026-02-05.191906.mp4

Replace many individual label props with a single labels object passed from App to Static. Update Static to read labels from props.labels, simplify setLabels in App, and update defaultProps/propTypes accordingly. Add UI and handlers for a restart message and a reset button shown after importing settings (showRestartMessage/hideRestartMessage/resetSettings) and clear the file input after import. Add related CSS for import row, reset button, and restart message, and tweak bottomMenu classes in App.css.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restructures label management in the Static component and adds a reset functionality for imported settings. When users import settings, they now see a restart message and can reset to defaults via a new button.

Changes:

  • Consolidated individual label props into a single labels object for improved organization
  • Added reset button next to Import Settings that appears after settings import
  • Implemented restart message display after settings are imported

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/Static.js Refactored props to use labels object, added reset button/message functionality with window methods
src/Static.css Added styling for reset button, restart message animation, and grid layout adjustments
src/App.js Updated to pass consolidated labels object instead of individual props
src/App.css Modified bottom menu height styling to accommodate new UI elements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

zeusongit and others added 2 commits February 5, 2026 19:57
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@zeusongit
Copy link
Contributor Author

@hwahlstrom any suggestions on the message and the UX here for the message and the reset button, I intentionally made the message smaller to have it fit below the button.

@hwahlstrom
Copy link

@zeusongit I would recommend a toast for a few reasons:

  • Space is already constrained, an additional message looks cluttered
  • Will be exacerbated in some other languages
  • Yellow font is eye-catching but non-standard in Weave, but white font is subtle and easily missed

But let me know if a toast is not feasible and I can propose an alternative solution.

Succeed

@zeusongit
Copy link
Contributor Author

@zeusongit I would recommend a toast for a few reasons:

  • Space is already constrained, an additional message looks cluttered
  • Will be exacerbated in some other languages
  • Yellow font is eye-catching but non-standard in Weave, but white font is subtle and easily missed

But let me know if a toast is not feasible and I can propose an alternative solution.

Succeed

Thanks for the suggestion, and will work on it and let you know more regarding it's feasibility.

Introduce a reusable Toast notification (src/Toast.js + src/Toast.css) and unit tests (tests/Toast.test.js). Integrate the Toast into App (src/App.js) and add a debug-mode detection that auto-loads Static when WebView2 is not present and shows a small "Debug Mode" label. Update Static (src/Static.js, src/Static.css) to: use safer typeof checks for chrome.webview, remove the inline restart message UI/CSS in favor of showing toasts via window.showToast/window.hideToast, and mock import callbacks when running outside WebView2 for local development. Update package.json to include the new Toast test in test:unit. These changes enable in-app notifications and improve local dev/debug behavior without WebView2.
@zeusongit
Copy link
Contributor Author

@zeusongit I would recommend a toast for a few reasons:

  • Space is already constrained, an additional message looks cluttered
  • Will be exacerbated in some other languages
  • Yellow font is eye-catching but non-standard in Weave, but white font is subtle and easily missed

But let me know if a toast is not feasible and I can propose an alternative solution.
Succeed

Thanks for the suggestion, and will work on it and let you know more regarding it's feasibility.

@hwahlstrom please take another look, updated now

Copy link
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

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

Looks good to me with two comments

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