-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Front-end Example: Initial name example #20899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+52
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copilot finished reviewing on behalf of
nielslyngsoe
November 19, 2025 16:11
Contributor
There was a problem hiding this 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 |
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
…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>
madsrasmussen
requested changes
Nov 21, 2025
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/examples/workspace-context-initial-name/workspace-context.ts
Outdated
Show resolved
Hide resolved
madsrasmussen
approved these changes
Nov 24, 2025
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.)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Set up an example of how a Workspace Context could be used to set an initial name for newly created Documents.