From e3e758f7bac07cc835647c8fedf34586844407d4 Mon Sep 17 00:00:00 2001
From: Bauke
Date: Sun, 27 Feb 2022 15:37:11 +0100
Subject: [PATCH] Create the dedicated User Label Editor (#1).
---
source/options/components/user-labels.ts | 4 +
source/options/user-label-editor.html | 22 +++
source/options/user-label-editor.ts | 241 +++++++++++++++++++++++
source/scss/_button.scss | 21 ++
source/scss/_settings.scss | 20 +-
source/scss/index.scss | 4 +-
source/scss/user-label-editor.scss | 74 +++++++
vite.config.ts | 1 +
8 files changed, 367 insertions(+), 20 deletions(-)
create mode 100644 source/options/user-label-editor.html
create mode 100644 source/options/user-label-editor.ts
create mode 100644 source/scss/_button.scss
create mode 100644 source/scss/user-label-editor.scss
diff --git a/source/options/components/user-labels.ts b/source/options/components/user-labels.ts
index c0ea2c8..2731ee4 100644
--- a/source/options/components/user-labels.ts
+++ b/source/options/components/user-labels.ts
@@ -10,6 +10,10 @@ export function UserLabelsSetting(props: SettingProps): TRXComponent {
person's profile is available, a [+] will be put next to
it. Clicking on that will bring up a dialog to add a new label and
clicking on existing labels will bring up the same dialog to edit them.
+
+ Or you can use the dedicated${' '}
+ User Label Editor
+ to add, edit, or remove user labels.
+ To add a new label, enter the username for who you'd like to add the
+ label for, then press the Add New Label button.
+
+ Changes are not automatically saved!
+
+ If there are any unsaved changes an asterisk will appear in the Save
+ All Changes button. To undo all unsaved changes simply refresh the
+ page.
+