Dashboard update. Update section (#390)

* Created command

* Pint Fixes

* Removed old upgrade command translations

* Update to Dashboard and linting Dashboard view

* Pint Fixes

* A few small improvements

* Delete modifications to upgrade command

* Revert "Removed old upgrade command translations"

This reverts commit 31315a0d9e2cd1cb43f01c2bbca9b4a4a06b34c1.

* Pint Fixes

* Boy132's Suggestions
This commit is contained in:
Senna 2024-06-16 23:54:49 +02:00 committed by GitHub
parent 011579451d
commit d7316c4dfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 30 deletions

View File

@ -19,9 +19,13 @@ return [
'button_issues' => 'Create Issue',
'button_features' => 'Discuss Features',
],
'intro-update' => [
'intro-update-available' => [
'heading' => 'Update available',
'content' => ':latestVersion is available! Read our documentation to update your Panel.',
'content' => ':latestVersion is now available! Read our documentation to update your Panel.',
],
'intro-no-update' => [
'heading' => 'Your Panel is up to date',
'content' => 'You are currently using :version. Your panel is up-to-date!',
],
'intro-first-node' => [
'heading' => 'No Nodes Detected',

View File

@ -1,5 +1,4 @@
<x-filament-panels::page>
<x-filament-panels::header
:actions="$this->getCachedHeaderActions()"
:breadcrumbs="filament()->hasBreadcrumbs() ? $this->getBreadcrumbs() : []"
@ -9,6 +8,31 @@
<p>{{ trans('dashboard/index.expand_sections') }}</p>
@if (!$isLatest)
<x-filament::section
icon="tabler-info-circle"
icon-color="warning"
id="intro-update-available"
:header-actions="$updateActions"
>
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-update-available.heading') }}</x-slot>
<p>{{ trans('dashboard/index.sections.intro-update-available.content', ['latestVersion' => $latestVersion]) }}</p>
</x-filament::section>
@else
<x-filament::section
icon="tabler-checkbox"
icon-color="success"
id="intro-no-update"
>
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-no-update.heading') }}</x-slot>
<p>{{ trans('dashboard/index.sections.intro-no-update.content', ['version' => $version]) }}</p>
</x-filament::section>
@endif
@if ($inDevelopment)
<x-filament::section
icon="tabler-code"
@ -21,27 +45,11 @@
>
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-developers.heading') }}</x-slot>
<p>{{ trans('dashboard/index.sections.intro-developers.content') }}</p>
<p>{{ trans('dashboard/index.sections.intro-developers.content') }}</p>
<p><br /></p>
<p>{{ trans('dashboard/index.sections.intro-developers.extra_note') }}</p>
</x-filament::section>
@endif
@if (!$isLatest)
<x-filament::section
icon="tabler-info-circle"
icon-color="warning"
id="intro-update"
collapsible
persist-collapsed
:header-actions="$updateActions"
>
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-update.heading') }}</x-slot>
<p>{{ trans('dashboard/index.sections.intro-update.content', ['latestVersion' => $latestVersion]) }}</p>
<p>{{ trans('dashboard/index.sections.intro-developers.extra_note') }}</p>
</x-filament::section>
@endif
@ -58,14 +66,13 @@
>
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-first-node.heading') }}</x-slot>
<p>{{ trans('dashboard/index.sections.intro-first-node.content') }}</p>
<p>{{ trans('dashboard/index.sections.intro-first-node.content') }}</p>
</x-filament::section>
@endif
{{-- No Nodes Active --}}
<x-filament::section
icon="tabler-heart-filled"
icon-color="danger"
@ -76,16 +83,14 @@
>
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-support.heading') }}</x-slot>
<p>{{ trans('dashboard/index.sections.intro-support.content') }}</p>
<p>{{ trans('dashboard/index.sections.intro-support.content') }}</p>
<p><br /></p>
<p>{{ trans('dashboard/index.sections.intro-support.extra_note') }}</p>
<p>{{ trans('dashboard/index.sections.intro-support.extra_note') }}</p>
</x-filament::section>
<x-filament::section
icon="tabler-question-mark"
icon-color="info"
@ -103,7 +108,4 @@
</p>
</x-filament::section>
<div>
</div>
</x-filament-panels::page>