Commit Graph

34091 Commits

Author SHA1 Message Date
Niels Lyngsø
2c8117c8a5 addendum implemented 2025-01-09 21:12:57 +01:00
Niels Lyngsø
81ebf3fc02 Merge branch 'v15/bugfix/fix-omitted-callback' into v15/bugfix/17312 2025-01-09 20:51:49 +01:00
Niels Lyngsø
82b740e3ef extra test 2025-01-09 20:49:50 +01:00
Niels Lyngsø
bd456a1dfa correct null case 2025-01-09 20:28:58 +01:00
Niels Lyngsø
f862736163 make sure callback can be undefined 2025-01-09 20:23:28 +01:00
Niels Lyngsø
989781c94d use addendum 2025-01-09 20:17:24 +01:00
Niels Lyngsø
756fa05c46 improve test 2025-01-09 20:04:11 +01:00
Andy Butland
75e7bb48ea Render all URLs in document workspace info tab and ensure protocol-less links can be used to access the intended URL. (#17926)
* Render all URLs in document workspace info tab and ensure protocol-less links can be used to access the intended URL.

* Removed unused import.

* Removed scheme from resolved URL.
2025-01-09 16:19:33 +01:00
Niels Lyngsø
d879919d75 correct path generation 2025-01-09 14:29:49 +01:00
Andy Butland
0eb6a16017 Reload children of destination after duplicate of content (#17878)
* Reload children of destination after duplicate of content.

* Revert changes to generic duplicate to action.

* Don't assume entity type of duplicated item is the same as the destination. Instead treat as "document" unless destination unique is null, when it will be "document-root".

* add todo back

* remove console log

---------

Co-authored-by: Mads Rasmussen <madsr@hey.com>
2025-01-09 14:24:33 +01:00
Niels Lyngsø
0eef5e5801 context 2025-01-09 11:39:51 +01:00
Niels Lyngsø
6fdb898467 ensure controller host destroys sub controllers (#17916) 2025-01-09 10:15:42 +01:00
Niels Lyngsø
8f9bfb4143 move router-slot component 2025-01-09 08:43:38 +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
Lan Nguyen Thuy
bfd2d35e13 Block list amount valivation message 2025-01-08 17:13:59 +07: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ø
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
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
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
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
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
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
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
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
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