Skip to content

[ Fix : Snackbar Functionality and Enhancements ] #205

@rohitPandey469

Description

@rohitPandey469

Describe the bug
While addressing another issue, I encountered an problem within the Control Buttons file. The Snackbar state is not being effectively managed, resulting in the Snackbar component failing to execute. So, Messages such as "tutorial complete," "Updating...," in case of remove step and "Updated..." in case of step title update etc. are not visible.

To Reproduce
Steps to reproduce the behavior:
One way to check is while on completeing the step, a snack msg like tutorial complete at the bottom left.

  1. Go to 'localhost:5173'
  2. Click on 'Add new Tutorial'
  3. Add dummy steps
  4. Upon completing a step, observe the absence of the expected message (e.g., "tutorial complete") at the bottom left.

Expected behavior
The expected behavior includes displaying messages such as "tutorial complete," "resetting tutorial," and "Updating...." (for Step Removal) or "Updated...." (for Step Title Updation). Additionally, this state management issue of snack persist at multiple locations within the app.
image
Although the Snackbar component functions correctly in OrgUserCard.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome

Additional context
An alternative to this could be "toast", but the app already uses "snackbar," which is designed for studying-related features and is likely more suitable for our needs. But we can always change it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions