Commit Graph

67854 Commits

Author SHA1 Message Date
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
Mads Rasmussen
b0b4571686 Bugfix: missing links for invariant documents with hostnames (#17808)
* always render the links we get from the server

* render information about links with no url

* pass correct state value

* Update document-workspace-view-info-links.element.ts

* reuse empty link, culture markup

* remove state from urls

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-12-18 13:11:13 +01:00
Nikolaj Geisle
545d64df25 V15: Handle empty permissions (#17801)
* Handle empty permissions

* Add tests

* Add a few more asserts to the tests

* Move dependency injection to test itself

---------

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
2024-12-17 13:26:27 +01:00
Kenn Jacobsen
7a3862e926 Support segments from querystring in preview (#17819) 2024-12-17 12:37:49 +01:00
Jacob Overgaard
fe8f81bc23 docs: add instructions on how to use vs code 2024-12-16 10:46:54 +01:00
Jacob Overgaard
726412a655 Add launch tasks for VS Code (#17772)
* feat: add two launch tasks to start a vite server and attach to an existing vite server

* build(deps-dev): install and use cross-env for vite commands

* build: add mocked launch task

* build: add prompt to check if msw should be on or off

* build: defaults

* build: rename launch task

* build: add compound to start backend and frontend at the same time
2024-12-16 10:46:24 +01:00
Nikolaj Geisle
838294efe1 V13: Clear username cache (#17815)
* Clear member username cache on delete

* Also refresh cache on update
2024-12-16 10:36:26 +02:00
Mads Rasmussen
70272f1a1a Chore: Remove client tests that doesn't do anything but trouble (#17813)
* remove tests

* Delete upgrader-view.test.ts
2024-12-16 09:03:13 +01:00
Niels Lyngsø
419a8e1166 Feature: media server validation (#17591)
* implement validation for media and prepare for member

* remove import

* use repository response type

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2024-12-13 15:38:08 +01:00
Mads Rasmussen
e87d1fc2dc Revert "Delete upgrader-view.test.ts"
This reverts commit ab58499d92.
2024-12-13 13:48:40 +01:00
Mads Rasmussen
ab58499d92 Delete upgrader-view.test.ts 2024-12-13 13:47:27 +01:00
Niels Lyngsø
9b27184708 Merge pull request #17755 from umbraco/v15/feature/first-round-of-data-marks
Feature: Adding first round of data marks
2024-12-13 13:30:05 +01:00
Mads Rasmussen
a85f82fcf7 make msw quiet in tests (#17809) 2024-12-13 09:51:51 +01:00
Andreas Zerbst
e61bbe0dc3 Update src/Umbraco.Web.UI.Client/src/packages/core/section/section-sidebar/section-sidebar.element.ts
Co-authored-by: Nhu Dinh <150406148+nhudinh0309@users.noreply.github.com>
2024-12-13 08:38:26 +01:00
Bjarke Berg
0b9855c045 Merge pull request #17762 from umbraco/v15/task/media-picker-min-max-validation
V15 min/max validator for mediapicker
2024-12-13 08:28:27 +01:00