You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch the user interface for searching and managing your module catalog.
12
14
@@ -102,3 +104,86 @@ This section describes behavior that is only available when the [`catalog-redesi
102
104
</Aside>
103
105
104
106
The list view is split into three tabs: `All`, `Modules`, and `Templates`. `All` is selected when the TUI launches. Press `tab` to move to the next tab and `shift+tab` to move to the previous; cycling wraps at either end. The active tab filters the list down to components of that kind, and each tab keeps its own cursor position and search filter, so switching back preserves where you were.
This section describes behavior that is only available when the [`catalog-redesign`](/reference/experiments/active#catalog-redesign) experiment is enabled.
112
+
</Aside>
113
+
114
+
Component authors can override the catalog UI's default title and description by adding a YAML block at the top of the component's `README.md`. Two forms are accepted.
115
+
116
+
The conventional dash-separated form:
117
+
118
+
```markdown
119
+
---
120
+
name: VPC App
121
+
description: A VPC for application workloads.
122
+
---
123
+
124
+
# VPC App
125
+
126
+
...
127
+
```
128
+
129
+
An HTML-comment-wrapped form, which stays invisible on Markdown viewers that render dash-separated front-matter as a horizontal rule. The opening tag must be `<!-- Frontmatter` (case-insensitive):
130
+
131
+
```markdown
132
+
<!-- Frontmatter
133
+
name: VPC App
134
+
description: A VPC for application workloads.
135
+
-->
136
+
137
+
# VPC App
138
+
139
+
...
140
+
```
141
+
142
+
Both forms are parsed the same way.
143
+
144
+
Recognized keys:
145
+
146
+
-`name`: the component title shown in the list view. When unset, the title falls back to the first `# H1` heading in the README, then to the directory name.
147
+
-`description`: the short description shown beneath the title in the list view. When unset, it is derived from the README body.
148
+
149
+
A third key, `tags`, controls the colored pills shown next to each component; see the next section. Unknown keys are ignored.
This section describes behavior that is only available when the [`catalog-redesign`](/reference/experiments/active#catalog-redesign) experiment is enabled.
155
+
</Aside>
156
+
157
+
<Beforeversion="1.0.4">
158
+
159
+
In a future release, the catalog UI will read tag information from the front-matter of component `README.md` files.
160
+
161
+
</Before>
162
+
163
+
<Sinceversion="1.0.4">
164
+
165
+
Catalog authors can attach tags to a component by adding a `tags` key to the component's `README.md` front-matter. Tags appear as colored pills next to the component in the list view, and as a row above the rendered README in the detail view.
166
+
167
+
Either inline-array or dash-list YAML form is accepted:
168
+
169
+
```markdown
170
+
<!-- Frontmatter
171
+
name: VPC App
172
+
description: A VPC for application workloads.
173
+
tags: [networking, aws, module]
174
+
-->
175
+
```
176
+
177
+
```markdown
178
+
<!-- Frontmatter
179
+
name: VPC App
180
+
tags:
181
+
- networking
182
+
- aws
183
+
- module
184
+
-->
185
+
```
186
+
187
+
Tag values that name a component type also promote the component into that type's tab. For example, a component classified as a `template` whose tags include `module` appears under both the `Templates` tab (by its native kind) and the `Modules` tab (by tag), without changing how it's scaffolded.
The `catalog-redesign` experiment now reads a `tags` field from the component's `README.md` front-matter. Tags appear as colored pills next to the component in the list view and in the detail view above the rendered README.
9
+
10
+
```markdown
11
+
<!-- Frontmatter
12
+
name: VPC App
13
+
description: A VPC for application workloads.
14
+
tags: [networking, aws, module]
15
+
-->
16
+
```
17
+
18
+
Either inline-array or dash-list YAML form is accepted. Tags render in gray by default. When a tag matches a known component-type name (`module`, `template`, `unit`, or `stack`, case-insensitive), the pill takes on that type's color.
19
+
20
+
A tag matching a component-type name also promotes the component into that type's tab. A `template` whose tags include `module` appears under both `Templates` (by its native kind) and `Modules` (by tag), without changing how it scaffolds.
21
+
22
+
To learn more, see [Component tags](/features/catalog/tui#component-tags).
0 commit comments