Skip to content

Stop starter-pack and other card descriptions from overflowing their…#359

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 28, 2026
Merged

Stop starter-pack and other card descriptions from overflowing their…#359
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Stop starter-pack and other card descriptions from overflowing their cards. The "Codebase wiki" starter pack and the slash-command MirrorSource / Mirror block previews had descriptions long enough to wrap to many lines and stretch their cards; those are now concise. The description text on the starter-pack picker, the slash-command block preview, the Navigator project-launcher cards, and the share-receive dialog is now line-clamped, so any long description truncates cleanly instead of distorting the layout.

* fix: fit pack and UI card descriptions to ~2 lines

Long card descriptions overflowed their cards. Shorten the codebase-wiki
starter pack and the slash-command MirrorSource/Mirror block previews, and
line-clamp the description text on the starter-pack picker, slash-command
preview, Navigator launcher cards, and share-receive dialog so any long
description truncates cleanly. Add a registry test capping pack descriptions
to the picker two-line budget. Regenerate Lingui catalogs.

* test: cap slash-command preview descriptions at the line-clamp-3 budget

Mirrors the STARTER_PACKS 64-char budget test for the slash-command
PREVIEW_CONFIG descriptions (line-clamped to 3 lines in SlashCommandMenu).
Asserts each resolved preview.description from getComponentItems() is
<= 120 chars, with a guard against a false green if resolution stops
yielding strings. Addresses the review's consistency suggestion.

* fix: drop redundant owner/repo from the share-receive clone card

The clone-card description repeated the owner/repo that the dialog header
already shows in full (the Repository metadata row) and restated the card
title's action — and that interpolated value was the only thing that
overflowed for long repo names. Make it a short static line, parallel to
the local card ('Pick the folder where you've cloned it.'); line-clamp-2
stays as a backstop. Removes the now-unused shareOwner/shareRepo consts.

GitOrigin-RevId: 2f1ff5cf0220e6b6ffa6442920f2b7e3cccf1d3e

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28316078595). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit 255b35b into main Jun 28, 2026
2 checks passed
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch June 28, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant