Files
Terry SuttonandJordi Enric b5991468ae Chore/security issues dropdown v2 (#29598)
* Nudges

* Use popoverseparator instead

* use variants pattern (#29599)

Update SecurityStatus.tsx

* Nudge padding

---------

Co-authored-by: Jordi Enric <37541088+jordienr@users.noreply.github.com>
2024-09-30 19:26:57 +00:00

37 lines
1.0 KiB
TypeScript

import { Lint } from 'data/lint/lint-query'
export enum LINTER_LEVELS {
ERROR = 'ERROR',
WARN = 'WARN',
INFO = 'INFO',
}
export type LintInfo = {
name: string
title: string
icon: JSX.Element
link: (args: { projectRef: string; metadata: Lint['metadata'] }) => string
linkText: string
docsLink: string
}
export const LINT_TABS = [
{
id: LINTER_LEVELS.ERROR,
label: 'Errors',
description: 'You should consider these issues urgent and fix them as soon as you can.',
descriptionShort: 'Consider these issues urgent and fix them as soon as you can.',
},
{
id: LINTER_LEVELS.WARN,
label: 'Warnings ',
description: 'You should try and read through these issues and fix them if necessary.',
descriptionShort: 'Read through these issues and fix them if necessary.',
},
{
id: LINTER_LEVELS.INFO,
label: 'Info ',
description: 'You should read through these suggestions and consider implementing them.',
descriptionShort: 'Read through these suggestions and consider implementing them.',
},
]