-
Notifications
You must be signed in to change notification settings - Fork 183
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
Sync reminder notification & notification actions #689
Sync reminder notification & notification actions #689
Conversation
…omber/rojo into sync-reminder-notification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good addition - I'm happy there's a setting to turn it on and off. Can you just edit the PR title to say that it adds notification actions?
I also noticed some perhaps surprising behavior on unpublished Roblox template places (for example, the Baseplate resulting from File>New): DataModel.PlaceId
is equal to the original template's before publishing, so if the user has ever synced to an unpublished template, they will get a reminder to sync whenever they create one.
Something similar happens with local place files, which have a DataModel.PlaceId
always equal to zero. Not sure what to do about these (maybe just avoid showing the reminder if we're on an unpublished local place file or an unpublished template?), but at the same time, it's probably way more common for the user to want to sync to places that are already published, and they can just turn the reminder off if they're not. Dunno, interested to hear your thoughts here.
Ooh, I honestly forgot those have consistent place ids. I think(?) we can ignorelist them, since the reminder doesn't make sense in their context. |
It's straightforward for local place files, but Roblox could change the template places without warning, and then we'd be right back to spurious notification land. Argh.... well, they don't change very often, do they? Maybe a hard coded check against template place IDs is okay. |
Fixed it. It was tedious to gather all those place ids initially but it should be literally one liner PRs when they add more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nitpick, otherwise looks good
}), | ||
|
||
LogLevel = e(Setting, { | ||
id = "logLevel", | ||
name = "Log Level", | ||
description = "Plugin output verbosity level", | ||
transparency = self.props.transparency, | ||
layoutOrder = 5, | ||
layoutOrder = 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the layout order for this and the typechecking setting so high? I'm not intimately familiar with the plugin, so forgive me if this is an obvious question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are dev settings, not really used by consumers, so they're set really high so that they'll always be last in the list and out of the way of users without us having to manually update their layoutorder by one every time we add a setting.
RojoNotifications = e("ScreenGui", { | ||
ZIndexBehavior = Enum.ZIndexBehavior.Sibling, | ||
ResetOnSpawn = false, | ||
DisplayOrder = 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question as with the LayoutOrders; what's the reason this is so large?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rojo Notifications need to display on top for users to see. We don't know what else may be in their CoreGui, so we just use a high display order to increase our odds of having notifications viewable.
Co-authored-by: Micah <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Implements and closes rojo-rbx#652. --------- Co-authored-by: Chris Chang <[email protected]> Co-authored-by: Micah <[email protected]>
Implements and closes #652.