Skip to content

Commit 78bf2e6

Browse files
committed
chore: add review request
1 parent d73fe67 commit 78bf2e6

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/hub-ui/src/client/state/branding.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function readQueryParams(): DevframeBranding {
168168
* and return it. Called once the RPC client is connected, before the dock
169169
* element mounts, so branding is applied on the first paint.
170170
*/
171+
// TODO: remove this, the branding would only be provided by the connection meta, which has its own propagation methods, no globals or queryies anymore.
171172
export function resolveBranding(options: {
172173
mode: 'embedded' | 'standalone'
173174
branding?: DevframeBranding

packages/hub/src/node/initiate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export interface DevframeHubUi {
134134
* connection handshake they already perform, in place of a separate
135135
* fetched asset.
136136
*/
137+
// TODO: rename to "configs"
137138
settings?: () => Record<string, unknown>
138139
}
139140

packages/hub/src/node/install-devframe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export async function installDevframe(
9797
// are this devframe's opinion about the hub-wide dock bar, not attributes
9898
// of its own synthesized entry — pull them out before spreading the rest
9999
// into the entry and fold them into the hub's aggregate instead.
100+
// TODO: rework this, instead of contributeDockConfig, we should have the APIs for configuring the connection meta's configs object
100101
const { categoryOrder, maxVisibleItems, defaultMode, defaultPosition, ...entryDockDefaults } = d.dock ?? {}
101102
if (categoryOrder || maxVisibleItems !== undefined || defaultMode !== undefined || defaultPosition !== undefined) {
102103
ctx.docks.contributeDockConfig({ categoryOrder, maxVisibleItems, defaultMode, defaultPosition })

packages/hub/src/types/docks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface DevframeDocksHost {
2828
'dock:entry:updated': (entry: DevframeDockUserEntry) => void
2929
'dock:activate': (activation: DevframeDockActivation) => void
3030
}>
31+
// TODO: remove this, it doesn't need to be exposed in DevframeDocksHost
3132
/** The aggregate dock-bar config collected from every installed devframe so far. */
3233
readonly dockConfig: DevframeDockConfig
3334
/**
@@ -37,6 +38,7 @@ export interface DevframeDocksHost {
3738
* `defaultMode` / `defaultPosition`. Last caller wins per scalar key;
3839
* `categoryOrder` shallow-merges over what's already aggregated.
3940
*/
41+
// TODO: remove this, it doesn't need to be exposed in DevframeDocksHost
4042
contributeDockConfig: (config: DevframeDockConfig) => void
4143

4244
register: <T extends DevframeDockUserEntry>(entry: T, force?: boolean) => {

0 commit comments

Comments
 (0)