Skip to content

feat: implement notification system#129

Merged
tonoizer merged 10 commits into
mainfrom
feat/109-warning-system
Apr 27, 2023
Merged

feat: implement notification system#129
tonoizer merged 10 commits into
mainfrom
feat/109-warning-system

Conversation

@tonoizer

@tonoizer tonoizer commented Apr 25, 2023

Copy link
Copy Markdown
Contributor

PR description

Describe your changes in detail here

A implementation of a simple warning system where you just add and remove a Warning Object. When you do so it will display a little notification to the user, but only if the previous notification has either timed out or been closed by the user manually.

Some feedback would be very nice, because I wasn't sure what the functionalities should be.

This PR has been done in pair programming to gradually introduce @roman533 into the workprocess

Definition Of Done (DoD)

This PR can be squashed / merged if

  • a developer is assigned
  • the PR is NOT estimated
  • the PR is labeled
  • the PR is NOT assigned to the current sprint
  • a meaningful title has been set according to https://www.conventionalcommits.org/
  • the PR is described in detail
  • the PR links to an issue
  • the PR has been reviewed

Add additional conditions here if necessary for this PR

Fix: #109

@tonoizer
tonoizer requested a review from Claiyc April 25, 2023 21:26
@tonoizer tonoizer changed the title feat(warningsystem): simple implementation fo a warning system with notifications feat: implement warning system Apr 25, 2023

@Claiyc Claiyc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look bad. examples need to be removed though.

@tonoizer

Copy link
Copy Markdown
Contributor Author

Yes the example need to be removed, just left them in for testing and showcasing purposed

@tonoizer

Copy link
Copy Markdown
Contributor Author

I have now removed the test code, and commented the code a bit more

@tonoizer
tonoizer requested a review from Claiyc April 25, 2023 21:53
Comment thread src/composables/useWarningSystem.ts Outdated
Comment thread src/App.vue
Comment thread src/composables/useWarningSystem.ts Outdated
@tonoizer
tonoizer requested a review from Claiyc April 25, 2023 22:27
Comment thread src/App.vue Outdated
@tonoizer

Copy link
Copy Markdown
Contributor Author

Refractored it from warning system to notification system. Additionally added the stack of the notification feature.

image

Currently the snakcbar notifications are all a fixed size and this should the fine for now this could be revisited and restyled in the #130 issue.

@tonoizer tonoizer changed the title feat: implement warning system feat: implement notification system Apr 26, 2023
@tonoizer
tonoizer requested review from Claiyc and roman533 and removed request for roman533 April 26, 2023 16:56
@roman533
roman533 self-requested a review April 26, 2023 20:44
roman533
roman533 previously approved these changes Apr 26, 2023
Comment thread src/App.vue Outdated
Comment thread src/App.vue Outdated
@tonoizer
tonoizer requested review from Claiyc and roman533 April 27, 2023 09:53

@Claiyc Claiyc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tonoizer
tonoizer merged commit 6a3ec04 into main Apr 27, 2023
@tonoizer
tonoizer deleted the feat/109-warning-system branch April 27, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a proper notification system for the UI

3 participants