Skip to content

Commit 6a5f060

Browse files
author
Joshua Chittick
committed
refactor: align Lark settings titles with Slack layout
Update General card section labels and make Channel card start with Coding Agent, then group execution fields to match Slack-style wording and structure.
1 parent 5c6c79b commit 6a5f060

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

packages/ims/lark/settings.ts

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,11 @@ export function buildLarkSettingsDetailCard(params: {
173173
elements.push(
174174
{
175175
tag: "markdown",
176-
content: [
177-
`- Status format: \`${general.defaultStatusMessageFormat}\``,
178-
`- Status frequency: \`${general.statusMessageFrequencyMs / 1000}s\``,
179-
`- Git strategy: \`${general.gitStrategy}\``,
180-
`- Auto update: \`${boolText(general.autoUpdate)}\``,
181-
].join("\n"),
176+
content: "General",
182177
},
183178
{
184179
tag: "markdown",
185-
content: "Status format",
180+
content: `Status message format\nCurrent: \`${general.defaultStatusMessageFormat}\``,
186181
},
187182
{
188183
tag: "action",
@@ -205,7 +200,7 @@ export function buildLarkSettingsDetailCard(params: {
205200
},
206201
{
207202
tag: "markdown",
208-
content: "Status frequency",
203+
content: `Status message frequency\nCurrent: \`${general.statusMessageFrequencyMs / 1000}s\``,
209204
},
210205
{
211206
tag: "action",
@@ -228,7 +223,7 @@ export function buildLarkSettingsDetailCard(params: {
228223
},
229224
{
230225
tag: "markdown",
231-
content: "Git strategy",
226+
content: `Git strategy\nCurrent: \`${general.gitStrategy}\``,
232227
},
233228
{
234229
tag: "action",
@@ -251,7 +246,7 @@ export function buildLarkSettingsDetailCard(params: {
251246
},
252247
{
253248
tag: "markdown",
254-
content: "Auto update",
249+
content: `Auto update\nCurrent: \`${boolText(general.autoUpdate)}\``,
255250
},
256251
{
257252
tag: "action",
@@ -358,18 +353,11 @@ export function buildLarkSettingsDetailCard(params: {
358353
: []),
359354
{
360355
tag: "markdown",
361-
content: [
362-
`- Channel: \`${channelId}\``,
363-
`- Provider: \`${provider}\``,
364-
`- Model: \`${model}\``,
365-
`- Working directory: \`${cwd}\``,
366-
`- Base branch: \`${baseBranch}\``,
367-
`- Channel system message: ${systemMessage}`,
368-
].join("\n"),
356+
content: "Coding Agent",
369357
},
370358
{
371359
tag: "markdown",
372-
content: "Provider",
360+
content: `Provider\nCurrent: \`${provider}\``,
373361
},
374362
{
375363
tag: "action",
@@ -387,7 +375,7 @@ export function buildLarkSettingsDetailCard(params: {
387375
},
388376
{
389377
tag: "markdown",
390-
content: "Model",
378+
content: `Model\nCurrent: \`${model}\``,
391379
},
392380
{
393381
tag: "action",
@@ -407,7 +395,11 @@ export function buildLarkSettingsDetailCard(params: {
407395
},
408396
{
409397
tag: "markdown",
410-
content: "Working directory",
398+
content: "Execution",
399+
},
400+
{
401+
tag: "markdown",
402+
content: `Working directory\nCurrent: \`${cwd}\``,
411403
},
412404
{
413405
tag: "input",
@@ -417,7 +409,7 @@ export function buildLarkSettingsDetailCard(params: {
417409
},
418410
{
419411
tag: "markdown",
420-
content: "Base branch",
412+
content: `Base branch\nCurrent: \`${baseBranch}\``,
421413
},
422414
{
423415
tag: "input",
@@ -427,7 +419,7 @@ export function buildLarkSettingsDetailCard(params: {
427419
},
428420
{
429421
tag: "markdown",
430-
content: "Channel system message",
422+
content: `System message\nCurrent: ${systemMessage}`,
431423
},
432424
{
433425
tag: "input",

0 commit comments

Comments
 (0)