Add domain names to certificates table

This commit is contained in:
Jamie Curnow
2024-09-15 22:33:11 +10:00
parent d121de808c
commit d2048e540d
4 changed files with 19 additions and 4 deletions

View File

@ -2,7 +2,6 @@ import { useEffect, ReactNode } from "react";
import { Box, Container, useToast } from "@chakra-ui/react";
import { useQueryClient } from "@tanstack/react-query";
import { getSSEToken, SSEMessage } from "src/api/npm";
import { Footer, Navigation } from "src/components";
import { intl } from "src/locale";
@ -26,6 +25,7 @@ function SiteWrapper({ children }: Props) {
eventSource.onmessage = (e: any) => {
const j: SSEMessage = JSON.parse(e.data);
if (j) {
console.log("SSE Message:", j);
if (j.affects) {
queryClient.invalidateQueries({ queryKey: [j.affects] });
}

View File

@ -8,6 +8,7 @@ import {
ActionsFormatter,
CertificateStatusFormatter,
CertificateTypeFormatter,
DomainsFormatter,
GravatarFormatter,
IDFormatter,
MonospaceFormatter,
@ -59,7 +60,14 @@ function Table({
Cell: MonospaceFormatter(),
},
{
Header: intl.formatMessage({ id: "column.validation-type" }),
Header: intl.formatMessage({ id: "column.domain-names" }),
accessor: "domainNames",
sortable: true,
Filter: TextFilter,
Cell: DomainsFormatter(),
},
{
Header: intl.formatMessage({ id: "column.type" }),
accessor: "type",
sortable: true,
Cell: CertificateTypeFormatter(),