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
Resolve the messages-plugin refactor (main split App.vue/MessagesView.vue into
MessageList/MessageDetail/MessageFilterBar + useMessageFilters and removed
src/types.ts): re-apply the message->dock navigation onto the new components —
canActivate probe + onActivate in App.vue, threaded through MessagesView to the
new MessageDetail, which renders the action buttons. Types now come from
@devframes/hub/types. Regenerate the tsnapi API snapshots against the merged
build.
Copy file name to clipboardExpand all lines: docs/guide/when-clauses.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,24 @@ ctx.docks.register({
40
40
41
41
`when: 'false'` hides an entry unconditionally.
42
42
43
+
### Render-only visibility on dock entries
44
+
45
+
A dock entry also takes `visibility`, a second expression in the same syntax that hides only the entry's own dock-bar button, leaving the entry registered and reachable — `docks.activate()`/`switchEntry()` by id, RPC lookups, and anything else that walks the raw entry list keep working. `when` remains the general relevance switch for the entry as a whole; reach for `visibility` only when an entry must stay in the model without a button of its own.
46
+
47
+
The canonical case is a shared-frame anchor (`subTabs`): the anchor iframe must stay registered to keep driving the postMessage nav loop, but only its synthesized member tabs should render as dock-bar buttons.
48
+
49
+
```ts
50
+
ctx.docks.register({
51
+
id: 'my-devtool:anchor',
52
+
title: 'My Devtool',
53
+
type: 'iframe',
54
+
icon: 'ph:squares-four-duotone',
55
+
url: '/__my-devtool/',
56
+
subTabs: { protocol: 'postmessage' },
57
+
visibility: 'false', // hide the anchor's own button; its tabs still render
0 commit comments