feat: incident history (#113)

* feat: add incident history link to links in header

* fix: lower margin-bottom on header to have not that much wasted space

* chore: move footer to own component

* feat: add NoIncidents component

* feat: add incidents history page

* fix: add sorting by date

* fix: fix sorting

* feat: hash linking to individual incidents

* fix: always truthy title

* feat: remove hash

* feat: some link improvements

* feat: improve styles for alert, support mobile devices

* fix: remove unused vars, larger margin

---------

Co-authored-by: lyc8503 <[email protected]>
This commit is contained in:
Bennet Galleinandlyc8503 authored and GitHub committed 2025-09-21 15:18:20 +08:00
1 parent 5769a52f0c
commit 41257c6ae9
7 files changed
+235 -42

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import { Alert, Text } from '@mantine/core'
import { IconInfoCircle } from '@tabler/icons-react'
export default function NoIncidentsAlert({ style }: { style?: React.CSSProperties }) {
return (
<Alert
icon={<IconInfoCircle />}
title={
<span
style={{
fontSize: '1rem',
fontWeight: 700,
}}
>
{'No incidents in this month'}
</span>
}
color="gray"
withCloseButton={false}
style={{
position: 'relative',
margin: '16px auto 0 auto',
...style,
}}
>
<Text>There are no incidents for this month.</Text>
</Alert>
)
}