fix(definitions): add doc slugs for gotify and archiveTeamWarrior

Merging dev introduced the Gotify integration and ArchiveTeam Warrior
widget/integration, which require entries in the doc-slug maps and the
generated documentation sitemap. Also remove a misplaced non-null
assertion in the group members page flagged by oxlint.
This commit is contained in:
Thomas Camlong committed 2026-06-16 16:23:02 +02:00
1 parent 066fb038b5
commit 5f588ae287
4 files changed
+12 -40

No files matched your search

@@ -1,17 +1,5 @@
import { notFound } from "next/navigation"; import { notFound } from "next/navigation";
import { import { Alert, Anchor, Center, Group, Stack, Table, TableTbody, TableTd, TableTr, Text, Title } from "@mantine/core";
Alert,
Anchor,
Center,
Group,
Stack,
Table,
TableTbody,
TableTd,
TableTr,
Text,
Title,
} from "@mantine/core";
import { IconExclamationCircle } from "@tabler/icons-react"; import { IconExclamationCircle } from "@tabler/icons-react";
import type { RouterOutputs } from "@homarr/api"; import type { RouterOutputs } from "@homarr/api";
@@ -53,13 +41,9 @@ export default async function GroupsDetailPage(props: GroupsDetailPageProps) {
const group = await api.group.getById({ id: params.id }); const group = await api.group.getById({ id: params.id });
const isReserved = group.name === everyoneGroup; const isReserved = group.name === everyoneGroup;
const filteredMembers = searchParams.search const searchTerm = searchParams.search?.trim().toLowerCase();
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const filteredMembers = searchTerm
group.members.filter((member) => ? group.members.filter((member) => member.name?.toLowerCase().includes(searchTerm))
member.name
?.toLowerCase()
.includes(searchParams.search!.trim().toLowerCase()),
)
: group.members; : group.members;
// "local" = every enabled provider managed locally, "external" = none, "mixed" = some. // "local" = every enabled provider managed locally, "external" = none, "mixed" = some.
@@ -75,21 +59,14 @@ export default async function GroupsDetailPage(props: GroupsDetailPageProps) {
<ReservedGroupAlert /> <ReservedGroupAlert />
) : ( ) : (
managementType !== "local" && ( managementType !== "local" && (
<Alert <Alert variant="light" color="yellow" icon={<IconExclamationCircle size="1rem" stroke={1.5} />}>
variant="light"
color="yellow"
icon={<IconExclamationCircle size="1rem" stroke={1.5} />}
>
{t(`group.memberNotice.${managementType}`)} {t(`group.memberNotice.${managementType}`)}
</Alert> </Alert>
) )
)} )}
<Group justify="space-between"> <Group justify="space-between">
<SearchInput <SearchInput placeholder={`${tMembers("search")}...`} defaultValue={searchParams.search} />
placeholder={`${tMembers("search")}...`}
defaultValue={searchParams.search}
/>
{canManageMembers && !isReserved && ( {canManageMembers && !isReserved && (
<AddGroupMember <AddGroupMember
groupId={group.id} groupId={group.id}
@@ -108,12 +85,7 @@ export default async function GroupsDetailPage(props: GroupsDetailPageProps) {
<Table striped highlightOnHover> <Table striped highlightOnHover>
<TableTbody> <TableTbody>
{filteredMembers.map((member) => ( {filteredMembers.map((member) => (
<Row <Row key={group.id} member={member} groupId={group.id} disabled={isReserved} />
key={group.id}
member={member}
groupId={group.id}
disabled={isReserved}
/>
))} ))}
</TableTbody> </TableTbody>
</Table> </Table>
@@ -140,11 +112,7 @@ const Row = ({ member, groupId, disabled }: RowProps) => {
</Anchor> </Anchor>
</Group> </Group>
</TableTd> </TableTd>
<TableTd w={100}> <TableTd w={100}>{canBeRemoved && !disabled && <RemoveGroupMember user={member} groupId={groupId} />}</TableTd>
{canBeRemoved && !disabled && (
<RemoveGroupMember user={member} groupId={groupId} />
)}
</TableTd>
</TableTr> </TableTr>
); );
}; };
@@ -323,6 +323,7 @@ export type HomarrDocumentationPath =
| "/docs/integrations/github-containerregistry" | "/docs/integrations/github-containerregistry"
| "/docs/integrations/quay" | "/docs/integrations/quay"
| "/docs/integrations/ntfy" | "/docs/integrations/ntfy"
| "/docs/integrations/gotify"
| "/docs/integrations/ical" | "/docs/integrations/ical"
| "/docs/integrations/anchor" | "/docs/integrations/anchor"
| "/docs/integrations/truenas" | "/docs/integrations/truenas"
@@ -40,6 +40,7 @@ export const integrationDocSlugs: Record<IntegrationKind, string | null> = {
gitHubContainerRegistry: "github-containerregistry", gitHubContainerRegistry: "github-containerregistry",
quay: "quay", quay: "quay",
ntfy: "ntfy", ntfy: "ntfy",
gotify: "gotify",
ical: "ical", ical: "ical",
anchor: "anchor", anchor: "anchor",
truenas: "truenas", truenas: "truenas",
@@ -56,5 +57,6 @@ export const integrationDocSlugs: Record<IntegrationKind, string | null> = {
umami: "umami", umami: "umami",
peaNut: "peanut", peaNut: "peanut",
beszel: "beszel", beszel: "beszel",
archiveTeamWarrior: null,
mock: null, mock: null,
}; };
@@ -44,6 +44,7 @@ export const widgetDocSlugs: Record<WidgetKind, string | null> = {
audioStats: "audio-stats", audioStats: "audio-stats",
umami: "umami", umami: "umami",
ups: "ups", ups: "ups",
archiveTeamWarrior: null,
beszelSystemTable: "beszel-system-table", beszelSystemTable: "beszel-system-table",
beszelSystemGrid: "beszel-system-grid", beszelSystemGrid: "beszel-system-grid",
beszelAlerts: "beszel-alerts", beszelAlerts: "beszel-alerts",