Commit Graph

67755 Commits

Author SHA1 Message Date
Sven Geusens
6458a552e1 Merge branch 'release/15.1' into v15/dev
# Conflicts:
#	build/azure-pipelines.yml
2024-12-11 13:56:24 +01:00
Nhu Dinh
de92f1caac V15 QA Fixing the failing tests in the pipeline (#17718)
* Updated tests for content with media picker

* Fixed tests for content with multi url picker

* Skip tests for update action permission as it is removed now

* Fixed tests for list view media

* Fixed notification

* Updated method name due to api helper changes

* Fixed tests for welcome

* Fixed test for deleting a tab in a document type

* Updated expectation test result due to UI changes

* Updated create stylesheet method

* Fixed tests due to the action for selecting media item changes

* Bumped version

* Fixed expected result

* Fixed due to test helper changes

* Added more waits
2024-12-11 10:44:28 +07:00
Jacob Overgaard
2cfd52a941 build: overwrite existing files to quiet the extractor 2024-12-10 15:31:17 +01:00
Jacob Overgaard
888c96e777 build: change the fetchDepth to version the backoffice package 2024-12-10 15:14:58 +01:00
Nhu Dinh
dc2dc090f0 V15 QA Added tests for rendering content with member picker, multi url picker and media picker (#17717)
* Added test for rendering content with member picker value

* Added tests for rendering content with multiple media picker

* Added tests for rendering content with multi url picker

* Bumped version

* Updated tests for member picker

* Make all rendering content tests run in the pipeline

* Bumped version

* Fixed indentation

* Added clean for media

* Reverted

---------

Co-authored-by: Andreas Zerbst <73799582+andr317c@users.noreply.github.com>
Co-authored-by: Andreas Zerbst <andr317c@live.dk>
2024-12-10 17:55:27 +07:00
Mole
03eb878d30 V15: Fix docker (#17722)
* Bump dotnet version

* Ensure LF line endings for shell scripts
2024-12-10 10:25:50 +01:00
Nikolaj Geisle
6f081785e6 V15: Fix webhook RTE serialization (#17656)
* Make base type resolver class

* Add new webhook serializer

* fix comment

* Update src/Umbraco.Infrastructure/Serialization/ContentJsonTypeResolverBase.cs

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

* Update src/Umbraco.Core/Services/WebhookRequestService.cs

---------

Co-authored-by: Elitsa <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2024-12-09 14:20:19 +01:00
nikolajlauridsen
e757b90ee1 Bump to final 2024-12-09 10:51:08 +01:00
nikolajlauridsen
ca57e7f516 Set version 2024-12-09 09:15:01 +01:00
Kenn Jacobsen
49330b458c Support minimal APIs in OpenAPI spec and Swagger UI (#17622) 2024-12-09 06:58:29 +01:00
Nikolaj Geisle
e368710364 V15: Add custom serializer for hybrid cache (#17727)
* Add custom serializer

* Add migration to rebuild cache

* Rename migration namespace to 15.1

* Also clear media cache

* Remove failed cache items

* Refactor to only use keys for document cache repository

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2024-12-06 13:22:02 +01:00
Nikolaj Geisle
1c859e75ca V15: Add custom serializer for hybrid cache (#17727)
* Add custom serializer

* Add migration to rebuild cache

* Rename migration namespace to 15.1

* Also clear media cache

* Remove failed cache items

* Refactor to only use keys for document cache repository

---------

Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
2024-12-06 13:20:57 +01:00
Jacob Overgaard
ce6d4c34e2 fix: use _logoUrl when rendering the logo 2024-12-06 11:17:07 +01:00
Nikolaj Geisle
0617182160 Use init instead of rebuild when refreshing cache (#17739) 2024-12-05 20:56:54 +01:00
Bjarke Berg
88f97261ad Explicit endpoints returning the Login and BackOffice logos and background (#17696)
* Created explicit endpoints returning the login image instead of leaking the configuration. Thereby some hardcoded values have been changed, but the url will now be the same every time.

* Remove magic concatenation for action lookup

* remove unused backoffice asset (login.jpg)

* remove unused umbraco logo assets

* add manifest handlers

* add mock handlers for the `security/back-office/graphics` endpoints to the backoffice

* add mock handlers for the `security/back-office/graphics` endpoints to the login screen

* chore: update msw service worker

* feat: make static assets available for consumption without copying them from the login project

* update consts with new location for static assets

* feat: prefix login assets with `login-`

* remove unused asset `logo.png`

* feat: introduce a `/back-office/graphics/logo` endpoint to serve the logo "mark" used throughout all applications

* feat: use the alternative logo for disabled javascript warning

* feat: use the umbraco logo on the NoNodes.cshtml page

* Do not expose the new readme in the package

* feat: add logo.svg

* feat: add `umb-app-logo` element to display the backoffice logo including server url and appropriate tags

* feat: use the new `umb-app-logo` element relevant places and make sure to add the serverUrl in front of other graphics

* feat: move logic to connectedCallback to prevent error from non-existing element

* revert usage of HideBackOfficeLogo

* feat: add alt text to logos

* feat: add obsolete message and a hint to use BackOfficeLogo insted

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
2024-12-05 12:21:33 +01:00
Jacob Overgaard
db7c78b899 chore: import version in server handler 2024-12-05 10:26:49 +01:00
Jacob Overgaard
3367a30914 Merge remote-tracking branch 'origin/release/15.1' into v15/dev 2024-12-05 10:24:49 +01:00
Niels Lyngsø
7440b9d83d Feat: Content Property Datatset Context Token (#17723)
* introduce UMB_CONTENT_PROPERTY_DATASET_CONTEXT

* Updating List and RTE
2024-12-05 10:17:52 +01:00
Niels Lyngsø
79ce50bce8 Feature: update tiptap styling (#17728)
* clean-up styling

* fix element names

* fix isEmpty method

* updated text
2024-12-05 10:17:08 +01:00
Jacob Overgaard
4c009abc99 V15 RC: Tiptap should only target valid block elements (#17712)
* fix: make sure we only target valid blocks

This is to say we should remove any invalid block elements to clean up the DOM. A block element is considered invalid if it does not have the `data-content-key` attribute.

* build(deps): bump tiptap from 2.10.2 to 2.10.3

this fixes a potential issue with link creations

* revert the 'leaf node specification'

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-12-05 09:25:34 +01:00
Niels Lyngsø
c68a39cad6 make load wait until value is set 2024-12-05 09:02:43 +01:00
Jacob Overgaard
24e872f0d5 Merge remote-tracking branch 'origin/release/15.1' into v15/dev 2024-12-04 14:00:47 +01:00
Jacob Overgaard
34cad5ffef fix: Blocks do not work in the rich text editors (#17711)
* fix: do not add attributes or html elements to custom elements before they are created

Due to the way browsers treat custom elements, they are not allowed to add attributes and/or child elements upon creation. They must wait until the `connectedCallback`. That means any controller that wants to add elements should also wait until the host is connected (`hostConnected`).

* test: add generic tests for rte block elements

* chore: cleanup imports
2024-12-04 12:28:10 +01:00
Mads Rasmussen
e8d46340ac Hotfix: Don't request urls every time the document name updates (#17710)
* split observables so we don't request url when variantsOptions changes

* clean up events +  debounce requests

* add loading state

* clear lookup before requesting new urls
2024-12-04 11:04:02 +01:00
Mads Rasmussen
9f9aaa6f16 do not set icon color if item is active 2024-12-04 11:01:24 +01:00
Niels Lyngsø
594036c3d9 make blocks auto expose on insert (#17724) 2024-12-04 10:59:47 +01:00
Nikolaj Geisle
9ff67a33ed Add content to TreeAccessTemplate (#17694) 2024-12-04 10:57:14 +01:00
Niels Lyngsø
3caffa2756 Ensure all UMB_ constants is exported (#17683)
* export consts

* remove lexer

* init work on test for all consts to be exported

* temporary solution to working test

* fix test

* fix one consts

* update package-lock

* remove imports

* fix auto generation of test

* correct test

* important mistake correction

* fix workspace

* fix webhooks

* fix users

* UMB_CREATE_USER_CLIENT_CREDENTIAL_MODAL_ALIAS

* fix user group

* fix tree const exports

* tiptap const exports

* fix templates consts export

* tags

* stylesheets

* static files

* settings

* static file system

* section

* search

* scripts

* fix tsc

* relation

* relation-type

* recycle bin

* property type

* picker

* partial views

* tsc corrections

* fix circular

* package

* member

* member type

* move constants to constants file

* member group + documnet type

* media

* media-type

* revert tsconfig change

* log viewer

* language

* imaging

* healt check

* entity actions

* user permissions

* adjust test text

* document

* update consts

* document type etc

* blueprint

* dictionary

* data-type

* current-user

* culture

* content-type

* circular dependency

* block-list

* block-grid

* fix type import

* auto lint fixes

* fix tsc

* update test

* make sure always to call check-const-generation

* fix circular dependencies

* consts for content package
2024-12-04 10:39:06 +01:00
Mole
8ea0267ebc Fix integration test output (#17682)
* Change output

* Fix teardown output
2024-12-04 09:57:02 +01:00
Andreas Zerbst
07c236cdc2 Bumped version of testhelpers 2024-12-04 08:44:22 +01:00
Andreas Zerbst
ece803a6b3 V15 QA added parallelization for the integration tests (#17713)
* Added parallelization for our integration tests

* Updated yaml

* Moved filter command to variable definition

* Escape quotes

* Updated testFilter

* Added testFilter for SQlite

* Cleaned up filter

* Added comments

(cherry picked from commit 2f2da4854a)
2024-12-04 08:42:45 +01:00
Andreas Zerbst
3cf90ac6b4 V15 QA add parallelization of e2e tests (#17691)
* Tries parallelizing the E2E tests

* Updated variable

* Updated SqlServer

* Updated playwright config

* Bumped to use 3 shards

* Implemented shards on nightly pipeline

* Fixed indentation

* Added a smokeTest

* Updated test to run

* Added test command

* Update Templates.spec.ts

(cherry picked from commit 303758d1b2)
2024-12-04 08:41:29 +01:00
Andreas Zerbst
e87cd0a1bc V15 QA updated E2E tests to match changes (#17625)
* Updated locators

* Added waits

* Updated clickDeleteButton

* Bumped version

(cherry picked from commit 01a19b8a9f)
2024-12-04 08:41:24 +01:00
Andreas Zerbst
2f2da4854a V15 QA added parallelization for the integration tests (#17713)
* Added parallelization for our integration tests

* Updated yaml

* Moved filter command to variable definition

* Escape quotes

* Updated testFilter

* Added testFilter for SQlite

* Cleaned up filter

* Added comments
2024-12-03 17:35:24 +01:00
Bjarke Berg
2f388b3f91 Fixes https://github.com/umbraco/Umbraco-CMS/issues/17614 (#17687) 2024-12-03 13:50:36 +01:00
Mole
380f3f7e87 Clear elements cache instead of refreshing it (#17708) 2024-12-03 13:40:05 +01:00
Nhu Dinh
394bbde4b0 V15 Added acceptance tests for Tiptap data type (#17675)
* Added tests for Tiptap data type

* Removed tests for adding a toolbar item as the drag and drop is not working

* Fixed the variable name

* Added tests for TinyMCE data type

* Added tests for RTE data type

* Updated tests for delete toolbar row in Tiptap

* Updated tests for rich text editor data type

* Updated tests for tiny MCE data type

* Updated tests for content with tiny MCE rich text editor

* Renamed tests as there are 2 types of rich text editor

* Bumped version

* Make all data type tests in the pipeline

* Updated tests for Tiptap and TinyMCE due to api helper changes

* Fixed comments

* Update TinyMCE.spec.ts

Removed line

* Reverted

---------

Co-authored-by: Andreas Zerbst <73799582+andr317c@users.noreply.github.com>
2024-12-03 15:58:17 +07:00
Mads Rasmussen
437fcba4e5 fix: store first rte value (#17699) 2024-12-02 21:23:39 +01:00
Mads Rasmussen
8141b6b07e Hotfix: unnecessary Discard Changes dialog for RTEs (#17692)
* remove code duplication

* remove unused code

* allow value to be undefined

* dot not build model if we have no markup

* do update the layout value if we don't get any layouts

* reset internals if there are no value

* clear value if tiny mce doesn't have any markup

* clear value if tip tap doesn't have any markup

* add method to check if tip tap element is empty

* use method to check for empty tip tap
2024-12-02 14:48:28 +01:00
Andreas Zerbst
303758d1b2 V15 QA add parallelization of e2e tests (#17691)
* Tries parallelizing the E2E tests

* Updated variable

* Updated SqlServer

* Updated playwright config

* Bumped to use 3 shards

* Implemented shards on nightly pipeline

* Fixed indentation

* Added a smokeTest

* Updated test to run

* Added test command

* Update Templates.spec.ts
2024-12-02 14:48:15 +01:00
Andreas Zerbst
01a19b8a9f V15 QA updated E2E tests to match changes (#17625)
* Updated locators

* Added waits

* Updated clickDeleteButton

* Bumped version
2024-12-02 12:00:54 +01:00
Jacob Overgaard
ceafa83cc7 build: update the repository link 2024-11-29 15:36:28 +01:00
Jacob Overgaard
42f62d30df build: use the backoffice template in both build jobs 2024-11-29 14:55:35 +01:00
Mads Rasmussen
5b1d72e802 Chore: Enable MSW in web/test-runner + add tests for state manager + isCurrentUser util (#17584)
* add tests for UmbEntityWorkspaceDataManager

* add tests for umbObjectToPropertyValueArray

* remove unused

* split into individual files

* get from window

* fix import

* setup msw

* temp removal of different mock states

* add service worker

* add tests for isCurrentUser util

* Update package.json

* silence more text logs

* fix race condition

---------

Co-authored-by: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-11-29 13:21:00 +01:00
Mads Rasmussen
c4b0bdeadf Bugfix: Redirect when server file is renamed (#17663)
* make args protected + type generic

* add rename event

* get new name and unique from modal

* dispatch event when file is renamed

* get unique from entity context

* poc redirect after rename

* move logic to controller

* dont render code editor if content is undefined

* remove unused styling

* set unique after create

* use replace state

* set additionalOptions for rename action

* Update workspace-redirect.controller.ts

* add focus to name input

* add rename redirect controller

* clean up

* split render methods

* Update script-workspace.context.ts

* implement EntityDetailWorkspaceBase for stylesheets

* remove unused

* don't render code editor if there is no content

* add rename redirect controller

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-11-29 13:12:31 +01:00
nikolajlauridsen
c0cef3493c Bump version 2024-11-29 12:22:13 +01:00
Bjarke Berg
07d77aa465 Optimize Azure pipeline (#17674)
* Only fetch single commit

* Hopefully fixes Nerdbank.GitVersioning.GitException: Shallow clone lacks the objects required to calculate version height. Use full clones or clones with a history at least as deep as the last version height resetting change.

* Do not checkout again

* More test pipeline

* Another attempt

* yet another attempt

* more attempts

* Revert "more attempts"

This reverts commit 5694d97ba620e90fdeea287936f58002f2a5ddba.

* Test without building backoffice and login explicitly

* Fix mem leak in integration tests

* Fixes sqlserver lock test
2024-11-29 12:21:36 +01:00
Bjarke Berg
bce58a5a25 Optimize Azure pipeline (#17674)
* Only fetch single commit

* Hopefully fixes Nerdbank.GitVersioning.GitException: Shallow clone lacks the objects required to calculate version height. Use full clones or clones with a history at least as deep as the last version height resetting change.

* Do not checkout again

* More test pipeline

* Another attempt

* yet another attempt

* more attempts

* Revert "more attempts"

This reverts commit 5694d97ba620e90fdeea287936f58002f2a5ddba.

* Test without building backoffice and login explicitly

* Fix mem leak in integration tests

* Fixes sqlserver lock test
2024-11-29 12:20:19 +01:00
nikolajlauridsen
61d5105c61 Bump version 2024-11-29 09:19:55 +01:00
nikolajlauridsen
d1d2d73f19 Merge remote-tracking branch 'origin/release/15.1' into v15/dev 2024-11-29 09:19:29 +01:00