Commit Graph

67626 Commits

Author SHA1 Message Date
Bjarke Berg
4f6fda796f Merge pull request #17779 from umbraco/v15/hotfix/fix-friendly-content-extension-performance
* Refactor .Children to use PublishStatusQuery

* Fix descendants

* Fix ancestors

* Fix siblings

* Handle empty string in published status service

* Fix unit test

* Fixes issue found in tests

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2024-12-11 19:18:49 +01:00
Bjarke Berg
c22dc2f12e Fixes issue found in tests 2024-12-11 18:40:46 +01:00
Nikolaj Geisle
d6f493737a Fix unit test 2024-12-11 17:48:11 +01:00
Niels Lyngsø
968cb1a981 Hotfix: Browser navigation between Documents (#17783)
use `replaceState` over `pushState`
2024-12-11 16:32:38 +01:00
Niels Lyngsø
5f291bab22 no need to redirect when removing tab. router handles this fine 2024-12-11 16:16:14 +01:00
Niels Lyngsø
eec7b01f1c use push state 2024-12-11 16:14:57 +01:00
Niels Lyngsø
66c13e5dae Merge pull request #17781 from umbraco/v15/hotfix/tinymce-links
V15: TinyMce triggers navigation when clicking links
2024-12-11 15:59:43 +01:00
Bjarke Berg
721eee27c7 Handle empty string in published status service 2024-12-11 15:50:00 +01:00
Jacob Overgaard
ccd365104a fix: trigger only on a-tags inside our own block elements
Tinymce inserts links using the a-tag, which is triggering our navigation because we cannot control tinymce's rendering. We can however control which links we trigger on the for the 'click' event by using `composedPath()` and ensuring that we are inside one of the block entry elements.
2024-12-11 15:42:28 +01:00
Jacob Overgaard
5bf07bda9b chore: formatting 2024-12-11 15:41:22 +01:00
Zeegaan
0928379aeb Fix siblings 2024-12-11 15:12:09 +01:00
Zeegaan
c6a420579e Fix ancestors 2024-12-11 14:56:44 +01:00
Niels Lyngsø
5322e382f3 Merge pull request #17774 from umbraco/15.1/hotfix/block-editors-discard-changes-on-startup
* prevent the block list editor from setting an empty value on startup
* prevent block grid from setting and initial empty block object value
* fix import

---------

Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
2024-12-11 14:53:54 +01:00
Niels Lyngsø
5cffe11651 Merge branch 'release/15.1' into 15.1/hotfix/block-editors-discard-changes-on-startup 2024-12-11 14:53:22 +01:00
Niels Lyngsø
ffd1d471d7 fix import 2024-12-11 14:51:00 +01:00
Sven Geusens
9b562018fb Bump versions 2024-12-11 14:09:38 +01:00
Zeegaan
b916490ef3 Fix descendants 2024-12-11 14:04:55 +01:00
Mads Rasmussen
8ccc394f88 prevent block grid from setting and initial empty block object value 2024-12-11 12:14:33 +01:00
Mads Rasmussen
d5144540f7 prevent the block list editor from setting an empty value on startup 2024-12-11 12:09:17 +01:00
Zeegaan
869838db0c Refactor .Children to use PublishStatusQuery 2024-12-11 11:16:11 +01: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
Mole
03eb878d30 V15: Fix docker (#17722)
* Bump dotnet version

* Ensure LF line endings for shell scripts
2024-12-10 10:25:50 +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
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
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
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
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
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
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
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
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
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
nikolajlauridsen
3203f64c2d Bump version to test template 2024-11-28 12:26:38 +01:00
nikolajlauridsen
6507497307 Revert "Hardcode version to have a working build"
This reverts commit fba183d816.
2024-11-28 12:25:53 +01:00
nikolajlauridsen
afe9604920 Don't pack template.json 2024-11-28 10:12:13 +01:00
Niels Lyngsø
7177a29b5d build(deps): update @umbraco-ui/uui from 1.12.1 to 1.12.2 (#17657)
* update uui

* remove temp fix

* revert mockServiceWorker change

* fix document collection paths
2024-11-27 17:18:44 +01:00
nikolajlauridsen
fba183d816 Hardcode version to have a working build 2024-11-27 12:43:14 +01:00
Kenn Jacobsen
444c87469c Add ASCII file name conversion (#17580)
(cherry picked from commit 4590739fa5)
(cherry picked from commit 3d1505d4c6)
2024-11-27 09:23:54 +01:00