diff --git a/app/Filament/Resources/ResultResource/Pages/ListResults.php b/app/Filament/Resources/ResultResource/Pages/ListResults.php index a8743186f..578c649b0 100644 --- a/app/Filament/Resources/ResultResource/Pages/ListResults.php +++ b/app/Filament/Resources/ResultResource/Pages/ListResults.php @@ -15,6 +15,11 @@ protected function getTableQuery(): Builder return parent::getTableQuery()->orderBy('id', 'desc'); } + protected function getTablePollingInterval(): ?string + { + return '5s'; + } + protected function getHeaderWidgets(): array { return ResultResource::getWidgets(); diff --git a/app/Filament/Widgets/StatsOverview.php b/app/Filament/Widgets/StatsOverview.php index 6473bde2a..01b06371b 100644 --- a/app/Filament/Widgets/StatsOverview.php +++ b/app/Filament/Widgets/StatsOverview.php @@ -8,8 +8,6 @@ class StatsOverview extends BaseWidget { - protected static ?string $pollingInterval = null; - protected function getCards(): array { $result = Result::latest()->first(); diff --git a/composer.lock b/composer.lock index d6904357f..b2101f99b 100644 --- a/composer.lock +++ b/composer.lock @@ -1149,16 +1149,16 @@ }, { "name": "filament/filament", - "version": "v2.16.37", + "version": "v2.16.39", "source": { "type": "git", "url": "https://github.com/filamentphp/admin.git", - "reference": "79878c970960776bb252a9a938088308d851aa90" + "reference": "49d9460887fcf295faec180a759a57c8b0d48447" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/admin/zipball/79878c970960776bb252a9a938088308d851aa90", - "reference": "79878c970960776bb252a9a938088308d851aa90", + "url": "https://api.github.com/repos/filamentphp/admin/zipball/49d9460887fcf295faec180a759a57c8b0d48447", + "reference": "49d9460887fcf295faec180a759a57c8b0d48447", "shasum": "" }, "require": { @@ -1208,20 +1208,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2022-10-30T20:32:25+00:00" + "time": "2022-11-03T14:39:59+00:00" }, { "name": "filament/forms", - "version": "v2.16.37", + "version": "v2.16.39", "source": { "type": "git", "url": "https://github.com/filamentphp/forms.git", - "reference": "4a2e2bb32c74b050b3e3ee504f93043259ee888c" + "reference": "64fc90b4bae5b1d14bbdec8fa48557504c39a20e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/forms/zipball/4a2e2bb32c74b050b3e3ee504f93043259ee888c", - "reference": "4a2e2bb32c74b050b3e3ee504f93043259ee888c", + "url": "https://api.github.com/repos/filamentphp/forms/zipball/64fc90b4bae5b1d14bbdec8fa48557504c39a20e", + "reference": "64fc90b4bae5b1d14bbdec8fa48557504c39a20e", "shasum": "" }, "require": { @@ -1266,11 +1266,11 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2022-10-30T20:32:38+00:00" + "time": "2022-11-03T14:40:06+00:00" }, { "name": "filament/notifications", - "version": "v2.16.37", + "version": "v2.16.39", "source": { "type": "git", "url": "https://github.com/filamentphp/notifications.git", @@ -1320,7 +1320,7 @@ }, { "name": "filament/spatie-laravel-settings-plugin", - "version": "v2.16.37", + "version": "v2.16.39", "source": { "type": "git", "url": "https://github.com/filamentphp/spatie-laravel-settings-plugin.git", @@ -1367,16 +1367,16 @@ }, { "name": "filament/support", - "version": "v2.16.37", + "version": "v2.16.39", "source": { "type": "git", "url": "https://github.com/filamentphp/support.git", - "reference": "aa9da96484a9610a84b346b3984a89468e6ee31e" + "reference": "548ab60c617568ecea13ff8ea3cce21a5961afb1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/support/zipball/aa9da96484a9610a84b346b3984a89468e6ee31e", - "reference": "aa9da96484a9610a84b346b3984a89468e6ee31e", + "url": "https://api.github.com/repos/filamentphp/support/zipball/548ab60c617568ecea13ff8ea3cce21a5961afb1", + "reference": "548ab60c617568ecea13ff8ea3cce21a5961afb1", "shasum": "" }, "require": { @@ -1413,20 +1413,20 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2022-10-30T20:32:26+00:00" + "time": "2022-11-03T14:40:22+00:00" }, { "name": "filament/tables", - "version": "v2.16.37", + "version": "v2.16.39", "source": { "type": "git", "url": "https://github.com/filamentphp/tables.git", - "reference": "4f28c35794c78a8301ada9831fa70bcde0e936c4" + "reference": "8b7bbda5cf899687982154043be7edfc254ac07b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filamentphp/tables/zipball/4f28c35794c78a8301ada9831fa70bcde0e936c4", - "reference": "4f28c35794c78a8301ada9831fa70bcde0e936c4", + "url": "https://api.github.com/repos/filamentphp/tables/zipball/8b7bbda5cf899687982154043be7edfc254ac07b", + "reference": "8b7bbda5cf899687982154043be7edfc254ac07b", "shasum": "" }, "require": { @@ -1469,7 +1469,7 @@ "issues": "https://github.com/filamentphp/filament/issues", "source": "https://github.com/filamentphp/filament" }, - "time": "2022-10-30T20:32:26+00:00" + "time": "2022-11-03T14:40:26+00:00" }, { "name": "fruitcake/php-cors", @@ -2437,16 +2437,16 @@ }, { "name": "league/commonmark", - "version": "2.3.6", + "version": "2.3.7", "source": { "type": "git", "url": "https://github.com/thephpleague/commonmark.git", - "reference": "857afc47ce113454bd629037213378ba3219dd40" + "reference": "a36bd2be4f5387c0f3a8792a0d76b7d68865abbf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/857afc47ce113454bd629037213378ba3219dd40", - "reference": "857afc47ce113454bd629037213378ba3219dd40", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/a36bd2be4f5387c0f3a8792a0d76b7d68865abbf", + "reference": "a36bd2be4f5387c0f3a8792a0d76b7d68865abbf", "shasum": "" }, "require": { @@ -2539,7 +2539,7 @@ "type": "tidelift" } ], - "time": "2022-10-30T16:45:38+00:00" + "time": "2022-11-03T17:29:46+00:00" }, { "name": "league/config", @@ -7846,16 +7846,16 @@ }, { "name": "composer/pcre", - "version": "3.0.0", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd" + "reference": "4482b6409ca6bfc2af043a5711cd21ac3e7a8dfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/e300eb6c535192decd27a85bc72a9290f0d6b3bd", - "reference": "e300eb6c535192decd27a85bc72a9290f0d6b3bd", + "url": "https://api.github.com/repos/composer/pcre/zipball/4482b6409ca6bfc2af043a5711cd21ac3e7a8dfb", + "reference": "4482b6409ca6bfc2af043a5711cd21ac3e7a8dfb", "shasum": "" }, "require": { @@ -7897,7 +7897,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/3.0.0" + "source": "https://github.com/composer/pcre/tree/3.0.2" }, "funding": [ { @@ -7913,7 +7913,7 @@ "type": "tidelift" } ], - "time": "2022-02-25T20:21:48+00:00" + "time": "2022-11-03T20:24:16+00:00" }, { "name": "doctrine/instantiator", @@ -8054,16 +8054,16 @@ }, { "name": "filp/whoops", - "version": "2.14.5", + "version": "2.14.6", "source": { "type": "git", "url": "https://github.com/filp/whoops.git", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc" + "reference": "f7948baaa0330277c729714910336383286305da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", - "reference": "a63e5e8f26ebbebf8ed3c5c691637325512eb0dc", + "url": "https://api.github.com/repos/filp/whoops/zipball/f7948baaa0330277c729714910336383286305da", + "reference": "f7948baaa0330277c729714910336383286305da", "shasum": "" }, "require": { @@ -8113,7 +8113,7 @@ ], "support": { "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.14.5" + "source": "https://github.com/filp/whoops/tree/2.14.6" }, "funding": [ { @@ -8121,7 +8121,7 @@ "type": "github" } ], - "time": "2022-01-07T12:00:00+00:00" + "time": "2022-11-02T16:23:29+00:00" }, { "name": "hamcrest/hamcrest-php",