Skip to content

[Jules] Migrate jQuery snackbars to React components - #36

Open
ronshapiro wants to merge 1 commit into
basefrom
feat/react-snackbar-migration
Open

[Jules] Migrate jQuery snackbars to React components#36
ronshapiro wants to merge 1 commit into
basefrom
feat/react-snackbar-migration

Conversation

@ronshapiro

Copy link
Copy Markdown
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