Lifecycle planning, and consistent empty and loading states
- Inventory: end of support and replacement cost per asset; a Lifecycle page showing what ages out year by year and what replacing it will cost; support ending within 90 days in the weekly digest - Lists: a shared empty state saying what is missing, why, and the one thing to do; "nothing matches" with a clear button; skeleton rows instead of empty-looking lists while loading Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
92726568b7
commit
846af02851
50 files changed
+4434
-233
No files matched your search
@@ -14,6 +14,7 @@ import SortableTh from "../components/SortableTh";
|
||||
import { downloadCsv } from "../utils/csv";
|
||||
import IntegrationPageTitle from "../components/IntegrationPageTitle";
|
||||
import { ErrorNotice } from "../components/Notice";
|
||||
import { EmptyRow } from "../components/EmptyState";
|
||||
|
||||
function healthBadge(status: string) {
|
||||
return status === "normal" ? (
|
||||
@@ -302,11 +303,7 @@ export default function Synology({ user: _user }: { user: CurrentUser }) {
|
||||
</tr>
|
||||
))}
|
||||
{sortedVolumes?.length === 0 && (
|
||||
<tr>
|
||||
<td colSpan={4} className="text-secondary text-center">
|
||||
No volumes found.
|
||||
</td>
|
||||
</tr>
|
||||
<EmptyRow colSpan={4} title="No volumes found" hint="The NAS answered with none. Check the account's permissions in DSM." action={{ label: "Check the integration", to: "/integrations" }} />
|
||||
)}
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -377,11 +374,7 @@ export default function Synology({ user: _user }: { user: CurrentUser }) {
|
||||
</tr>
|
||||
))}
|
||||
{sortedDisks?.length === 0 && (
|
||||
<tr>
|
||||
<td colSpan={5} className="text-secondary text-center">
|
||||
No disks found.
|
||||
</td>
|
||||
</tr>
|
||||
<EmptyRow colSpan={5} title="No disks found" hint="The NAS answered with none. Check the account's permissions in DSM." action={{ label: "Check the integration", to: "/integrations" }} />
|
||||
)}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in new issue
Block a user