Feat: schedule added to dashboard view. logo rework
This commit is contained in:
@@ -162,9 +162,9 @@
|
||||
<div class="bg-white dark:bg-slate-800 rounded-xl shadow-lg p-6">
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h2 class="text-xl font-semibold text-gray-900 dark:text-white">Upcoming Actions</h2>
|
||||
<p class="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
||||
Individual scheduled start/stop/download actions
|
||||
<h2 id="schedules-title" class="text-xl font-semibold text-gray-900 dark:text-white">Upcoming Actions</h2>
|
||||
<p id="schedules-subtitle" class="text-sm text-gray-500 dark:text-gray-400 mt-1">
|
||||
Scheduled start/stop/download actions
|
||||
</p>
|
||||
</div>
|
||||
<select id="schedules-filter" onchange="filterScheduledActions()"
|
||||
@@ -963,6 +963,21 @@ function filterScheduledActions() {
|
||||
? `/api/projects/${projectId}/schedules`
|
||||
: `/api/projects/${projectId}/schedules?status=${filter}`;
|
||||
|
||||
// Update section title based on filter
|
||||
const titleEl = document.getElementById('schedules-title');
|
||||
const subtitleEl = document.getElementById('schedules-subtitle');
|
||||
|
||||
const titles = {
|
||||
'pending': { title: 'Upcoming Actions', subtitle: 'Scheduled start/stop/download actions' },
|
||||
'completed': { title: 'Completed Actions', subtitle: 'Successfully executed actions' },
|
||||
'failed': { title: 'Failed Actions', subtitle: 'Actions that encountered errors' },
|
||||
'all': { title: 'All Actions', subtitle: 'Complete action history' }
|
||||
};
|
||||
|
||||
const config = titles[filter] || titles['all'];
|
||||
titleEl.textContent = config.title;
|
||||
subtitleEl.textContent = config.subtitle;
|
||||
|
||||
htmx.ajax('GET', url, {
|
||||
target: '#project-schedules',
|
||||
swap: 'innerHTML'
|
||||
|
||||
Reference in New Issue
Block a user