feat: compact (reading) view for TestMeta block#68
Merged
Conversation
Render the test/suite metadata block as a single truncated one-liner by default (e.g. `priority: high · tags: smoke, login`), with an expand/collapse chevron pinned to the far right. Expanding reveals the full editable key/value rows and the add-field button; collapsing returns to the summary line. - A block with no readable fields starts expanded so it is immediately editable. - Clicking the one-liner (or the chevron) expands it; the summary ellipsizes when it overflows the header. - `expanded` is UI-only local state — the markdown serialization is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Deploying blocks with
|
| Latest commit: |
afc8881
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cd80b9f8.blocks-cno.pages.dev |
| Branch Preview URL: | https://feat-testmeta-compact.blocks-cno.pages.dev |
The collapsed one-liner now lists only fields that have a value; keys with empty values are an editing-only concern and are shown only in the expanded rows. A block with no valued fields starts expanded so the summary is never misleadingly empty. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a compact / reading view to the TestMeta (
test/suitemetadata) block. By default the block now renders its data as a single truncated one-liner with an expand/collapse chevron pinned to the far right; expanding reveals the full editable key/value rows.Before: the block always showed every field as a stacked editable row.
After:
TEST @T12345678 priority: high · type: regression · tags: smoke, login · … [⌄]— click the chevron (or the summary) to expand into the full editable rows + add-field button.Behaviour
titleattribute shows the full text on hover).expandedis UI-only local state — the markdown serialization is untouched, so round-tripping<!-- test … -->comments is unchanged.Testing
tsc -bclean; all 166 unit tests pass (incl. the TestMeta serializer tests).Note
Based on
feat/block-test-meta(where the TestMeta block lives — it isn't onmasteryet), so this PR contains only the compact-mode diff. Retarget tomasterif you'd rather land the block + compact view together.🤖 Generated with Claude Code