You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DYN-8498: Add message to restart Dynamo after setting Import (#96)
* Consolidate labels prop and add restart/reset UI message
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.
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add Toast component and debug-mode handling
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.
* Update App.js
* Update App.js
* Update App.js
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments