Should probably just let Claude write the commit messages too
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user