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

Add notification popups #540

Merged
merged 21 commits into from
Jun 29, 2022
Merged

Add notification popups #540

merged 21 commits into from
Jun 29, 2022

Conversation

boatbomber
Copy link
Member

@boatbomber boatbomber commented Apr 26, 2022

When #537 lands, users will be able to control Rojo without opening the widget or the toolbar. While this is excellent for developer experience, it leads to a total lack of feedback on their actions. As a stopgap, we added logs into the console for them, but that's not a great longterm solution.

I prototyped a notification system that aims to accomplish what @LPGhatguy and I discussed in #537. These show up in the viewport, so even if nothing Rojo-related is open the user will still receive these nice animated and themed popups.

Features:

  • Rojo logo on the popup to make it clear where they came from
  • Animated entry and exit
  • Sound effect on entry
  • Dynamic sizing to fit arbitrary notifications cleanly
  • Timestamps on each notification, automatically handled
  • Click to dismiss
  • Timeouts to auto dismiss notifications a few seconds after being viewed to reduce friction
  • Simple App:addNotification(text: string, timeout: number?) API so it can be easily integrated throughout
  • Setting for enabling/disabling notifications (enabled by default)
Notifications.mp4

@boatbomber boatbomber marked this pull request as ready for review April 27, 2022 00:11
@sasial-dev
Copy link
Contributor

sasial-dev commented May 11, 2022

  • Won't notify if widget is enabled to avoid duplicate messages (except in the video below for ease of demo)

Consider adding a setting so you can still have notifications even if the widget is open!

plugin/src/Assets.lua Outdated Show resolved Hide resolved
@boatbomber
Copy link
Member Author

boatbomber commented May 15, 2022

Added setting for notifs, should be nicer to give users that control!

image

Copy link
Contributor

@LPGhatguy LPGhatguy left a comment

Choose a reason for hiding this comment

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

Let's do it!

@LPGhatguy LPGhatguy merged commit ca0759a into rojo-rbx:master Jun 29, 2022
@boatbomber boatbomber deleted the notifications branch June 30, 2022 00:30
Dekkonot pushed a commit to UpliftGames/rojo that referenced this pull request Jan 11, 2024
* Add notifications prototype

* Add timeout

* Improve function name

* Faster timeouts and fully clickable

* Update remove padding from old X button

* Only auto-dismiss when viewport is open

* Start auto dismiss once viewed

* Avoid redundantly displaying widget text as notifs

* Add sound effect

* Add setting for notifications

* Remove duplicate PluginSettings.StudioProvider

* Use short pop sound effect

* Fix broken audio, thanks Roblox

* Use e instead of createElement
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.

3 participants