display session activity

This commit is contained in:
Kiril Videlov 2023-02-28 09:46:48 +01:00
parent 87e9eb85aa
commit 0bc2109534
2 changed files with 12 additions and 0 deletions

View File

@ -1 +1,2 @@
export { default as TimelineDaySession } from './TimelineDaySession.svelte';
export { default as TimelineDaySessionActivities } from './TimelineDaySessionActivities.svelte';

View File

@ -13,6 +13,7 @@
import { add, format, differenceInSeconds, addSeconds } from 'date-fns';
import { Slider } from 'fluent-svelte';
import { CodeViewer } from '$lib/components';
import TimelineDaySessionActivities from '$lib/components/timeline/TimelineDaySessionActivities.svelte';
import 'fluent-svelte/theme.css';
export let data: PageData;
@ -282,6 +283,16 @@
{toHumanBranchName(uiSession.session.meta.branch)}
</div>
<div id="activities">
<div class="my-2 mx-1 bg-red-500">
<TimelineDaySessionActivities
activities={uiSession.session.activity}
sessionStart={uiSession.session.meta.startTimestampMs}
sessionEnd={uiSession.session.meta.lastTimestampMs}
/>
</div>
</div>
<div
class="flex flex-col h-full overflow-y-hidden p-1"
id="sessions-details"