Skip to content

Commit 0890079

Browse files
committed
Merge branch 'main' into laravel-12
* main: (38 commits) Fixes Fix date order for past incidents in history (#237) (#255) Add Koren translation to config Add ko translation (#265) Add Edit Profile page (#276) Bump vite from 5.4.18 to 5.4.19 (#277) Add coverage testing (#260) Add trusted proxies to Cachet config Add comment Bump vite from 5.4.14 to 5.4.18 (#273) Bump minor larastan version (#271) Compile Assets Tests for MakeUserCommand (#268) Fix code styling Fix PHPStan errors Complete french translations (#269) Added spanish (Spain) translations (#266) Set `NIGHTWATCH_ENABLED` to `false` in CI Use parallel testing and lint as part of testing (#259) Remove unused metric points update route ...
2 parents e6e3b40 + 044cfc2 commit 0890079

File tree

104 files changed

+1902
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1902
-195
lines changed

.github/workflows/build-api-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
composer config repositories.scramble-pro '{"type": "composer", "url": "https://satis.dedoc.co"}'
3232
composer config http-basic.satis.dedoc.co ${{ secrets.SCRAMBLE_USERNAME }} ${{ secrets.SCRAMBLE_KEY }}
33-
composer require dedoc/scramble-pro:0.7.0-alpha.1 --dev
33+
composer require dedoc/scramble-pro:^0.7.4 --dev
3434
3535
- name: Checkout documentation repository
3636
uses: actions/checkout@v4

.github/workflows/run-tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
php-version: ${{ matrix.php }}
3232
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
33-
coverage: none
33+
coverage: xdebug
3434

3535
- name: Install dependencies
3636
run: |
@@ -73,7 +73,7 @@ jobs:
7373
with:
7474
php-version: ${{ matrix.php }}
7575
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
76-
coverage: none
76+
coverage: xdebug
7777

7878
- name: Install dependencies
7979
run: |
@@ -130,7 +130,7 @@ jobs:
130130
with:
131131
php-version: ${{ matrix.php }}
132132
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
133-
coverage: none
133+
coverage: xdebug
134134

135135
- name: Install dependencies
136136
run: |
@@ -187,7 +187,7 @@ jobs:
187187
with:
188188
php-version: ${{ matrix.php }}
189189
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
190-
coverage: none
190+
coverage: xdebug
191191

192192
- name: Install dependencies
193193
run: |
@@ -244,7 +244,7 @@ jobs:
244244
with:
245245
php-version: ${{ matrix.php }}
246246
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
247-
coverage: none
247+
coverage: xdebug
248248

249249
- name: Install dependencies
250250
run: |
@@ -289,7 +289,7 @@ jobs:
289289
with:
290290
php-version: ${{ matrix.php }}
291291
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
292-
coverage: none
292+
coverage: xdebug
293293

294294
- name: Install dependencies
295295
run: |

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ Cachet 3.x is currently in development and is not yet completely ready for produ
3333
- [x] Scheduled Maintenance
3434
- [x] Scheduled Maintenance Updates
3535
- [x] Components
36-
- [ ] Metrics
37-
- API and dashboard are working.
38-
- Frontend is in progress.
36+
- [x] Metrics
3937
- [ ] Subscribers
4038
- [x] API
4139
- Complete but may need some tweaks as we progress.

composer.json

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
"filament/filament": "^3.2.57",
2626
"filament/spatie-laravel-settings-plugin": "^3.2",
2727
"guzzlehttp/guzzle": "^7.8",
28-
"illuminate/cache": "^11.23.0|^12.0",
29-
"illuminate/console": "^11.23.0|^12.0",
30-
"illuminate/database": "^11.23.0|^12.0",
31-
"illuminate/events": "^11.23.0|^12.0",
32-
"illuminate/queue": "^11.23.0|^12.0",
33-
"illuminate/support": "^11.23.0|^12.0",
28+
"illuminate/cache": "^11.35.0|^12.0",
29+
"illuminate/console": "^11.35.0|^12.0",
30+
"illuminate/database": "^11.35.0|^12.0",
31+
"illuminate/events": "^11.35.0|^12.0",
32+
"illuminate/queue": "^11.35.0|^12.0",
33+
"illuminate/support": "^11.35.0|^12.0",
3434
"laravel/sanctum": "^4.0",
3535
"nesbot/carbon": "^2.70|^3.0",
3636
"spatie/laravel-data": "^4.11",
@@ -41,13 +41,15 @@
4141
"twig/twig": "^3.0"
4242
},
4343
"require-dev": {
44-
"dedoc/scramble": "0.12.0-alpha.1",
45-
"larastan/larastan": "^3.0",
44+
"dedoc/scramble": "^0.12.11",
45+
"larastan/larastan": "^3.4",
4646
"laravel/pail": "^1.1",
47+
"laravel/pint": "^1.21",
4748
"orchestra/testbench": "^9.5.1|^10.0",
4849
"pestphp/pest": "^3.2",
4950
"pestphp/pest-plugin-laravel": "^3.0",
50-
"pestphp/pest-plugin-livewire": "*"
51+
"pestphp/pest-plugin-livewire": "*",
52+
"pestphp/pest-plugin-type-coverage": "^3.3"
5153
},
5254
"minimum-stability": "dev",
5355
"prefer-stable": true,
@@ -102,6 +104,13 @@
102104
"start": [
103105
"@dev"
104106
],
105-
"test": "vendor/bin/pest"
107+
"test:lint": [
108+
"pint --test"
109+
],
110+
"test:unit": "pest --parallel --processes=10 --ci --coverage --compact",
111+
"test": [
112+
"@test:lint",
113+
"@test:unit"
114+
]
106115
}
107116
}

