Commit Graph

67868 Commits

Author SHA1 Message Date
Kenn Jacobsen
0565eeebd5 Do not allow editing read-only properties (#17915) 2025-01-09 06:59:32 +01:00
Niels Lyngsø
cce056b7de Merge pull request #17912 from umbraco/v15/bugfix/block-list-amount-validation-message
Block list amount valivation message
2025-01-08 16:36:05 +01:00
Niels Lyngsø
77c064af89 prettier update 2025-01-08 16:02:36 +01:00
Andy Butland
bfff224c3e Display variant selection on unpublish only if the document is variant (#17893)
* Display variant selection on unpublish only if the document is variant.

* Allow for publish and unpublish of variant and invariant content.

* Added integration tests for amends to ContentPublishingService.

* Fixed assert.

* Fixed assert and used consistent language codes.

* Further integration tests.
2025-01-08 15:07:56 +01:00
Niels Lyngsø
f9c52b7ebc Feature: improve collection wording (#17914)
* improve wording for collection configuration

* Update src/Umbraco.Web.UI.Client/src/assets/lang/en-us.ts

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Web.UI.Client/src/assets/lang/en.ts

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

---------

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2025-01-08 12:57:14 +01:00
Andy Butland
cbd162b3c7 Allow sort of children by name and create date (#17904)
* Added create date to document and media children endpoints.

* Sort by name or create date for documents and media.

* Fix build issues.

* Only render column headers for sorting if all pages of children are loaded.

* Add indicator and debounce sorting by column headers.
2025-01-08 12:46:12 +01:00
Sven Geusens
e425f0ba41 Improve document schedule (#17535)
* Expose schedule date for on document get endpoint

* typo fix

* stupid stuff

* Enable content scheduling features in the publishing service

* Replace obsoleted non async calls

* Add content scheduling test

* Publush and schedule combination test

* More invariantCulture notation allignment and more tests

* Link up api with updated document scheduling

* More invariant culture notation allignment

* Fix breaking change

* Return expected status codes.

* Fix constructor

* Forward Default implementation to actual core implementation

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Forward default implementation to core implementation

Co-authored-by: Bjarke Berg <mail@bergmania.dk>

* Make content with scheduling retrieval scope safe

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2025-01-08 12:39:34 +01:00
Andy Butland
413398afc6 Use data type configuration to determine default value for empty toggle and slider property values (#17854)
* Use data type configuration to determine default value for empty toggle property values.

* Added/updated unit tests.

* Fixed failing integration tests.

* Applied similar default value display for the slider property editor and aligned implementation of true/false with this.

* Fixed unit tests.

* Removed "duplicate" JsonPropertyName attributes and added a custom TypeInfoResolver for data type configuration so we can re-use the existing ConfigurationField attributes.

* Minor cleanup

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2025-01-08 11:42:13 +01:00
Lan Nguyen Thuy
bfd2d35e13 Block list amount valivation message 2025-01-08 17:13:59 +07:00
Nikolaj Geisle
b7f424756c V15: Dont create invalid media (#17534)
* Don't allow create when there is validation errors

* Fix tests

* Add tests

* Fix last test

* Fix more tests

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2025-01-08 10:50:53 +01:00
Andy Butland
c7b05d5455 Fixed infinite loop triggered when requesting media by ID in a folder via the media delivery API. (#17876) 2025-01-08 10:42:08 +01:00
Andy Butland
e7ee7c63c3 Fix to GetCultureFromDomains extensions following changes to routing and published content cache (#17884) 2025-01-08 10:29:06 +01:00
Jacob Overgaard
22e993f44c V15: Change password should not be shown when local login is disabled (#17900)
* feat: include the option whether a login provider has disabled local login

* feat: include information whether change password or two factor is allowed

* generate new OpenApi.json

* generate new ts client

* feat: request the server configuration and include in the UmbAppContext

* fix: for login screen, check that a provider did not disable the local login

* fix: use UmbAppContext to fetch the version check period

* chore: remove unused method

* revert current user configuration changes

* generate new ts client

* fix: add condition for "allow password change" on the change password button

* fix: create new IsDefaultKind condition to separate change password logic

* fix: update "allow change password" and "allow mfa" conditions to take the user configuration into consideration

* chore: export consts

* remove falsely named attribute that happens to not be useful anyway

* chore: revamp logic for early return to make it more readable

* convert `isInitialized` to a Promise as it is only being resolved once anyway, which then additionally saves a call to `this.observe` in the conditions

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2025-01-08 09:27:59 +00:00
Niels Lyngsø
fd7f6bbfc9 Merge pull request #17877 from umbraco/v15/bugfix/intermittent-issue-rendering-granular-permissions-for-user-group
Timing updates for rendering and preparation of user group granular permissions details to resolve intermittent error on race condition
2025-01-08 10:07:30 +01:00
Niels Lyngsø
0a483e6551 Merge branch 'v15/dev' into v15/bugfix/intermittent-issue-rendering-granular-permissions-for-user-group 2025-01-08 09:36:01 +01:00
Niels Lyngsø
7ac941de77 remove comment 2025-01-08 09:35:09 +01:00
Nikolaj Geisle
e5e5e8cb11 V15: Warn when content is unroutable (#17837)
* Add notification handler

* Add IsContentPublished that bypasses caching

* Add clarifying comment

* Refactor, to never hit the db

* Remove old comment

* Don't add warnings if disabled

* Dedicated configuration option to suppress unroutable content warnings

---------

Co-authored-by: kjac <kja@umbraco.dk>
2025-01-08 09:14:14 +01:00
Niels Lyngsø
bf9ba16039 Add workspace view path const (#17880)
* use path const for workspace view

* get base path and active path from router context

---------

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
2025-01-07 19:26:10 +01:00
Andy Butland
79c8652ca4 Implemented sorting for media picker crops (#17879)
* Implemented sorting for media picker crops.

* Removed unused type import.

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2025-01-07 19:15:58 +01:00
Niels Lyngsø
56d4ffc2e8 Merge pull request #17905 from umbraco/v15/feature/remove-one-circular-dependency
Feature: emove one circular dependency
2025-01-07 14:26:30 +01:00
Andy Butland
376c496597 Ensure sort order is used when rendering the list of allowed documents that can be created under an item in the content section, and allowed for sorting of selected allowed content types (#17875)
* Ensure sort order is used when rendering the list of allowed documents that can be created under an item in the content section.

* Fixed issue preventing sorting of the allowed content types.
2025-01-07 14:01:11 +01:00
Niels Lyngsø
f3b09f3489 remove circular dependency 2025-01-07 13:42:41 +01:00
Niels Lyngsø
ce494a8bc9 Merge branch 'v15/dev' into v15/bugfix/intermittent-issue-rendering-granular-permissions-for-user-group
# Conflicts:
#	src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/components/extension-slot/extension-slot.element.ts
#	src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/components/extension-with-api-slot/extension-with-api-slot.element.ts
2025-01-07 13:30:24 +01:00
Niels Lyngsø
87c48c379b use extension slot 2025-01-07 13:29:09 +01:00
Niels Lyngsø
12ab1d6da2 fix types 2025-01-07 13:28:59 +01:00
Lee Kelleher
1fdf32f404 V15: Document Type Create Options (#17669)
* Refactors `umb-ref-item` to inherit from `uui-ref-node`

To extend, rather than reinvent the wheel.

* Updates components using `umb-ref-item` with `select-only` attribute

* Updates `umb-entity-create-option-action-list-modal` to use `umb-ref-item`

instead of `uui-ref-node`, so we can use `umb-icon`
(with color support) and UI consistency.

* Adds `headline` property for Create Option modal

* Changes 'Umb.EntityAction.DocumentType.Create' to use `kind: 'create'`

Deprecates `umb-document-type-create-options-modal` and token.

* Adds `entityCreateOptionAction` extensions for Document Types

- Document Type (default)
- Document Type with Template
- Element Type
- Folder

* Tweaks Create Options modal to submit upon selection

* corrections

* remove headline option

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Mads Rasmussen <madsr@hey.com>
2025-01-07 12:28:00 +00:00
Niels Lyngsø
263a6d8d61 update property container id when container changed 2025-01-07 13:21:19 +01:00
Niels Lyngsø
601f61fc39 end drag with mouse move event (#17902) 2025-01-07 13:20:40 +01:00
Niels Lyngsø
622e343ac5 Fix #14541: hide "Publish with descendants" when not yet created (#17853)
* Hide Publish with Descendants if item is not yet created

* registere condition
2025-01-07 13:17:08 +01:00
Niels Lyngsø
b7a2302ca7 Feature: Minor performance optimization from investigation (#17888)
* assigning event when created, to align with other event

* revert
2025-01-07 11:45:02 +01:00
Niels Lyngsø
113059c2d1 Refactor workspace context creation logic (#17885)
* rename arg for better readin

* use nothing

* parse args and implement single mode

* make single mode work with conditions

* implement UmbExtensionsElementAndApiInitializer in workspace element

* move workspace initialization to workspace element

* do not parse host, as it already happens

* implement initializer single mode for extension slot elements
2025-01-07 11:37:21 +01:00
Nikolaj Geisle
5482f6b5ca Order by sortorder (#17898) 2025-01-07 11:33:24 +01:00
Nikolaj Geisle
66f2b60141 V15: Add webhooklogs endpoint (#17838)
* Add webhook logs endpoint

* Add attribute routing

* Add to open api json
2025-01-07 11:18:32 +01:00
Niels Lyngsø
e4c5da18d5 Fix #17758: V15 - Race condition breaks navigation between documents (#17857)
* clean up compositions

* use getItemByUnique method

* clean up

* a few notes
2025-01-07 11:01:31 +01:00
Niels Lyngsø
df3f0cef82 Fix: select app language (#17849)
* fix selection data

* remove unused import
2025-01-07 09:46:10 +01:00
Andy Butland
f3ecd94a75 Call change event after update of multiple text string order. (#17899) 2025-01-07 09:32:52 +01:00
Niels Lyngsø
432d083ad3 Merge branch 'v15/dev' into v15/bugfix/intermittent-issue-rendering-granular-permissions-for-user-group 2025-01-07 08:36:16 +01:00
Sven Geusens
1cd9e3e83f Fix variant invariancy with limited language (#17707)
* Add a way to configure IUmbracobuilder on a per testcase basis

* New logic for invariantVariantMerging

* bugfix

* Undo formatting changes

* Undo more automatic formatting

* Last automatic formatting correction

* Cleanup ConfigureBuilderAttribute

* Made propertyEditor tests internal
2025-01-06 14:58:00 +01:00
Jacob Overgaard
99f572837a Merge pull request #17896 from umbraco/v15/bugfix/support-svg-in-thumbnail-endpoint
v15: Support SVGs in thumbnail endpoint
2025-01-06 14:01:19 +01:00
Nikolaj Geisle
8dfeea1a50 Convert to absolute url 2025-01-06 13:30:27 +01:00
Nikolaj Geisle
f1c3611001 Add clause for svg's and clarifying comment 2025-01-06 12:56:56 +01:00
Nhu Dinh
0a86dc5107 V15 QA Added acceptance tests for the Content with Tiptap (#17851)
* Added tests for content with tiptap - not done

* Updated tests - not done

* Addes tests for create content with non-empty RTE tiptap

* Added Content tests for tiptap

* Cleaned up

* Updated tests for Content with tiptap due to test helper changes

* Make all the Content tests run in the pipeline

* Fixed comment

* Reverted
2025-01-03 14:23:12 +07:00
Andy Butland
a3c45c0fe9 Removed debug code. 2025-01-02 10:02:56 +00:00
Andy Butland
ed72a692b6 Timing updates for rendering and preparation of user group granular permissions details to resolve intermittent error on race condition 2025-01-02 09:36:40 +00:00
Andreas Zerbst
a954051d98 V15 QA updated flaky E2E tests (#17845)
* Updated tests

* More cleanup

* Removed log

* Bumped version

* Update tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Content/ContentWithMultiURLPicker.spec.ts

* Update tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/DocumentType/DocumentTypeDesignTab.spec.ts

* Update tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/DocumentType/DocumentTypeDesignTab.spec.ts

* Update tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Users/Permissions/UserGroup/DefaultPermissionsInContent.spec.ts
2024-12-20 08:03:27 +01:00
Niels Lyngsø
a582732429 change route setup 2024-12-19 09:02:23 +01:00
Niels Lyngsø
a4017e6dce Feature: block 'draft' tag (#17640)
* not-yet-exposed

* add tag

* implement id for expose button

* implement tag for grid

* style

* use plus icon in rte blocks

* empty commit
2024-12-19 08:56:03 +01:00
Sven Geusens
0a56aaaf54 Fix mistakes in 15.0.0 migrations (#17814)
* Fix ConvertLocalLinks migration and add a new migration in case the old one has already run

* RebuildCache

* Clear cache means clear ALL caches

* Fix Block Markup recursion

* Fix Unittest mock constructor
2024-12-18 15:24:43 +01:00
Mads Rasmussen
e8c4fb96de Feature: Published Document Pending Changes (#17812)
* implement validation for media and prepare for member

* remove import

* port code from backoffice repo

* move repo into publishing module

* port get published methods

* cleanup

* wip render state

* align state UI

* post merge clean up

* move publish modal

* move schedule modal

* move unpublish modal

* move publish action and bulk action

* move unpublish action + bulk action

* lint fix

* Update document-workspace.context.ts

* wip move publishing methods to publishing context

* move publish with descendants

* fix more references

* Update document-publishing.workspace-context.ts

* export entity action

* add return type

* temp internal methods

* use repository response type

* expose methods for other contexts to use

* use public methods

* call publishing context methods

* fix import

* move manager into folder

* organise in folders

* add get method to get variants with changes

* preselect variants with pending changes

* observe data changes

* render pending changes client state

* observe unique

* Update document-publishing.server.data-source.ts

* use correct key

* clean up

* expose persisted data

* rename arg

* use persisted data instead of current

* add reload method

* reload data after publish

* remove headline

* handle all publish actions the same

* reset state as the first thing when creating + loading

* add method to get variants

* only load published if document has a published variant

* remove variants from observer

* add public method to get the changed variants

* align preselection with current logic

* add deprecation util

* add method deprecation warnings

* remove unused publish method

* move publishing workspace actions into publishing module

* use publishing context

* clean up

* add tests for published pending changes manager

* handle server the same way

* process pending changes when persisted data changes

* remove buggy updateDate

* remove unused

* lint fix

* add publish method back to avoid a breaking change

---------

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-12-18 13:03:32 +00:00
Kenn Jacobsen
b6351f9f33 Make parallel block editor migration optional (#17827) 2024-12-18 13:41:07 +01:00