FEATURE: Add attribution to staff notice and rename functionality (#30920)

The name "Staff Notice" was not quite right since TL4 users
can also add these notices. This commit changes the wording to
"Official Notice".

In addition to this, currently you have to go look into the staff
action logs to see who is responsible for a notice. This commit
stores the ID of the user who created the notice, then shows this
information on each notice to staff users.

Finally, I migrated the ChangePostNoticeModal component to gjs.
This commit is contained in:
Martin Brennan
2025-01-24 09:29:22 +10:00
committed by GitHub
parent 692fccb0d9
commit 1b9e2ff4f9
16 changed files with 308 additions and 121 deletions

View File

@@ -108,7 +108,7 @@ describe "Post menu", type: :system do
expect(topic_page).to have_post_action_button(post2, :admin)
end
it "displays the admin button when the user can wiki the post / edit staff notices" do
it "displays the admin button when the user can wiki the post / edit official notices" do
# display the admin button when the user can wiki
sign_in(Fabricate(:trust_level_4))