mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 08:24:05 +08:00
7611fec0da
This commit introduces a new framework for building user tutorials as popups using the Tippy JS library. Currently, the new framework is used to replace the old notification spotlight and tips and show a new one related to the topic timeline. All popups follow the same structure and have a title, a description and two buttons for either dismissing just the current tip or all of them at once. The state of all seen popups is stored in a user option. Updating skip_new_user_tips will automatically update the list of seen popups accordingly.
11 lines
165 B
Ruby
11 lines
165 B
Ruby
# frozen_string_literal: true
|
|
|
|
class OnboardingPopup
|
|
def self.types
|
|
@types ||= Enum.new(
|
|
first_notification: 1,
|
|
topic_timeline: 2,
|
|
)
|
|
end
|
|
end
|