Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.4.0 #6666

Merged
merged 139 commits into from
Sep 12, 2024
Merged

4.4.0 #6666

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
56669ed
Fix cs for Api test classes
distantnative Jun 13, 2024
e14e6ed
Fix thrown Exception in Http test mocks
distantnative Jun 13, 2024
a1c83b2
DateInput: fix `Cmd+S` in nested structures
distantnative Jun 23, 2024
5e9b2a3
Merge pull request #6501 from getkirby/fix/6390-date-input-on-save
bastianallgeier Jun 24, 2024
c058467
`License`: Allow access to the version history
lukasbestle Jun 24, 2024
8da6846
Merge pull request #6503 from getkirby/feature/license-history-const
bastianallgeier Jun 25, 2024
38d9128
Merge branch 'develop-patch' into develop-minor
bastianallgeier Jun 27, 2024
78e2e5a
Merge branch 'develop-patch' into develop-minor
distantnative Jun 28, 2024
cbe5023
New google icon
afbora Jun 30, 2024
a63eb8a
Upgrade npm dependencies
distantnative Jul 9, 2024
b195f57
Merge pull request #6518 from getkirby/feature/google-icon
distantnative Jul 12, 2024
73bb894
`Permissions::for()`: new `$default` argument
distantnative Jul 21, 2024
ee08069
`Permissions::for()`: add unit tests
distantnative Jul 21, 2024
7898b49
Link field preview: fix overflow
distantnative Jul 21, 2024
e487452
Text block: fix padding for textarea input
distantnative Jul 21, 2024
b309b72
Tags input: don't open dropdown when max reached
distantnative Jul 21, 2024
180bf66
`App::io()`: redirect `NotFoundException` to error
distantnative Jul 21, 2024
21b4cc3
Include UUID in `$panel.view.model` data
distantnative Jul 21, 2024
03c3a69
`k-tree`: use unique value as loop key and ref
distantnative Jul 21, 2024
2804176
`k-page-tree`: open recursively tree for `current`
distantnative Jul 21, 2024
9db48dc
`k-file-browser`: `opened` prop to preselect page
distantnative Jul 21, 2024
c07d59c
`k-link-field`: preselect current page for files
distantnative Jul 21, 2024
7f9e765
Fix cs
distantnative Jul 21, 2024
2bed595
Add lab examples for page tree preloading
distantnative Jul 21, 2024
ba21373
Simplify PHP in `tree.parents` request
distantnative Jul 21, 2024
9302534
File browser: less flickering when `opened` set
distantnative Jul 21, 2024
2c2bc72
Merge pull request #6553 from getkirby/fix/6466-app-io-notfoundexception
bastianallgeier Jul 22, 2024
48bc95a
$default for ModelPermissions::can() & ::cannot()
distantnative Jul 22, 2024
4756897
Merge pull request #6550 from getkirby/fix/6510-link-field-preview-ov…
bastianallgeier Jul 22, 2024
f45f7c4
Merge pull request #6552 from getkirby/fix/6468-tags-input-maxed-drop…
bastianallgeier Jul 22, 2024
2fe469b
Merge pull request #6554 from getkirby/enhancement/6458-file-browser-…
bastianallgeier Jul 22, 2024
880f30e
Merge pull request #6551 from getkirby/fix/6484-text-block-textarea-p…
bastianallgeier Jul 22, 2024
b8666fd
New dumb `k-search` component
distantnative Jul 13, 2024
8fc2c21
Clean up `k-dialog-search`
distantnative Jul 13, 2024
88799de
New `panel.searcher` module
distantnative Jul 13, 2024
e94ea2c
SearchDialog: use `k-search`
distantnative Jul 13, 2024
3596f94
Adapt SearchView to `panel.searcher`
distantnative Jul 13, 2024
775824e
SearchDialog: consistent naming of results
distantnative Jul 13, 2024
e88ae73
Panel search: DRY too short query
distantnative Jul 13, 2024
96adf09
Clean up `k-search`
distantnative Jul 13, 2024
5a90965
Fix regression
distantnative Jul 22, 2024
610fc8f
Search: also display results while loading
distantnative Jul 22, 2024
744a004
Fix unit tests: lazy-resolve uuid for Panel models
distantnative Jul 22, 2024
115a6dc
`A::random()`: exception if $count exceeds array
distantnative Jul 22, 2024
60aefe1
`k-button`: add `aria-label`
distantnative Jul 22, 2024
e0df81f
Site area: use icon from site blueprint
distantnative Jul 22, 2024
c89b052
Fix `focus` helper for non-native inputs
distantnative Jul 22, 2024
ea18cad
Fix overflowing topbar with very long breadcrumb
distantnative Jul 22, 2024
cce19f2
Fix `new Uri()` for relative URLs with param colon
distantnative Jul 22, 2024
a4f0a46
Writer field: fix content with non-breaking space
distantnative Jul 22, 2024
b7102ca
Add a min-width to keep the icon visible
bastianallgeier Jul 22, 2024
960b050
Change exception type
distantnative Jul 22, 2024
bb6c421
Merge pull request #6559 from getkirby/fix/6348-topbar-breadcrumb-ove…
bastianallgeier Jul 22, 2024
8e38cce
Merge pull request #6555 from getkirby/fix/5934-a-random-count-exception
bastianallgeier Jul 22, 2024
be511c0
Merge pull request #6557 from getkirby/enhancement/5936-area-site-ico…
bastianallgeier Jul 22, 2024
5228fa5
Add Panel events for file upload
distantnative Jul 22, 2024
8accf93
Models dialogs: use choice input instead icons
distantnative Jul 22, 2024
ca7b437
Merge pull request #6563 from getkirby/enhancement/6044-model-dialogs…
bastianallgeier Jul 23, 2024
db3d7f0
`content.uuid.index` option: prevent index lookup
distantnative Jul 23, 2024
461c21b
Merge pull request #6558 from getkirby/fix/6347-focus-js-non-native-i…
bastianallgeier Jul 24, 2024
8005281
Button aria-label: switch order
distantnative Jul 24, 2024
097e08b
Merge pull request #6562 from getkirby/fix/6285-writer-non-breaking-s…
bastianallgeier Jul 24, 2024
db01e58
Merge pull request #6556 from getkirby/fix/5899-k-button-aria-label
bastianallgeier Jul 24, 2024
e62eef5
Add language specific UUID URLs
bastianallgeier Feb 29, 2024
8f363c7
Try to create a test for the UUID route
bastianallgeier Mar 1, 2024
12b4e4f
Fix unit test
distantnative Jul 24, 2024
41c1160
Add unit tests for uncached uuid
distantnative Jul 24, 2024
b4fdeab
Flip $default parameter
distantnative Jul 24, 2024
3ae9978
Merge pull request #6548 from getkirby/enhancement/permissions-for-de…
bastianallgeier Jul 24, 2024
3f220b3
Models fields: default empty string for single
distantnative Jul 25, 2024
3ea1507
Fix false Environment unit test
distantnative Jul 25, 2024
aa04a20
Merge pull request #6560 from getkirby/fix/6331-uri-relative-url-colon
bastianallgeier Jul 25, 2024
b4c0dfd
Support role permissions for `preview` option
distantnative Jul 25, 2024
0854983
Fix ColorFrame for pattern
distantnative Jul 25, 2024
e766ba3
Users field: default empty string for single
distantnative Jul 25, 2024
df8a580
`k-block-background-dropdown`
distantnative Jul 25, 2024
0a0726c
`k-block-figure-caption`
distantnative Jul 25, 2024
6a94f92
Background selector for Image & Gallery blocks
distantnative Jul 25, 2024
c040fec
Block background: add light pattern as option
distantnative Jul 25, 2024
736c3db
Block background: remove pure dark as option
distantnative Jul 25, 2024
03bcb91
Block background: remove unnecessary value entries
distantnative Jul 25, 2024
6e95d61
Merge pull request #6571 from getkirby/fix/6565-models-field-empty-si…
bastianallgeier Jul 25, 2024
460af5c
Slightly changed button design
bastianallgeier Jul 25, 2024
4147b7e
Merge pull request #6312 from getkirby/feature/language-uuid-urls
distantnative Jul 25, 2024
7658f55
Add i18n strings
distantnative Jul 25, 2024
d3d8a70
Merge pull request #6430 from getkirby/fix/6378-blocks-img-pattern
distantnative Jul 25, 2024
42df2ac
Fix `field.blocks.figure.back.plain` i18 string
distantnative Jul 25, 2024
22221f2
`rawvalues` option for pages section tables
distantnative Jul 29, 2024
1d750b2
Prevent partial matches for `pattern` validation
distantnative Jul 30, 2024
bc2e9fc
`null` for `$file->previewUrl()` if no permission
distantnative Jul 30, 2024
5c7d8ab
Rawvalues: rewrite as separate code blocks
distantnative Jul 30, 2024
ff1df44
Add codeCoverageIgnore tags
distantnative Jul 30, 2024
faf905c
Merge pull request #6588 from getkirby/fix/6585-validations-match
bastianallgeier Jul 31, 2024
693169b
Merge pull request #6583 from getkirby/fix/pages-section-table-perfor…
bastianallgeier Jul 31, 2024
a0d8090
Fix Validations::pattern()
distantnative Jul 31, 2024
a2a57a6
Merge pull request #6572 from getkirby/fix/6400-preview-permission-pe…
distantnative Aug 1, 2024
4ec6267
Rename to `k-search-bar`
distantnative Aug 2, 2024
5fcd5f5
Rename search-bar lab example and fix CSS
bastianallgeier Aug 2, 2024
4fd365c
Merge pull request #6530 from getkirby/fix/search-js-abort
bastianallgeier Aug 2, 2024
8e8f9e5
Redirect language URLs with non-translated slugs
distantnative Aug 11, 2024
0830adc
Merge branch 'develop-patch' into develop-minor
distantnative Aug 11, 2024
403d7a4
`(image: )` tag: `width: auto`
distantnative Aug 11, 2024
80d39ca
Default `k-field-type-TYPE` CSS class for fields
distantnative Aug 11, 2024
20f32e2
Fix picker fields when UUIDs disabled
distantnative Aug 11, 2024
2a3aee3
`system.exception` hook: suppress error log
distantnative Aug 11, 2024
8dad4c4
ChangeUrl dialog: include language URL in path
distantnative Aug 11, 2024
5a23a2c
`k-table`: fix sortable rows
distantnative Aug 11, 2024
ee6ef3d
Merge branch 'develop-patch' into develop-minor
distantnative Aug 11, 2024
983825d
File upload: use preview options
distantnative Aug 11, 2024
b1b7031
Merge pull request #6602 from getkirby/enhancement/5064-image-tag-wid…
bastianallgeier Aug 12, 2024
3f06da2
Merge pull request #6603 from getkirby/fix/5084-picker-fields-uuid-di…
bastianallgeier Aug 12, 2024
4b2b37a
Merge pull request #6604 from getkirby/enhancement/5009-panel-field-c…
bastianallgeier Aug 12, 2024
efa1606
Merge pull request #6609 from getkirby/fix/6595-table-sortable-rows
bastianallgeier Aug 12, 2024
ee7a11c
Keep the UploadItem component independent from the panel.upload module
bastianallgeier Aug 12, 2024
ab7a533
Merge pull request #6611 from getkirby/enhancement/5729-file-upload-i…
distantnative Aug 12, 2024
7e6a373
Merge pull request #6607 from getkirby/enhancement/6600-change-url-di…
distantnative Aug 12, 2024
b0666f5
AppErrors: safer $isLogged check
distantnative Aug 12, 2024
fd01db0
Merge pull request #6564 from getkirby/fix/uuid-disable-index-lookup
distantnative Aug 12, 2024
06d0481
Consider user language for filename sanittization
distantnative Aug 12, 2024
d2555de
Consistent code style
distantnative Aug 12, 2024
5e59e03
Merge pull request #6605 from getkirby/enhancement/5028-system-except…
bastianallgeier Aug 13, 2024
b9e9312
Merge pull request #6606 from getkirby/enhancement/4972-filename-user…
bastianallgeier Aug 13, 2024
36f9a8c
Merge pull request #6601 from getkirby/fix/3550-redirect-untranslated…
bastianallgeier Aug 13, 2024
5cb5f83
Preflight for 4.4.0-rc.1
distantnative Aug 13, 2024
685217b
Update translations
distantnative Aug 13, 2024
1e30d67
Update composer dependencies
bastianallgeier Aug 14, 2024
4befca1
Update js dependencies
bastianallgeier Aug 14, 2024
4d3213f
Merge pull request #6614 from getkirby/release/4.4.0-rc.1
bastianallgeier Aug 14, 2024
3fc91cf
Merge branch 'develop-patch' into release/4.4.0
distantnative Aug 29, 2024
63d1b57
Fix docblocks for `$panel.dialog`/`$panel.drawer`
distantnative Aug 31, 2024
c654ea7
Fix site tree parents #6627
distantnative Aug 15, 2024
07185d2
Merge pull request #6642 from getkirby/fix/6627-site-tree-parents
distantnative Sep 1, 2024
b3371c9
Merge pull request #6648 from getkirby/fix/js-drawer-docs
bastianallgeier Sep 9, 2024
ad0f14c
Preflight
bastianallgeier Sep 12, 2024
e10ba93
Fix the version number
bastianallgeier Sep 12, 2024
74a5a4e
Skip failing QR test
bastianallgeier Sep 12, 2024
8dffe45
Update to the latest stable symfony yaml parser version
bastianallgeier Sep 12, 2024
b599a69
Add unit check for page changeTitle dialog
distantnative Sep 12, 2024
103f139
Add test coverage comment
distantnative Sep 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The Kirby core",
"license": "proprietary",
"type": "kirby-cms",
"version": "4.3.1",
"version": "4.4.0",
"keywords": [
"kirby",
"cms",
Expand Down Expand Up @@ -38,15 +38,15 @@
"ext-openssl": "*",
"christian-riesen/base32": "1.6.0",
"claviska/simpleimage": "4.2.0",
"composer/semver": "3.4.0",
"composer/semver": "3.4.2",
"filp/whoops": "2.15.4",
"getkirby/composer-installer": "^1.2.1",
"laminas/laminas-escaper": "2.13.0",
"michelf/php-smartypants": "1.8.1",
"phpmailer/phpmailer": "6.9.1",
"symfony/polyfill-intl-idn": "1.29.0",
"symfony/polyfill-mbstring": "1.29.0",
"symfony/yaml": "6.4.8"
"symfony/polyfill-intl-idn": "1.30.0",
"symfony/polyfill-mbstring": "1.30.0",
"symfony/yaml": "6.4.11"
},
"replace": {
"symfony/polyfill-php72": "*"
Expand Down
90 changes: 45 additions & 45 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 4 additions & 6 deletions config/api/routes/files.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// routing pattern to match all models with files
$filePattern = '(account/|pages/[^/]+/|site/|users/[^/]+/|)files/(:any)';
$filePattern = '(account/|pages/[^/]+/|site/|users/[^/]+/|)files/(:any)';
$parentPattern = '(account|pages/[^/]+|site|users/[^/]+)/files';

/**
Expand Down Expand Up @@ -47,17 +47,15 @@
// move_uploaded_file() not working with unit test
// @codeCoverageIgnoreStart
return $this->upload(function ($source, $filename) use ($path) {
$props = [
// move the source file from the temp dir
return $this->parent($path)->createFile([
'content' => [
'sort' => $this->requestBody('sort')
],
'source' => $source,
'template' => $this->requestBody('template'),
'filename' => $filename
];

// move the source file from the temp dir
return $this->parent($path)->createFile($props, true);
], true);
});
// @codeCoverageIgnoreEnd
}
Expand Down
6 changes: 4 additions & 2 deletions config/areas/site.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
use Kirby\Toolkit\I18n;

return function ($kirby) {
$blueprint = $kirby->site()->blueprint();

return [
'breadcrumbLabel' => function () use ($kirby) {
return $kirby->site()->title()->or(I18n::translate('view.site'))->toString();
},
'icon' => 'home',
'label' => $kirby->site()->blueprint()->title() ?? I18n::translate('view.site'),
'icon' => $blueprint->icon() ?? 'home',
'label' => $blueprint->title() ?? I18n::translate('view.site'),
'menu' => true,
'dialogs' => require __DIR__ . '/site/dialogs.php',
'drawers' => require __DIR__ . '/site/drawers.php',
Expand Down
15 changes: 13 additions & 2 deletions config/areas/site/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,23 @@
'page.changeTitle' => [
'pattern' => 'pages/(:any)/changeTitle',
'load' => function (string $id) {
$request = App::instance()->request();
$kirby = App::instance();
$request = $kirby->request();

$page = Find::page($id);
$permissions = $page->permissions();
$select = $request->get('select', 'title');

// build the path prefix
$path = match ($kirby->multilang()) {
true => Str::after($kirby->site()->url(), $kirby->url()) . '/',
false => '/'
};

if ($parent = $page->parent()) {
$path .= $parent->uri() . '/';
}

return [
'component' => 'k-form-dialog',
'props' => [
Expand All @@ -212,7 +223,7 @@
'slug' => Field::slug([
'required' => true,
'preselect' => $select === 'slug',
'path' => $page->parent() ? '/' . $page->parent()->uri() . '/' : '/',
'path' => $path,
'disabled' => $permissions->can('changeSlug') === false,
'wizard' => [
'text' => I18n::translate('page.changeSlug.fromTitle'),
Expand Down
Loading
Loading