Skip to content

Commit 2a59d1c

Browse files
committed
Improve UI labels
- Use sentence case consistently - Avoid ! and . - Remove "please" where not necessary - Add guidelines
1 parent 238c1b8 commit 2a59d1c

File tree

2 files changed

+36
-20
lines changed

2 files changed

+36
-20
lines changed

webapp/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
# Framework document
3+
34
1. Semi UI: https://semi.design/en-US
45
- If you want to customize the theme, you can view https://semi.design/dsm/landing
56
2. Vite: https://vitejs.dev/
@@ -8,13 +9,15 @@
89
5. Echarts: https://echarts.apache.org/
910

1011
# Development
12+
1113
```
1214
pnpm install
1315
pnpm run dev
1416
pnpm run build
1517
```
1618

1719
# Package
20+
1821
```
1922
# If you want the web to start with the project, you can execute
2023
./mvnw clean install
@@ -24,3 +27,16 @@ cd ./webapp
2427
pnpm install
2528
pnpm run build
2629
```
30+
31+
# Guidelines
32+
33+
The UI follows the [Material Design guidelines](https://m3.material.io/). The following items are specific call outs:
34+
35+
* Use sentence case in labels, buttons, and other UI elements
36+
* Avoid "please" and other filler words.
37+
* Write for a global user base
38+
* Avoid abbreviations.
39+
* Use second person "You ...".
40+
41+
More information is available with the [content design](https://m3.material.io/foundations/content-design/overview)
42+
and other guides.

webapp/src/locales/en_US.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
const en_US = {
22
Error: {
3-
Network: "The network has wandered off, please try again later!",
3+
Network: "The network has wandered off, try again later",
44
},
55
Dashboard: {
66
QPH: "QPH",
7-
QPHTip: "The number of queries in the past hour.",
8-
QPS: "Avg. QPS",
9-
QPSTip: "Average number of queries per second in the past hour.",
10-
QPM: "Avg. QPM",
11-
QPMTip: "Average number of queries per minute in the past hour.",
7+
QPHTip: "The number of queries in the past hour",
8+
QPS: "Average QPS",
9+
QPSTip: "Average number of queries per second in the past hour",
10+
QPM: "Average QPM",
11+
QPMTip: "Average number of queries per minute in the past hour",
1212
Backends: "Backends",
13-
BackendsOffline: "Backends Offline",
14-
BackendsOnline: "Backends Online",
15-
StartTime: "Started At",
13+
BackendsOffline: "Backends offline",
14+
BackendsOnline: "Backends online",
15+
StartTime: "Started at",
1616
Summary: "Summary",
17-
QueryDistribution: "Query Distribution in last hour.",
18-
QueryCount: "Query Count",
17+
QueryDistribution: "Query distribution in last hour",
18+
QueryCount: "Query count",
1919
},
2020
History: {
21-
RoutedToTip: "Default All",
22-
QueryIdTip: "Default All",
21+
RoutedToTip: "Default all",
22+
QueryIdTip: "Default all",
2323
},
2424
Menu: {
2525
Header: {
@@ -30,9 +30,9 @@ const en_US = {
3030
Dashboard: "Dashboard",
3131
Cluster: "Cluster",
3232
History: "History",
33-
ResourceGroup: "Resource Group",
33+
ResourceGroup: "Resource group",
3434
Selector: "Selector",
35-
RoutingRules: "Routing Rules"
35+
RoutingRules: "Routing rules"
3636
}
3737
},
3838
Auth: {
@@ -47,15 +47,15 @@ const en_US = {
4747
PasswordTip: "Input password",
4848
UsernameTip: "Input username",
4949
Login: "Sign in",
50-
OAuth2: "Sign in with External Authentication",
50+
OAuth2: "Sign in with external authentication",
5151
NoneAuthTip: "Password not allowed",
52-
LoginSuccess: "Login Success",
52+
LoginSuccess: "Login success",
5353
Expiration: "Login has expired, please log in again",
54-
LogoutSuccess: "Logout Success",
54+
LogoutSuccess: "Logout success",
5555
},
5656
Copy: {
5757
Success: "Copied to clipboard",
58-
Failed: "Copy failed, please grant permission to access clipboard",
58+
Failed: "Copy failed, grant permission to access the clipboard",
5959
},
6060
UI: {
6161
Confirm: "Confirm",
@@ -65,7 +65,7 @@ const en_US = {
6565
Edit: "Edit",
6666
Delete: "Delete",
6767
DeleteTitle: "Are you sure you want to delete?",
68-
DeleteContent: "Once deleted, it cannot be recovered!",
68+
DeleteContent: "Once deleted, it cannot be recovered",
6969
Query: "Query",
7070
},
7171
};

0 commit comments

Comments
 (0)