Skip to content

Commit

Permalink
Merge pull request #47 from markstory/cakephp-45
Browse files Browse the repository at this point in the history
Upgrade to CakePHP 4.5.0
  • Loading branch information
markstory authored Jul 29, 2023
2 parents d92e576 + b273a5c commit fb8d36f
Show file tree
Hide file tree
Showing 54 changed files with 3,392 additions and 2,866 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ jobs:
run: |
# Run suites individually so we abort on first failure
# a string of timeouts takes a long time to work through.
vendor/bin/phpunit tests/Acceptance/LoginTest.php
vendor/bin/phpunit tests/Acceptance/ProjectsTest.php
vendor/bin/phpunit tests/Acceptance/TasksTest.php
vendor/bin/phpunit tests/Acceptance/TodayTest.php
vendor/bin/phpunit tests/Acceptance/UpcomingTest.php
vendor/bin/phpunit tests/Acceptance/LoginTest.php
flutter-test:
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions assets/js/app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'vite/modulepreload-polyfill';
import axios from 'axios';
import {InertiaApp} from '@inertiajs/inertia-react';
import {render} from 'react-dom';
Expand Down
14 changes: 7 additions & 7 deletions assets/sass/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

border: 1px solid transparent;
margin-bottom: 0;
padding: $space $space * 1.5;
padding: $space calc($space * 1.5);
border-radius: $border-radius;
height: $button-med-height;

// Space icons away from button text.
& > svg:first-child {
margin-right: $space / 2;
margin-right: calc($space / 2);
}

outline: none;
Expand Down Expand Up @@ -161,12 +161,12 @@ button,

.button-global-add {
position: fixed;
bottom: $space * 3.5;
right: $space * 3.5;
bottom: calc($space * 3.5);
right: calc($space * 3.5);
z-index: $z-modal;
border-radius: 50%;
width: $space * 7;
height: $space * 7;
width: calc($space * 7);
height: calc($space * 7);

> svg:first-child {
margin: 0;
Expand Down Expand Up @@ -220,7 +220,7 @@ button,
@extend .button-bar;

display: flex;
margin: 0 0 0 $space * 2;
margin: 0 0 0 calc($space * 2);
padding: 0;
}
// }}}
6 changes: 3 additions & 3 deletions assets/sass/components/calendarItemList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
padding: $space;
background: var(--color-bg-level1);
border-radius: $border-radius;
margin-bottom: $space * 1.5;
margin-bottom: calc($space * 1.5);
}

.calendar-item {
Expand All @@ -22,14 +22,14 @@
background: var(--calendar-color);
width: 4px;
height: 1.2em;
margin-right: $space / 2;
margin-right: calc($space / 2);
}

time {
color: var(--calendar-color);
font-weight: 500;
font-variant-numeric: tabular-nums;
margin-right: $space / 2;
margin-right: calc($space / 2);
}

