Skip to content

Conversation

@nielslyngsoe
Copy link
Member

Set up an example of how a Workspace Context could be used to set an initial name for newly created Documents.

Copilot AI review requested due to automatic review settings November 19, 2025 16:09
@nielslyngsoe nielslyngsoe enabled auto-merge (squash) November 19, 2025 16:09
Copilot finished reviewing on behalf of nielslyngsoe November 19, 2025 16:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a front-end example demonstrating how to use a Workspace Context to automatically set an initial name for newly created Documents in the Umbraco backoffice.

Key Changes:

  • Adds a new workspace context that monitors document creation and sets a default name with current date
  • Implements the context with proper lifecycle management using the workspace loading state
  • Provides documentation on workspace context usage patterns

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts Core implementation of the workspace context that observes document workspace and sets initial name when a new document is created
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/index.ts Extension manifest that registers the workspace context for Document workspaces
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/README.md Documentation explaining the purpose of the example

nielslyngsoe and others added 4 commits November 19, 2025 17:25
…ame/workspace-context.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ame/workspace-context.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ame/workspace-context.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ame/workspace-context.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nielslyngsoe nielslyngsoe added area/frontend release/no-notes Not directly part of the release (updating README, build scripts, tests, etc.) labels Nov 19, 2025
@nielslyngsoe nielslyngsoe merged commit ea840bc into main Nov 24, 2025
28 checks passed
@nielslyngsoe nielslyngsoe deleted the v17/improvement/example-initial-name branch November 24, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/frontend release/no-notes Not directly part of the release (updating README, build scripts, tests, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants