Commit e92ae8c
authored
Add description field for tag (#8418)
#### What type of PR is this?
/kind feature
/kind api-change
#### What this PR does / why we need it:
This PR adds a `description` field to tag metadata, aligning tags with categories.
Changes included:
- add `description` to `Tag.TagSpec`
- update OpenAPI docs so the new field is exposed in the API schema
- add description field support in the tag editing modal
- update api-client typings for `TagSpec` accordingly
This allows users to store and edit a description for article tags in the console.
#### Which issue(s) this PR fixes:
Fixes #8054
#### Special notes for your reviewer:
#### Does this PR introduce a user-facing change?
```release-note
为文章标签添加描述字段
```1 parent 9033ed1 commit e92ae8c
13 files changed
Lines changed: 68 additions & 23 deletions
File tree
- api-docs/openapi/v3_0
- api/src/main/java/run/halo/app/core/extension/content
- application/src/main/java/run/halo/app/theme/router/factories
- ui
- console-src/modules/contents/posts/tags/components
- packages/api-client/src/models
- src/locales
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20674 | 20674 | | |
20675 | 20675 | | |
20676 | 20676 | | |
20677 | | - | |
20678 | 20677 | | |
20679 | 20678 | | |
20680 | 20679 | | |
20681 | 20680 | | |
20682 | | - | |
| 20681 | + | |
| 20682 | + | |
20683 | 20683 | | |
20684 | 20684 | | |
20685 | 20685 | | |
| |||
22491 | 22491 | | |
22492 | 22492 | | |
22493 | 22493 | | |
22494 | | - | |
22495 | 22494 | | |
22496 | 22495 | | |
22497 | 22496 | | |
22498 | 22497 | | |
22499 | | - | |
| 22498 | + | |
| 22499 | + | |
22500 | 22500 | | |
22501 | 22501 | | |
22502 | 22502 | | |
| |||
23010 | 23010 | | |
23011 | 23011 | | |
23012 | 23012 | | |
| 23013 | + | |
| 23014 | + | |
| 23015 | + | |
23013 | 23016 | | |
23014 | 23017 | | |
23015 | 23018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5487 | 5487 | | |
5488 | 5488 | | |
5489 | 5489 | | |
5490 | | - | |
5491 | 5490 | | |
5492 | 5491 | | |
5493 | 5492 | | |
5494 | 5493 | | |
5495 | | - | |
| 5494 | + | |
| 5495 | + | |
5496 | 5496 | | |
5497 | 5497 | | |
5498 | 5498 | | |
| |||
6029 | 6029 | | |
6030 | 6030 | | |
6031 | 6031 | | |
6032 | | - | |
6033 | 6032 | | |
6034 | 6033 | | |
6035 | 6034 | | |
6036 | 6035 | | |
6037 | | - | |
| 6036 | + | |
| 6037 | + | |
6038 | 6038 | | |
6039 | 6039 | | |
6040 | 6040 | | |
| |||
6211 | 6211 | | |
6212 | 6212 | | |
6213 | 6213 | | |
| 6214 | + | |
| 6215 | + | |
| 6216 | + | |
6214 | 6217 | | |
6215 | 6218 | | |
6216 | 6219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12876 | 12876 | | |
12877 | 12877 | | |
12878 | 12878 | | |
12879 | | - | |
12880 | 12879 | | |
12881 | 12880 | | |
12882 | 12881 | | |
12883 | 12882 | | |
12884 | | - | |
| 12883 | + | |
| 12884 | + | |
12885 | 12885 | | |
12886 | 12886 | | |
12887 | 12887 | | |
| |||
14256 | 14256 | | |
14257 | 14257 | | |
14258 | 14258 | | |
14259 | | - | |
14260 | 14259 | | |
14261 | 14260 | | |
14262 | 14261 | | |
14263 | 14262 | | |
14264 | | - | |
| 14263 | + | |
| 14264 | + | |
14265 | 14265 | | |
14266 | 14266 | | |
14267 | 14267 | | |
| |||
14676 | 14676 | | |
14677 | 14677 | | |
14678 | 14678 | | |
| 14679 | + | |
| 14680 | + | |
| 14681 | + | |
14679 | 14682 | | |
14680 | 14683 | | |
14681 | 14684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2636 | 2636 | | |
2637 | 2637 | | |
2638 | 2638 | | |
2639 | | - | |
2640 | 2639 | | |
2641 | 2640 | | |
2642 | 2641 | | |
2643 | 2642 | | |
2644 | | - | |
| 2643 | + | |
| 2644 | + | |
2645 | 2645 | | |
2646 | 2646 | | |
2647 | 2647 | | |
| |||
3216 | 3216 | | |
3217 | 3217 | | |
3218 | 3218 | | |
3219 | | - | |
3220 | 3219 | | |
3221 | 3220 | | |
3222 | 3221 | | |
3223 | 3222 | | |
3224 | | - | |
| 3223 | + | |
| 3224 | + | |
3225 | 3225 | | |
3226 | 3226 | | |
3227 | 3227 | | |
| |||
3367 | 3367 | | |
3368 | 3368 | | |
3369 | 3369 | | |
| 3370 | + | |
| 3371 | + | |
| 3372 | + | |
3370 | 3373 | | |
3371 | 3374 | | |
3372 | 3375 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2557 | 2557 | | |
2558 | 2558 | | |
2559 | 2559 | | |
2560 | | - | |
2561 | 2560 | | |
2562 | 2561 | | |
2563 | 2562 | | |
2564 | 2563 | | |
2565 | | - | |
| 2564 | + | |
| 2565 | + | |
2566 | 2566 | | |
2567 | 2567 | | |
2568 | 2568 | | |
| |||
2893 | 2893 | | |
2894 | 2894 | | |
2895 | 2895 | | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
2896 | 2899 | | |
2897 | 2900 | | |
2898 | 2901 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
256 | 269 | | |
257 | 270 | | |
258 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
0 commit comments