Files
tolaria/design/hide-backlinks-empty.pen
Luca Rossi 1c2f0ee193 fix: hide empty Backlinks, Relations, and Referenced By sections (#99)
* fix: hide empty backlinks, referenced-by, and relations sections

When a note has no backlinks, referenced-by entries, or relations,
the corresponding inspector sections are now completely hidden instead
of showing "No backlinks" / "No references" / "No relationships" labels.
This keeps the inspector clean and focused on actual content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* design: add before/after mockup for hide-backlinks-empty

Shows inspector panel comparison: cluttered empty state labels (before)
vs clean hidden sections (after).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* design: add before/after wireframes for hide-backlinks-empty

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 20:14:54 +01:00

65 lines
1.6 KiB
Plaintext

{
"children": [
{
"type": "frame",
"id": "hideBacklinksEmpty_before",
"x": 0,
"y": 0,
"name": "Hide Empty Backlinks Label — Before (shows No backlinks label)",
"width": 280,
"height": 80,
"fill": "#ffffff",
"gap": 4,
"padding": 12,
"alignItems": "flex-start",
"children": [
{
"type": "text",
"id": "bl_header_before",
"name": "section-header",
"fill": "#6b7280",
"content": "Backlinks",
"fontFamily": "Inter",
"fontSize": 10,
"fontWeight": "600",
"letterSpacing": 1.2
},
{
"type": "text",
"id": "bl_empty_before",
"name": "empty-label",
"fill": "#9ca3af",
"content": "No backlinks",
"fontFamily": "Inter",
"fontSize": 12,
"fontWeight": "normal"
}
]
},
{
"type": "frame",
"id": "hideBacklinksEmpty_after",
"x": 320,
"y": 0,
"name": "Hide Empty Backlinks Label — After (section hidden when empty)",
"width": 280,
"height": 80,
"fill": "#ffffff",
"gap": 4,
"padding": 12,
"alignItems": "flex-start",
"children": [
{
"type": "text",
"id": "bl_note_after",
"name": "note",
"fill": "#9ca3af",
"content": "(Backlinks, Referenced By, and Relations sections are hidden when empty — no placeholder label shown)",
"fontFamily": "Inter",
"fontSize": 11,
"fontWeight": "normal"
}
]
}
]
}