Skip to content

Commit

Permalink
[shared-ui] Add the ability to edit board info (#3926)
Browse files Browse the repository at this point in the history
  • Loading branch information
paullewis authored Dec 4, 2024
1 parent 6ed34ad commit 35f2299
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 687 deletions.
6 changes: 6 additions & 0 deletions .changeset/wicked-mirrors-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@breadboard-ai/visual-editor": patch
"@breadboard-ai/shared-ui": patch
---

Add the ability to edit boards
341 changes: 0 additions & 341 deletions packages/shared-ui/src/elements/board-details/board-details.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/shared-ui/src/elements/elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ export { ActivityLogLite } from "./activity-log/activity-log-lite.js";
export { ArrayEditor } from "./input/array/array-editor.js";
export { BoardActivity } from "./board-activity/board-activity.js";
export { BoardActivityOverlay } from "./overlay/board-activity.js";
export { BoardDetails } from "./board-details/board-details.js";
export { BoardDetailsOverlay } from "./overlay/board-details.js";
export { BoardEditOverlay } from "./overlay/board-edit.js";
export { BoardSelector } from "./input/board-selector/board-selector.js";
export { BoardServerOverlay } from "./overlay/provider.js";
export { CapabilitiesSelector } from "./capabilities-selector/capabilities-selector.js";
Expand Down
4 changes: 4 additions & 0 deletions packages/shared-ui/src/elements/overlay/board-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const OVERLAY_CLEARANCE = 20;

@customElement("bb-board-details-overlay")
export class BoardDetailsOverlay extends LitElement {
@property()
tabId: string | null = null;

@property()
boardTitle: string | null = null;

Expand Down Expand Up @@ -435,6 +438,7 @@ export class BoardDetailsOverlay extends LitElement {
const data = new FormData(this.#formRef.value);
this.dispatchEvent(
new BoardInfoUpdateEvent(
this.tabId,
data.get("title") as string,
data.get("version") as string,
data.get("description") as string,
Expand Down
Loading

0 comments on commit 35f2299

Please sign in to comment.