Skip to content

factory: a canvas made in an organization workstream belongs to it (film D11) - #2659

Merged
santoshkumarradha merged 2 commits into
work/teamsfrom
d11/org-canvas
Nov 16, 2026
Merged

santoshkumarradha merged 2 commits into
work/teamsfrom
d11/org-canvas

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

Teams film D11: New canvas inside a team's org workstream made the person's own private canvas, so the team never saw it.

What changes

  • An org canvas can belong to an org workstream (OrgCanvas.Workstream). POST /v1/canvases {workstream} / engine factory.org_canvas_create {workstream} makes it there; hello word org_workstream_canvases.
  • Access follows the workstream, live: owner, shares and Private are the workstream's as they stand now (canvas's own shares only add). A share added to the workstream later reaches its canvases. Every access check goes through h.canvasItem(c).
  • Permission: putting a canvas in a workstream needs edit on it. View-only → 403 and nothing is made; not shared → 404; archived → 409. owner/shares/private beside workstream → 400.
  • PATCH /v1/canvases/{id} {workstream} moves one in, or "" takes it out (full on the canvas). Canvas rows name workstream; that is how the workstream's Canvases tab lists them.
  • PROTOCOL.md and a change entry updated. No internal/manual/chat page describes org canvases, so none changed.

Tests

  • TestACanvasMadeInATeamWorkstreamIsTheTeams: santosh makes it in a Platform workstream; abir (Platform) lists it with workstream and writes in it; mia doesn't see it until the workstream is shared with her as view, and then reads but can't write.
  • TestAViewerCannotPutACanvasInAWorkstream: view-only member gets 403 and nothing is made; outsider 404; private beside workstream 400; PATCH move refused to a viewer, allowed once they can edit.
  • TestOrgCanvasInAWorkstreamForwardsTheWorkstream: engine forwards workstream on create and update, and announces the hello word.
  • Server tests run against real canvas-core (CODEAF_CANVAS_BIN).

Desk side: Agent-Field/codeaf-desk (work/rail-personal), linked in a comment.

🤖 Generated with Claude Code

santoshkumarradha and others added 2 commits November 16, 2026 09:32
…ilm D11)

New canvas inside a team's workstream made the person's own canvas, so the
team never saw it. A canvas can now belong to an organization workstream:
POST /v1/canvases {workstream} (engine factory.org_canvas_create workstream,
hello word org_workstream_canvases) makes it there, and it is reached the
way the workstream is, its owner, shares and Private as they stand now, so
a share added to the workstream later reaches its canvases too.

Putting a canvas in a workstream needs edit on the workstream: a viewer is
refused 403 and nothing is made. PATCH /v1/canvases/{id} {workstream} moves
one in or ("") out. Canvas rows name their workstream.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>
@santoshkumarradha
santoshkumarradha merged commit 9d661a2 into work/teams Nov 16, 2026
1 check passed
@santoshkumarradha
santoshkumarradha deleted the d11/org-canvas branch November 16, 2026 16:14
ZeroPoint95 pushed a commit that referenced this pull request Nov 24, 2026
…ilm D11) (#2659)

* factory: a canvas made in an organization workstream belongs to it (film D11)

New canvas inside a team's workstream made the person's own canvas, so the
team never saw it. A canvas can now belong to an organization workstream:
POST /v1/canvases {workstream} (engine factory.org_canvas_create workstream,
hello word org_workstream_canvases) makes it there, and it is reached the
way the workstream is, its owner, shares and Private as they stand now, so
a share added to the workstream later reaches its canvases too.

Putting a canvas in a workstream needs edit on the workstream: a viewer is
refused 403 and nothing is made. PATCH /v1/canvases/{id} {workstream} moves
one in or ("") out. Canvas rows name their workstream.

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>

* docs: name the D11 change entry after its pull request

Assisted-by: CodeAF
Co-Authored-By: CodeAF <[email protected]>

---------

Co-authored-by: CodeAF <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant