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.0.0-rc.1 #5950

Merged
merged 99 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
cdc07c4
Revert autoresize scroll restore
distantnative Nov 2, 2023
48e9f54
Exclude UI docs and lab from regular bundle
distantnative Nov 2, 2023
6451075
Icon for `k-stat`
distantnative Nov 2, 2023
2c3850c
Use `autosize` library
distantnative Nov 2, 2023
eeb87a7
Merge pull request #5909 from getkirby/v4/enhancement/bundle-without-…
bastianallgeier Nov 3, 2023
b90d220
Fix grid and border radius
bastianallgeier Nov 3, 2023
9ff6891
`k-stat`: increase icon size
distantnative Nov 3, 2023
3bad808
Remove `<k-autosize>`
distantnative Nov 3, 2023
203a801
Add missing since tag
distantnative Nov 3, 2023
ea9535f
Merge pull request #5908 from getkirby/v4/enhancement/stat-icon
distantnative Nov 3, 2023
8a976d6
New dumber `k-tags`
distantnative Oct 19, 2023
cc55758
New `k-picklist-input` and dropdown
distantnative Oct 19, 2023
0b58961
Add since tags for picklist components
distantnative Oct 19, 2023
21fed73
Add inline docs for `k-picklist-input`
distantnative Oct 19, 2023
c231546
Fix TagsInput toggle
distantnative Oct 19, 2023
67e84a3
TagsInput: don’t show choice inputs
distantnative Oct 19, 2023
c4f7d97
MultiselectInput: hide unchecked choice inputs
distantnative Oct 19, 2023
5ff3041
Fix sort/draggable for MultiselectInput
distantnative Oct 19, 2023
53484e4
Picklist: use `add` as default submit label
distantnative Oct 19, 2023
afa845c
Picklist: support `search.display`
distantnative Oct 19, 2023
c76f84f
Picklist: lab example for `search.display`
distantnative Oct 19, 2023
735f393
Picklist: fix maxheight in dropdown
distantnative Oct 19, 2023
831931d
`k-tags`: use grab curstor when draggable
distantnative Oct 19, 2023
f7f21b7
Multiselect: use pointer cursor
distantnative Oct 19, 2023
f204f59
Tags: also use grabbing cursor
distantnative Oct 19, 2023
2d3ce37
PicklistDropdown: keep open on click
distantnative Oct 19, 2023
61bdcf7
Tweak styling
distantnative Oct 27, 2023
52ba1ea
Better checkbox styles
bastianallgeier Nov 1, 2023
849d59e
Fix drag to empty blocks list
distantnative Nov 3, 2023
ba016fa
Tweak style of Toggle input
distantnative Nov 3, 2023
b1c552b
Fix CalendarInput
distantnative Nov 3, 2023
63e56b0
Merge pull request #5917 from getkirby/v4/fix/calendar-input
bastianallgeier Nov 4, 2023
4fd9137
Merge pull request #5914 from getkirby/v4/fix/autosize
bastianallgeier Nov 4, 2023
acf747d
Move container to dialog fields
bastianallgeier Nov 4, 2023
3d3628e
Speed up transition and don’t animate checkmark
bastianallgeier Nov 4, 2023
841bf64
Merge pull request #5916 from getkirby/v4/enhancement/toggle-style
bastianallgeier Nov 4, 2023
2afaf08
Merge pull request #5912 from getkirby/v4/fix/totp-dialog
bastianallgeier Nov 4, 2023
7e47813
Refactor registration button in menu
bastianallgeier Nov 4, 2023
a6b18dc
`k-header`: add warning for removed tabs support
distantnative Nov 4, 2023
541897d
Finalize styling
bastianallgeier Nov 4, 2023
07cd602
Include max date in error msg for date.between
lukasbestle Nov 4, 2023
80fe2a9
Move activation into its own component and state module
bastianallgeier Nov 4, 2023
1108f49
Activation bubble lab example
bastianallgeier Nov 4, 2023
0d61ad3
Fix unit tests
bastianallgeier Nov 4, 2023
8fadb01
Translate activation message
bastianallgeier Nov 4, 2023
04a8447
Merge pull request #5920 from getkirby/fix/date-between-validation
bastianallgeier Nov 4, 2023
9016ac3
Merge pull request #5918 from getkirby/v4/fix/header-tabs-deprecated
bastianallgeier Nov 4, 2023
2748b0f
Merge pull request #5915 from getkirby/v4/fix/5910-blocks-list-empty
bastianallgeier Nov 4, 2023
9670223
Merge branch 'develop' into v4/develop
distantnative Nov 4, 2023
927f78a
Show activation bubble in mobile nav
distantnative Nov 4, 2023
febd01c
Prevent upload of .pht files
lukasbestle Nov 4, 2023
cfc0210
Merge pull request #5925 from getkirby/fix/upload-pht
lukasbestle Nov 5, 2023
046c7d7
Merge branch 'develop' into v4/develop
distantnative Nov 5, 2023
e6e928f
Switch to “Activate” wording
distantnative Nov 5, 2023
79881d4
Apply suggestions from code review
distantnative Nov 5, 2023
fae7f1d
Update i18n/translations/en.json
distantnative Nov 5, 2023
c655a20
Upgrade npm dependencies
distantnative Nov 6, 2023
cb73bc5
Fix unit tests
distantnative Nov 6, 2023
2d80261
Dom: Pass options array to callbacks
lukasbestle Nov 6, 2023
e821214
Dom: Normalize options for all public methods
lukasbestle Nov 5, 2023
d4d0d22
Dom: New allowHostRelativeUrls option
lukasbestle Nov 6, 2023
17fcb4f
Unit test for UUID links in the writer field
lukasbestle Nov 5, 2023
840e1e8
Merge pull request #5921 from getkirby/v4/enhancement/activation-bubble
bastianallgeier Nov 7, 2023
63127a4
Merge pull request #5926 from getkirby/v4/fix/5922-registration-wording
bastianallgeier Nov 7, 2023
59344f2
Update dependencies
bastianallgeier Nov 7, 2023
1ce4180
Merge pull request #5932 from getkirby/release/3.9.8-rc.1
bastianallgeier Nov 7, 2023
45c5030
Handle fields without props
bastianallgeier Nov 7, 2023
2009794
Merge pull request #5928 from getkirby/v4/fix/5208-dom-host-relative-…
bastianallgeier Nov 7, 2023
f6b37e2
Merge pull request #5933 from getkirby/v4/fix/5931-handle-fields-with…
distantnative Nov 7, 2023
fa31482
Merge branch 'develop' into v4/develop
distantnative Nov 7, 2023
3511efb
Merge pull request #5923 from getkirby/v4/enhancement/activation-mobile
bastianallgeier Nov 8, 2023
9210247
More dropdown examples
bastianallgeier Nov 9, 2023
ba071b2
Fix click on dropdown page for pagination component #5940
afbora Nov 9, 2023
480b78b
Various design and UX improvements
bastianallgeier Nov 9, 2023
983f926
More style adjustments and keyboard nav improvements
bastianallgeier Nov 9, 2023
5137ec8
Use new triangle icon for more button
bastianallgeier Nov 9, 2023
1cfb6e9
Fix keyboard navigation in the search input
bastianallgeier Nov 9, 2023
0775b4c
Use outline for in tags dropdown
bastianallgeier Nov 9, 2023
4ee7ac5
Merge pull request #5943 from getkirby/v4/fix/5940-pagination-dropdown
bastianallgeier Nov 9, 2023
d938b9f
Fix field states without options
bastianallgeier Nov 9, 2023
aafd922
Fix the selected items in the page move dialog
bastianallgeier Nov 9, 2023
31898b8
Hide add btn when not allowed
distantnative Nov 9, 2023
e5dcfde
Use add icon, not plus
distantnative Nov 9, 2023
f4eaaa1
Fix highlighting in picklist input itself
distantnative Nov 9, 2023
39483ec
Picklist: highlight currently chosen items
distantnative Nov 9, 2023
736d2a8
Use angle down icon
distantnative Nov 9, 2023
f71fbe8
Show tags toggle on hover
distantnative Nov 9, 2023
f103ce7
Tags: no btn on hover, but pointer cursor
distantnative Nov 9, 2023
b4b247f
Remove triangle icon
distantnative Nov 9, 2023
d7eb629
Fix cs issues
bastianallgeier Nov 9, 2023
d7cdec9
Merge pull request #5947 from getkirby/v4/fix/empty-options
bastianallgeier Nov 9, 2023
abca6ca
Small padding fix
bastianallgeier Nov 9, 2023
bf81bbb
Merge pull request #5949 from getkirby/v4/enhancement/picklist-input-…
bastianallgeier Nov 9, 2023
fbf88d4
Merge pull request #5948 from getkirby/v4/fix/move-dialog
bastianallgeier Nov 9, 2023
260ee59
Merge pull request #5822 from getkirby/v4/enhancement/picklist-input
bastianallgeier Nov 9, 2023
02b5f9a
Update panel dist files
bastianallgeier Nov 10, 2023
1d973cd
Bump version number
bastianallgeier Nov 10, 2023
bda8378
Update composer dependencies
bastianallgeier Nov 10, 2023
982c737
Update translations
bastianallgeier Nov 10, 2023
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ tests/ export-ignore
panel/.env.example export-ignore
panel/.eslintrc.js export-ignore
panel/.prettierrc.json export-ignore
panel/dist/ui export-ignore
panel/jsconfig.json export-ignore
panel/lab export-ignore
panel/package-lock.json export-ignore
panel/package.json export-ignore
panel/public export-ignore
Expand Down
4 changes: 2 additions & 2 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.0.0-beta.3",
"version": "4.0.0-rc.1",
"keywords": [
"kirby",
"cms",
Expand Down Expand Up @@ -39,7 +39,7 @@
"christian-riesen/base32": "1.6.0",
"claviska/simpleimage": "4.0.6",
"composer/semver": "3.4.0",
"filp/whoops": "2.15.3",
"filp/whoops": "2.15.4",
"getkirby/composer-installer": "^1.2.1",
"laminas/laminas-escaper": "2.13.0",
"michelf/php-smartypants": "1.8.1",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

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

9 changes: 9 additions & 0 deletions config/areas/lab/drawers.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
'lab.docs' => [
'pattern' => 'lab/docs/(:any)',
'load' => function (string $component) {
if (Docs::installed() === false) {
return [
'component' => 'k-text-drawer',
'props' => [
'text' => 'The UI docs are not installed.'
]
];
}

$docs = new Docs($component);

return [
Expand Down
61 changes: 41 additions & 20 deletions config/areas/lab/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,27 @@
return [
'component' => 'k-lab-index-view',
'props' => [
'tab' => 'examples',
'categories' => Category::all(),
'info' => Category::installed() ? null : 'The default Lab examples are not installed.',
'tab' => 'examples',
],
];
}
],
'lab.docs' => [
'pattern' => 'lab/docs',
'action' => function () {
$props = match (Docs::installed()) {
true => [
'categories' => [['examples' => Docs::all()]],
'tab' => 'docs',
],
false => [
'info' => 'The UI docs are not installed.',
'tab' => 'docs',
]
};

return [
'component' => 'k-lab-index-view',
'title' => 'Docs',
Expand All @@ -28,34 +40,43 @@
'link' => 'lab/docs'
]
],
'props' => [
'tab' => 'docs',
'categories' => [
['examples' => Docs::all()]
],
],
'props' => $props,
];
}
],
'lab.doc' => [
'pattern' => 'lab/docs/(:any)',
'action' => function (string $component) {
$crumbs = [
[
'label' => 'Docs',
'link' => 'lab/docs'
],
[
'label' => $component,
'link' => 'lab/docs/' . $component
]
];

if (Docs::installed() === false) {
return [
'component' => 'k-lab-index-view',
'title' => $component,
'breadcrumb' => $crumbs,
'props' => [
'info' => 'The UI docs are not installed.',
'tab' => 'docs',
],
];
}

$docs = new Docs($component);

return [
'component' => 'k-lab-docs-view',
'title' => $component,
'breadcrumb' => [
[
'label' => 'Docs',
'link' => 'lab/docs'
],
[
'label' => $component,
'link' => 'lab/docs/' . $component
]
],
'props' => [
'component' => 'k-lab-docs-view',
'title' => $component,
'breadcrumb' => $crumbs,
'props' => [
'component' => $component,
'docs' => $docs->toArray(),
'lab' => $docs->lab()
Expand Down
14 changes: 10 additions & 4 deletions config/areas/site/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

use Kirby\Cms\App;
use Kirby\Cms\Find;
use Kirby\Cms\Page;
use Kirby\Cms\PageRules;
use Kirby\Cms\Response;
use Kirby\Exception\Exception;
use Kirby\Exception\InvalidArgumentException;
use Kirby\Exception\PermissionException;
Expand All @@ -14,6 +12,7 @@
use Kirby\Panel\Panel;
use Kirby\Toolkit\I18n;
use Kirby\Toolkit\Str;
use Kirby\Uuid\Uuids;

$fields = require __DIR__ . '/../fields/dialogs.php';
$files = require __DIR__ . '/../files/dialogs.php';
Expand Down Expand Up @@ -516,14 +515,21 @@
'page.move' => [
'pattern' => 'pages/(:any)/move',
'load' => function (string $id) {
$page = Find::page($id);
$page = Find::page($id);
$parent = $page->parentModel();

if (Uuids::enabled() === false) {
$parentId = $parent?->id() ?? '/';
} else {
$parentId = $parent?->uuid()->toString() ?? 'site://';
}

return [
'component' => 'k-page-move-dialog',
'props' => [
'value' => [
'move' => $page->panel()->url(true),
'parent' => $page->parent()?->panel()->url(true) ?? '/site'
'parent' => $parentId
]
]
];
Expand Down
4 changes: 2 additions & 2 deletions config/areas/site/requests.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$panel = $site->panel();
$uuid = $site->uuid()?->toString();
$url = $site->url();
$value = $uuid ?? $url;
$value = $uuid ?? '/';

return [
[
Expand All @@ -44,7 +44,7 @@
$panel = $child->panel();
$uuid = $child->uuid()?->toString();
$url = $child->url();
$value = $uuid ?? $url;
$value = $uuid ?? $child->id();

$pages[] = [
'children' => $panel->url(true),
Expand Down
12 changes: 6 additions & 6 deletions config/areas/system/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,24 @@
'props' => [
'fields' => [
'domain' => [
'label' => I18n::translate('license.unregistered'),
'label' => I18n::translate('license.activate.label'),
'type' => 'info',
'theme' => $local ? 'warning' : 'info',
'text' => I18n::template('license.register.' . ($local ? 'local' : 'domain'), ['host' => $system->indexUrl()])
'text' => I18n::template('license.activate.' . ($local ? 'local' : 'domain'), ['host' => $system->indexUrl()])
],
'license' => [
'label' => I18n::translate('license.register.label'),
'label' => I18n::translate('license.code.label'),
'type' => 'text',
'required' => true,
'counter' => false,
'placeholder' => 'K3-',
'help' => I18n::translate('license.register.help') . ' ' . '<a href="https://getkirby.com/buy" target="_blank">' . I18n::translate('license.buy') . ' &rarr;</a>'
'help' => I18n::translate('license.code.help') . ' ' . '<a href="https://getkirby.com/buy" target="_blank">' . I18n::translate('license.buy') . ' &rarr;</a>'
],
'email' => Field::email(['required' => true])
],
'submitButton' => [
'icon' => 'key',
'text' => I18n::translate('license.register'),
'text' => I18n::translate('activate'),
],
'value' => [
'license' => null,
Expand All @@ -88,7 +88,7 @@

return [
'event' => 'system.register',
'message' => I18n::translate('license.register.success')
'message' => I18n::translate('license.success')
];
// @codeCoverageIgnoreEnd
}
Expand Down
19 changes: 10 additions & 9 deletions config/areas/system/views.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,29 @@

$environment = [
[
'label' => $license ? I18n::translate('license') : I18n::translate('license.register.label'),
'label' => $license ? I18n::translate('license') : I18n::translate('license.activate.label'),
'value' => $license ? 'Kirby 3' : I18n::translate('license.unregistered.label'),
'theme' => $license ? null : 'negative',
'icon' => $license ? 'info' : 'key',
'dialog' => $license ? 'license' : 'registration'
],
[
'label' => $updateStatus?->label() ?? I18n::translate('version'),
'value' => $kirby->version(),
'link' => (
$updateStatus ?
$updateStatus->url() :
'https://github.com/getkirby/kirby/releases/tag/' . $kirby->version()
),
'theme' => $updateStatus?->theme()
'link' => $updateStatus?->url() ??
'https://github.com/getkirby/kirby/releases/tag/' . $kirby->version(),
'theme' => $updateStatus?->theme(),
'icon' => $updateStatus?->icon() ?? 'info'
],
[
'label' => 'PHP',
'value' => phpversion()
'value' => phpversion(),
'icon' => 'code'
],
[
'label' => I18n::translate('server'),
'value' => $system->serverSoftware() ?? '?'
'value' => $system->serverSoftware() ?? '?',
'icon' => 'server'
]
];

Expand Down
2 changes: 1 addition & 1 deletion config/fields/date.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
'key' => 'validation.date.between',
'data' => [
'min' => $min->format($format),
'max' => $min->format($format)
'max' => $max->format($format)
]
]);
} elseif ($min && $value->isMin($min) === false) {
Expand Down
Loading