Skip to content

[Jules] Migrate jQuery snackbars to React components #36

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

Open
wants to merge 1 commit into
base: base
Choose a base branch
from

Conversation

ronshapiro
Copy link
Owner

  • Introduced a new React-based snackbar system with a GenericSnackbar component and a SnackbarProvider for managing snackbar state.
  • Migrated existing snackbar kinds (PreferencesNudge, GoogleSignIn, Share, Errors, TextSelection, ReportedIssueSent) from the old jQuery-based snackbar.ts to new React trigger components or callable functions.
  • Integrated the new system into Root.tsx, allowing snackbars to be stacked and managed globally.
  • Refactored SnackbarReact.tsx (for search) to use the new GenericSnackbar component internally.
  • Added CSS for the new generic snackbar system.
  • Improved robustness of snackbar dismissal with an onAnimatedOut callback.
  • Added support for disabled buttons in snackbars.
  • Cleaned up by removing the old js/snackbar.ts file.

- Introduced a new React-based snackbar system with a GenericSnackbar component and a SnackbarProvider for managing snackbar state.
- Migrated existing snackbar kinds (PreferencesNudge, GoogleSignIn, Share, Errors, TextSelection, ReportedIssueSent) from the old jQuery-based snackbar.ts to new React trigger components or callable functions.
- Integrated the new system into Root.tsx, allowing snackbars to be stacked and managed globally.
- Refactored SnackbarReact.tsx (for search) to use the new GenericSnackbar component internally.
- Added CSS for the new generic snackbar system.
- Improved robustness of snackbar dismissal with an onAnimatedOut callback.
- Added support for disabled buttons in snackbars.
- Cleaned up by removing the old js/snackbar.ts file.
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.

1 participant