Skip to content
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

Implement Snackbar component #6

Merged
merged 8 commits into from
Jun 17, 2024
Merged

Commits on May 16, 2024

  1. feat: implement Snackbar component

    Implement the Snackbar component to handle snackbar creation and removal
    based on the provided configuration. The Snackbar class consists of a
    constructor method that initializes the configuration, a create method
    to create snackbars, and a remove method to remove snackbars. This
    implementation ensures that the provided configuration is verified
    before creating or removing snackbars.
    chessurisme committed May 16, 2024
    Configuration menu
    Copy the full SHA
    17642a4 View commit details
    Browse the repository at this point in the history
  2. refactor: replace create method with render method

    Replaced the `createSnackbar` method with the `renderSnackbar` method in
    the Snackbar class to streamline the process of rendering. Directly
    rendering the Snackbar makes more sense and reduces complexity when
    using the Snackbar class.
    chessurisme committed May 16, 2024
    Configuration menu
    Copy the full SHA
    40be994 View commit details
    Browse the repository at this point in the history
  3. refactor: remove unnecessary parameter

    Removed an unnecessary parameter from the `removeSnackbar` method to
    streamline its implementation and improve clarity.
    chessurisme committed May 16, 2024
    Configuration menu
    Copy the full SHA
    380bd02 View commit details
    Browse the repository at this point in the history
  4. refactor: merge render and remove methods

    Merged the render and remove methods in the Snackbar class to simplify
    its interface and enhance clarity. The unnecessary parameter has been
    removed, resulting in a more streamlined and user-friendly implementation.
    chessurisme committed May 16, 2024
    Configuration menu
    Copy the full SHA
    03e51a7 View commit details
    Browse the repository at this point in the history
  5. feat: add render then remove snackbar function

    This feature introduces a new function for rendering a snackbar message
    and then automatically removing it after a certain duration. The
    function combines the rendering and removal processes into a single
    action, enhancing usability and reducing complexity.
    chessurisme committed May 16, 2024
    Configuration menu
    Copy the full SHA
    6e1e4e9 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. refactor: update import paths for module resolution

    Updated import paths in component files to use module resolution aliases
    defined in jsconfig.json. This change improves code readability and
    maintainability by replacing relative paths with aliases.
    chessurisme committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    4abcf06 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. test: merge test files into one

    Combine multiple test files into a single test file to reduceunnecessary module tests. This change simplifies navigation and improvescodebase organization.
    chessurisme committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    0af2641 View commit details
    Browse the repository at this point in the history
  2. test: ensure rendering and removal works properly

    Add tests to verify that the Snackbar component correctly renders and
    removes messages with valid configurations.
    chessurisme committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    7bf92d0 View commit details
    Browse the repository at this point in the history