Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

refactor(recycle-bin): drop the page-local header

Juan Denis5bfb0f6747ba
diff --git a/docs/screenshots/settings-recyclebin.png b/docs/screenshots/settings-recyclebin.png
index 4e857e63..771dfb70 100644
Binary files a/docs/screenshots/settings-recyclebin.png and b/docs/screenshots/settings-recyclebin.png differ
diff --git a/frontend/src/components/settings/RecycleBinTab.jsx b/frontend/src/components/settings/RecycleBinTab.jsx
index 18562b5f..d606b732 100644
--- a/frontend/src/components/settings/RecycleBinTab.jsx
+++ b/frontend/src/components/settings/RecycleBinTab.jsx
@@ -1,5 +1,5 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
-import { Trash2, Undo2, RefreshCw } from 'lucide-react';
+import { Trash2, Undo2 } from 'lucide-react';
import api from '@/services/api';
import { useToast } from '@/contexts/ToastContext';
import { useAuth } from '@/contexts/AuthContext';
@@ -228,18 +228,6 @@ export default function RecycleBinTab() {
return (
<div className="settings-section recyclebin">
- <div className="settings-section__head">
- <div>
- <h2>{t('app.recycleBinTab.recycleBin', 'Recycle bin')}</h2>
- <p className="settings-section__hint">
- {t('app.recycleBinTab.deletedRecordsAreKeptFor', 'Deleted records are kept for')} {retentionDays} {t('app.recycleBinTab.daysSoTheyCanBePut', 'days so they can be put back. Restoring returns the record itself — it does not re-apply configuration that was torn down at delete time (a domain’s vhost, for example).')}
- </p>
- </div>
- <Button variant="outline" size="sm" onClick={load} disabled={loading}>
- <RefreshCw size={15} /> {t('common.actions.refresh', 'Refresh')}
- </Button>
- </div>
-
{loading ? (
<EmptyState loading loadingVariant="table" title={t('app.recycleBinTab.loadingDeletedRecords', 'Loading deleted records…')} />
) : items.length === 0 ? (
@@ -250,9 +238,6 @@ export default function RecycleBinTab() {
/>
) : (
<>
- {/* The section's h2 above stays put — it heads the
- retention explanation as much as the table, so the
- picker sits with the table it actually belongs to. */}
<GridViewPicker
views={chrome.views}
label="items"