Skip to content

✨ Centralized toast system#2638

Open
b-l-i-n-d wants to merge 9 commits into4.0.0-devfrom
v4-toast-update
Open

✨ Centralized toast system#2638
b-l-i-n-d wants to merge 9 commits into4.0.0-devfrom
v4-toast-update

Conversation

@b-l-i-n-d
Copy link
Copy Markdown
Collaborator

No description provided.

b-l-i-n-d and others added 8 commits April 28, 2026 00:23
Co-authored-by: Copilot <copilot@github.com>
- Create _toast.scss token file with var()-wrapped design variables
- Add toast.scss as standalone entry point for runtime-injected styles
- Refactor _toast.scss component to use SCSS token variables
- Remove redundant :root CSS variable declarations
- Add TutorToastTheme type ('light' | 'dark' | 'auto')
- Default to 'auto' in runtime, 'light' in React ToastProvider
- Theme applied via data-tutor-theme attribute on container
- Improve createContextBound type safety with ToastContextOptions
- Clean up barrel exports to only expose React API
… ToastService

- Remove dead re-exports (createTutorToastApi, tutorToastDefaults, etc.)
- Remove empty constructor that called configure with defaults
- Migrate imports to use @Core/ts/toast barrel export
- Add ToastProvider to all app root components with theme="light"
- Update service files to use useToast hook from shared module
- Register toast.scss as standalone CSS entry in rspack config
- Enqueue toast CSS separately from main core stylesheet
- Add styles.d.ts type declaration for SCSS module imports
@b-l-i-n-d b-l-i-n-d added the 4.0.0 Tutor v4.w0w label May 4, 2026
@b-l-i-n-d b-l-i-n-d requested a review from sazedul-haque May 4, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant