Improvement: Use constant for language workspace alias #2157
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.
Description
This add a constant for language workspace alias similar to other
ManifestWorkspaces
.However it doesn't really seems consistent. Some are included in
manifests.ts
as here:https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/4e840b9de043f8ddb03352897c5ef2a575ca8776/src/packages/documents/document-blueprints/workspace/manifests.ts#L14C14-L14C52
while other are just in a constant.ts as here:
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/4e840b9de043f8ddb03352897c5ef2a575ca8776/src/packages/user/user/workspace/constants.ts
or
index.ts
:Umbraco.CMS.Backoffice/src/packages/block/block/workspace/index.ts
Line 5 in 4e840b9
It would be great if it could be more consistency and easier to work with codebase.
Some places I noticed we have workspace under
workspace/entity
andentity/workspace
.I also noticed the fallback language picker seems broken at language and under user section.
It set the value, but somehow
items
always seems to be an empty array.Types of changes
Motivation and context
How to test?
Screenshots (if appropriate)
Checklist