-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Completed scheduled maintenance should appear in timeline #93 #117
Open
steffjenl
wants to merge
5
commits into
cachethq:main
Choose a base branch
from
steffjenl:featuee/issue-93
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c516deb
Add schedule with status completed to incident timeline #93
steffjenl bd44346
Compile Assets
steffjenl f85e321
Merge main in to feature/issue-93
steffjenl 0e44bfc
Split incidents and schedules and rename to timeline and add edit but…
steffjenl 692b459
Merge branch 'main' into featuee/issue-93
jbrooksuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
@use('Cachet\Enums\ScheduleStatusEnum') | ||
@props([ | ||
'date', | ||
'schedules', | ||
]) | ||
|
||
@foreach($schedules as $schedule) | ||
<div x-data="{ timestamp: new Date(@js($schedule->completed_at)) }" class="bg-white border divide-y rounded-lg ml-9 dark:divide-zinc-700 dark:border-zinc-700 dark:bg-zinc-800"> | ||
<div @class([ | ||
'flex flex-col bg-zinc-50 p-4 dark:bg-zinc-900 gap-2', | ||
'rounded-lg', | ||
])> | ||
<div class="flex flex-col sm:flex-row justify-between gap-2 flex-col-reverse items-start sm:items-center"> | ||
<div class="flex flex-col flex-1"> | ||
<div class="flex gap-2 items-center"> | ||
<h3 class="max-w-full text-base font-semibold break-words sm:text-xl"> | ||
{{ $schedule->name}} | ||
</h3> | ||
@auth | ||
<a href="{{ $schedule->filamentDashboardEditUrl() }}" class="underline text-right text-sm text-zinc-500 hover:text-zinc-400 dark:text-zinc-400 dark:hover:text-zinc-300" title="{{ __('Edit Incident') }}"> | ||
<x-heroicon-m-pencil-square class="size-4" /> | ||
</a> | ||
@endauth | ||
</div> | ||
<span class="text-xs text-zinc-500 dark:text-zinc-400"> | ||
{{ $schedule->completed_at->diffForHumans() }} — <time datetime="{{ $schedule->completed_at->toW3cString() }}" x-text="timestamp.toLocaleString()"></time> | ||
</span> | ||
</div> | ||
<div class="flex justify-start sm:justify-end"> | ||
<x-cachet::badge :status="$schedule->status" /> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="relative"> | ||
<div class="flex flex-col px-4 divide-y dark:divide-zinc-700"> | ||
<div class="relative py-4" x-data="{ timestamp: new Date(@js($schedule->completed_at)) }"> | ||
<div class="prose-sm md:prose prose-zinc dark:prose-invert prose-a:text-primary-500 prose-a:underline prose-p:leading-normal">{!! $schedule->formattedMessage() !!}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endforeach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this, I think that if incidents are empty, but schedules aren't, then nothing will show.