mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add user tips for post and topic features (#18964)
* DEV: Add utility to hide all user tips * DEV: Add UserTip Glimmer component * DEV: Add tests for existing user tips * FEATURE: Add user tip for post menu * FEATURE: Add user tip for topic notification level * FEATURE: Add user tip for suggested topics * FEATURE: Hide new popups for existing users
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class HideUserTips3To5ForExistingUsers < ActiveRecord::Migration[7.0]
|
||||
def up
|
||||
execute "UPDATE user_options SET seen_popups = seen_popups || '{3, 4, 5}'"
|
||||
end
|
||||
|
||||
def down
|
||||
execute "UPDATE user_options SET seen_popups = array_remove(array_remove(array_remove(seen_popups, 3), 4), 5)"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user