Skip to content

Commit 0613dce

Browse files
committed
fixes contributing getting started alerts, removes autosetup page from github integration
1 parent 4d6ea36 commit 0613dce

18 files changed

Lines changed: 26 additions & 142 deletions

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

src/components/SwaggerReference.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
DialogTitle,
1313
} from '@/components/ui/dialog'
1414
import { Button } from '@/components/ui/button'
15-
import { Alert, AlertDescription } from '@/components/ui/alert'
15+
import { Callout } from '@document-writing-tools/kernux-theme'
1616
import { Textarea } from './ui/textarea'
1717
import { uniq } from 'lodash'
1818

@@ -147,19 +147,17 @@ const SwaggerReference: React.FC = () => {
147147
<>
148148
<div className="mt-6">
149149
{/* PAT Configuration Banner */}
150-
<Alert
151-
className={`mb-5 ${isConfigured ? 'border-success/30 bg-success/10' : ''}`}
152-
>
150+
<Callout type={isConfigured ? 'success' : 'info'}>
153151
<div className="flex items-center justify-between">
154152
<div>
155153
<h3 className="mb-1 text-sm font-semibold">
156154
Personal Access Token (PAT) Authentication
157155
</h3>
158-
<AlertDescription>
156+
<p>
159157
{isConfigured
160158
? 'Private key configured. Requests will be signed automatically.'
161159
: 'Configure your private key to enable automatic request signing.'}
162-
</AlertDescription>
160+
</p>
163161
</div>
164162
<div className="flex gap-2">
165163
{isConfigured && (
@@ -179,7 +177,7 @@ const SwaggerReference: React.FC = () => {
179177
</Button>
180178
</div>
181179
</div>
182-
</Alert>
180+
</Callout>
183181

184182
{/* PAT Configuration Dialog */}
185183
<Dialog open={showDialog} onOpenChange={setShowDialog}>

src/components/reachabilityAnalysis/reachability-analysis-hero.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Input } from 'src/components/ui/input'
1+
import { Input } from '@/components/ui/input'
22

33

44
interface HeroProps {

src/components/reachabilityAnalysis/reachability-analysis-package-details.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useState } from 'react'
2-
import { ReachabilityAnalysisResponse } from 'src/components/reachabilityAnalysis/reachability-types'
2+
import { ReachabilityAnalysisResponse } from '@/components/reachabilityAnalysis/reachability-types'
33
import { Skeleton } from '@/components/ui/skeleton'
44
import { Button } from '@/components/ui/button'
55
import Link from 'next/link'
66
import { ExternalLink } from 'lucide-react'
7-
import { fetcher } from 'src/lib/fetcher'
7+
import { fetcher } from '@/lib/fetcher'
88
import useSWR from 'swr'
99
import { Container } from '../ui/container'
1010

src/components/reachabilityAnalysis/reachability-analysis-page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import ReachabilityAnalysisHero from 'src/components/reachabilityAnalysis/reachability-analysis-hero'
1+
import ReachabilityAnalysisHero from '@/components/reachabilityAnalysis/reachability-analysis-hero'
22

3-
import { DataTable } from 'src/components/reachabilityAnalysis/reachability-analysis-results-table'
4-
import { columns } from 'src/components/reachabilityAnalysis/columns'
3+
import { DataTable } from '@/components/reachabilityAnalysis/reachability-analysis-results-table'
4+
import { columns } from '@/components/reachabilityAnalysis/columns'
55

66
import { useState, useEffect, useRef } from 'react'
77
import { useRouter } from 'next/router'
8-
import { fetcher, API_BASE_URL } from 'src/lib/fetcher'
8+
import { fetcher, API_BASE_URL } from '@/lib/fetcher'
99
import useSWR from 'swr'
1010
import { Container } from '../ui/container'
11-
import type { Package } from 'src/components/reachabilityAnalysis/columns'
11+
import type { Package } from '@/components/reachabilityAnalysis/columns'
1212

1313
interface ReachabilityResponse {
1414
data: Package[]

src/components/reachabilityAnalysis/reachability-analysis-results-table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
import { Button } from 'src/components/ui/button'
3-
import { Skeleton } from 'src/components/ui/skeleton'
4-
import {Table,TableBody,TableCell,TableHead,TableHeader,TableRow} from 'src/components/ui/table'
2+
import { Button } from '@/components/ui/button'
3+
import { Skeleton } from '@/components/ui/skeleton'
4+
import {Table,TableBody,TableCell,TableHead,TableHeader,TableRow} from '@/components/ui/table'
55
import {ColumnDef,SortingState,flexRender,getCoreRowModel,getSortedRowModel,useReactTable} from '@tanstack/react-table'
66

77
import * as React from 'react'

src/components/ui/alert.tsx

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/pages/contributing/getting-started.mdx

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ lang: "en-US"
1313
ignoreChecks:
1414
- "checkIfTitleContainsKeywordPrimary"
1515
---
16-
import { DocSteps as Steps } from '@document-writing-tools/kernux-theme'
17-
import { Badge } from "src/components/ui/badge"
18-
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
19-
import { LucideInfo } from "lucide-react";
16+
import { DocSteps as Steps, Callout } from '@document-writing-tools/kernux-theme'
17+
import { Badge } from "@/components/ui/badge"
2018

2119

2220

@@ -78,12 +76,7 @@ Run the following command:
7876
docker compose up -d
7977
```
8078

81-
<Alert className="mt-4 grid w-full max-w-xl items-start gap-4" variant="default | destructive">
82-
<LucideInfo className="h-4 w-4" />
83-
<AlertDescription>
84-
Keep this running in a seperate terminal.
85-
</AlertDescription>
86-
</Alert>
79+
<Callout type="info">Keep this running in a separate terminal.</Callout>
8780

8881
<h3>Step 4: Start the application</h3>
8982

@@ -93,12 +86,7 @@ Run this command to start the backend:
9386
make
9487
```
9588

96-
<Alert className="mt-4 grid w-full max-w-xl items-start gap-4" variant="default | destructive">
97-
<LucideInfo className="h-4 w-4" />
98-
<AlertDescription>
99-
```make``` will only work sequentially after ```docker compose up -d```.
100-
</AlertDescription>
101-
</Alert>
89+
<Callout type="info">`make` will only work sequentially after `docker compose up -d`.</Callout>
10290

10391
</Steps>
10492

src/pages/how-to-guides/compliance/attestation-policies.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ignoreChecks:
1616

1717
import { Callout } from '@document-writing-tools/kernux-theme'
1818
import { DocTabs as Tabs } from '@document-writing-tools/kernux-theme'
19-
import { Badge } from 'src/components/ui/badge'
19+
import { Badge } from '@/components/ui/badge'
2020

2121
# Manage Compliance & Attestation Policies
2222

src/pages/how-to-guides/compliance/compliance-dashboards.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ignoreChecks:
1616

1717
import { Callout } from '@document-writing-tools/kernux-theme'
1818
import { DocTabs as Tabs } from '@document-writing-tools/kernux-theme'
19-
import { Badge } from "src/components/ui/badge"
19+
import { Badge } from "@/components/ui/badge"
2020

2121

2222
# View Compliance Dashboards

0 commit comments

Comments
 (0)