a {
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/dnd.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
cursor: grab;
height: 30px;
width: 30px;
margin-right: $space / 2;
margin-right: calc($space / 2);
line-height: 1;
border: none;
padding: 3px;
Expand Down
4 changes: 2 additions & 2 deletions assets/sass/components/dropdownMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
color: var(--color-foreground);
border-radius: 0;
box-shadow: none;
padding: $space $space * 1.5;
padding: $space calc($space * 1.5);
text-align: left;
height: auto;

Expand All @@ -56,7 +56,7 @@
.dropdown-item-header {
line-height: 1.2;

padding: $space $space * 1.5;
padding: $space calc($space * 1.5);
margin: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/dueOn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
align-items: center;

svg {
margin-right: $space / 2;
margin-right: calc($space / 2);
}

&.none {
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/dueOnPicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
padding-bottom: $space;

svg {
margin-right: $space / 2;
margin-right: calc($space / 2);
}
.today svg {
color: var(--color-due-today);
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/markdownText.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
}
ul, ol {
margin-left: 0;
padding-left: $space * 2;
padding-left: calc($space * 2);
}
}
2 changes: 1 addition & 1 deletion assets/sass/components/profileMenu.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.profile-menu {
margin: 0 0 $space * 3 $space / 2;
margin: 0 0 calc($space * 3) calc($space / 2);

.avatar,
.avatar:hover {
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/projectBadge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

// Nudge icon to the left so that it lines up with
// any text above it.
margin-left: $space / 2 * -1;
margin-left: calc($space / 2 * -1);
}
6 changes: 3 additions & 3 deletions assets/sass/components/projectFilter.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.project-filter {
$item-height: 40px;
$icon-gap: $space * 0.75;
$icon-gap: calc($space * 0.75);

h3 {
color: var(--color-low-emphasis);
Expand All @@ -18,7 +18,7 @@
height: $item-height;
display: flex;
align-items: center;
padding: $space 0 $space $space / 2;
padding: $space 0 $space calc($space / 2);
margin: 0 $space * 2 1px 0;
text-decoration: none;
border-radius: $border-radius;
Expand All @@ -45,7 +45,7 @@
}

.dnd-dropper-left-offset {
margin-right: $space * 2;
margin-right: calc($space * 2);
}

.project-item {
Expand Down
6 changes: 3 additions & 3 deletions assets/sass/components/projectItem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
justify-content: space-between;
align-items: center;
width: max-content;
padding-right: $space / 2;
padding-right: calc($space / 2);
border-radius: $border-radius;
margin-bottom: 1px;

Expand Down Expand Up @@ -42,11 +42,11 @@

color: var(--color-fg);
text-decoration: none;
padding-left: $space / 2;
padding-left: calc($space / 2);
}

.counter {
margin: 0 $space / 2;
margin: 0 calc($space / 2);
}
}

Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/sectionContainer.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.section-container {
margin-top: $space * 5;
margin-top: calc($space * 5);

.controls {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ div.select-narrow__control {
}
div.select-narrow__value-container,
div.select__value-container {
padding: $space / 4 $space / 4 $space / 4 $space;
padding: calc($space / 4) calc($space / 4) calc($space / 4) $space;
}

.select-narrow__value-container > div,
Expand Down
4 changes: 2 additions & 2 deletions assets/sass/components/smartTaskInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.smart-task-input__control {
.date-mention,
.project-mention {
padding: $space / 2 0;
padding: calc($space / 2) 0;
border-radius: $border-radius;

background: var(--color-menu-hover);
Expand All @@ -13,7 +13,7 @@

.smart-task-input__highlighter {
height: $button-med-height;
padding: $space / 4 $space;
padding: calc($space / 4) $space;
line-height: 2;
}
.smart-task-input__suggestions {
Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/taskGroup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

.task-group + .heading-icon,
.task-group + .heading-task-group {
margin-top: $space * 5;
margin-top: calc($space * 5);
}
4 changes: 2 additions & 2 deletions assets/sass/components/taskQuickForm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
label {
font-size: $font-size-normal;
margin-bottom: $space / 2;
margin-bottom: calc($space / 2);
}

.attributes {
Expand Down Expand Up @@ -55,7 +55,7 @@
margin-top: $space;
}
.task-body textarea {
margin-top: $space / 2;
margin-top: calc($space / 2);
width: 100%;
}

Expand Down
10 changes: 5 additions & 5 deletions assets/sass/components/taskRow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

align-items: flex-start;
padding-top: $space;
padding-left: $space / 4;
padding-left: calc($space / 4);
padding-bottom: $space;
border-bottom: 1px solid var(--color-border-low);
background: var(--color-bg);
Expand Down Expand Up @@ -34,10 +34,10 @@

font-size: $font-size-normal;
color: var(--color-low-emphasis);
margin-top: $space * 0.75;
margin-top: calc($space * 0.75);

> * + * {
margin-left: $space * 1.5;
margin-left: calc($space * 1.5);
}
}

Expand All @@ -51,7 +51,7 @@
display: flex;
align-items: center;
position: absolute;
top: $space * 0.75;
top: calc($space * 0.75);
right: 0;

background: var(--color-bg);
Expand All @@ -76,7 +76,7 @@

// Pad in so that task actions don't overlap with text.
.task-row > a {
padding-right: $space * 3;
padding-right: calc($space * 3);
}
}

Expand Down
6 changes: 3 additions & 3 deletions assets/sass/components/taskSubtasks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
justify-content: flex-start;

min-height: 30px;
margin-bottom: $space / 2;
margin-bottom: calc($space / 2);

input[type=checkbox] {
margin-right: $space;
Expand All @@ -30,15 +30,15 @@
}

.task-subtasks.is-new {
margin-top: $space * 3;
margin-top: calc($space * 3);
}

.subtask-sorter {
padding: 0;
margin-left: -12px;
}
.subtask-addform {
margin-left: ($space * 3) - 2;
margin-left: calc(($space * 3) - 2px);
display: grid;
grid-template-columns: max(20%, 200px) min-content;
gap: $space;
Expand Down
6 changes: 3 additions & 3 deletions assets/sass/components/toggleCheckbox.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Toggle buttons convert a checkbox into
// an on/off switch.
$toggle-width: $button-narrow-height * 2;
$toggle-knob-diameter: $button-narrow-height - 8;
$toggle-width: calc($button-narrow-height * 2);
$toggle-knob-diameter: calc($button-narrow-height - 8px);

.toggle-checkbox {
position: relative;
Expand Down Expand Up @@ -53,7 +53,7 @@ $toggle-knob-diameter: $button-narrow-height - 8;
}
input:checked + .knob {
background: var(--color-toggle-checked);
transform: translateX(($toggle-width / 2) - 1);
transform: translateX(calc($toggle-width / 2) - 1);
}
}

Expand Down
2 changes: 1 addition & 1 deletion assets/sass/components/tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
background: var(--color-invert-bg);
color: var(--color-invert-fg);
border-radius: $border-radius;
padding: $space / 2 $space;
padding: calc($space / 2) $space;

z-index: $z-modal;
pointer-events: none;
Expand Down
Loading

0 comments on commit fb8d36f

Please sign in to comment.