Should probably just let Claude write the commit messages too

This commit is contained in:
2025-07-11 08:44:07 -04:00
parent 4dec00d283
commit 370c29a6fc
13 changed files with 1416 additions and 27 deletions

View File

@@ -134,6 +134,13 @@ export const Dashboard: React.FC<DashboardProps> = () => {
}, [settings.autoRefreshInterval, fetchWorkflowRuns]);
// Sort workflow runs by created_at date (newest first)
const sortedWorkflowRuns = useMemo(() => {
return [...workflowRuns].sort((a, b) => {
return new Date(b.created_at).getTime() - new Date(a.created_at).getTime();
});
}, [workflowRuns]);
const statusCounts = {
total: workflowRuns.length,
success: workflowRuns.filter(r => r.conclusion === 'success').length,
@@ -237,13 +244,13 @@ export const Dashboard: React.FC<DashboardProps> = () => {
<div className="col-span-full flex justify-center py-12">
<RefreshCw className="w-8 h-8 animate-spin text-ctp-blue" />
</div>
) : workflowRuns.length === 0 ? (
) : sortedWorkflowRuns.length === 0 ? (
<div className="col-span-full text-center py-12">
<p className="text-ctp-subtext0">No workflow runs found.</p>
<p className="text-sm text-ctp-subtext1 mt-2">Check your config.json file</p>
</div>
) : (
workflowRuns.map(run => (
sortedWorkflowRuns.map(run => (
<CompactWorkflowCard
key={run.id}
run={run}