config/cachet.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
'api',
7878
],
7979

80+
'trusted_proxies' => env('CACHET_TRUSTED_PROXIES', ''),
81+
8082
/*
8183
|--------------------------------------------------------------------------
8284
| Cachet API Rate Limit (attempts per minute)
@@ -142,11 +144,13 @@
142144
'de_CH' => 'Deutsch (CH)',
143145
'en' => 'English',
144146
'en_GB' => 'English (UK)',
147+
'es_ES' => 'Spanish (ES)',
148+
'ko' => '한국어',
145149
'nl' => 'Nederlands',
150+
'ph' => 'Filipino',
146151
'pt_BR' => 'Português (BR)',
147152
'zh_CN' => '简体中文',
148153
'zh_TW' => '繁體中文',
149-
'ph' => 'Filipino',
150154
],
151155

152156
/*
@@ -160,6 +164,16 @@
160164
*/
161165
'demo_mode' => env('CACHET_DEMO_MODE', false),
162166

167+
/*
168+
|--------------------------------------------------------------------------
169+
| Cachet Blog Feed
170+
|--------------------------------------------------------------------------
171+
|
172+
| This is the URI to the Cachet blog feed. This is used to display
173+
| the latest blog posts on the status page. By default, this is
174+
| set to the public Cachet blog feed.
175+
|
176+
*/
163177
'feed' => [
164178
'uri' => env('CACHET_FEED_URI', 'https://blog.cachethq.io/rss'),
165179
'cache' => env('CACHET_FEED_CACHE', 3600),

database/migrations/2024_10_13_214300_drop_schedule_status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function up()
2525
*/
2626
public function down()
2727
{
28-
Schema::table('incidents', function (Blueprint $table) {
28+
Schema::table('schedules', function (Blueprint $table) {
2929
$table->unsignedInteger('status')->unsigned()->default(0);
3030
});
3131
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::table('users', function (Blueprint $table) {
15+
$table->string('preferred_locale')->nullable()->default('en')->change();
16+
});
17+
}
18+
19+
/**
20+
* Reverse the migrations.
21+
*/
22+
public function down(): void
23+
{
24+
Schema::table('users', function (Blueprint $table) {
25+
$table->string('preferred_locale')->nullable()->default(null)->change();
26+
});
27+
}
28+
};

database/seeders/DatabaseSeeder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@ public function run(): void
6060
'completed_at' => now()->subHours(12),
6161
]);
6262

63+
/** @phpstan-ignore-next-line argument.type */
6364
tap(Schedule::create([
6465
'name' => 'Documentation Maintenance',
6566
'message' => 'We will be conducting maintenance on our documentation servers. You may experience degraded performance during this time.',
6667
'scheduled_at' => now()->addHours(24),
6768
'completed_at' => null,
69+
/** @phpstan-ignore-next-line argument.type */
6870
]), function (Schedule $schedule) use ($user) {
6971
$update = new Update([
7072
'message' => <<<'EOF'

package-lock.json

Lines changed: 46 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@
2323
"prettier-plugin-tailwindcss": "^0.5.11",
2424
"tailwindcss": "^3.4.13",
2525
"vite": "^5.4"
26+
},
27+
"dependencies": {
28+
"chart.js": "^4.4.7",
29+
"chartjs-adapter-moment": "^1.0.1"
2630
}
2731
}

0 commit comments

Comments
 (0)