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:
Bianca Nenciu
2022-11-15 17:36:08 +02:00
committed by GitHub
parent f90a8438e9
commit ac272c041e
17 changed files with 240 additions and 4 deletions

View File

@@ -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