Rename policy into document
Signed-off-by: Bryan Frimin <bryan@getprobo.com> Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
committed by
Sacha Al Himdani
parent
1870e050ce
commit
b6aec0b14a
@@ -0,0 +1,21 @@
|
||||
import { DocumentVersionBadge } from "./DocumentVersionBadge";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
|
||||
export default {
|
||||
title: "Molecules/Badges/DocumentVersionBadge",
|
||||
component: DocumentVersionBadge,
|
||||
argTypes: {},
|
||||
} satisfies Meta<typeof DocumentVersionBadge>;
|
||||
|
||||
type Story = StoryObj<typeof DocumentVersionBadge>;
|
||||
|
||||
export const Default: Story = {
|
||||
render() {
|
||||
return (
|
||||
<div className="flex gap-2">
|
||||
<DocumentVersionBadge state="DRAFT" />
|
||||
<DocumentVersionBadge state="PUBLISHED" />
|
||||
</div>
|
||||
);
|
||||
},
|
||||
};
|
||||
@@ -5,7 +5,7 @@ type Props = {
|
||||
state: "DRAFT" | "PUBLISHED";
|
||||
};
|
||||
|
||||
export function PolicyVersionBadge(props: Props) {
|
||||
export function DocumentVersionBadge(props: Props) {
|
||||
const { __ } = useTranslate();
|
||||
return (
|
||||
<Badge variant={props.state === "DRAFT" ? "neutral" : "success"}>
|
||||
@@ -1,21 +0,0 @@
|
||||
import { PolicyVersionBadge } from "./PolicyVersionBadge";
|
||||
import type { Meta, StoryObj } from "@storybook/react";
|
||||
|
||||
export default {
|
||||
title: "Molecules/Badges/PolicyVersionBadge",
|
||||
component: PolicyVersionBadge,
|
||||
argTypes: {},
|
||||
} satisfies Meta<typeof PolicyVersionBadge>;
|
||||
|
||||
type Story = StoryObj<typeof PolicyVersionBadge>;
|
||||
|
||||
export const Default: Story = {
|
||||
render() {
|
||||
return (
|
||||
<div className="flex gap-2">
|
||||
<PolicyVersionBadge state="DRAFT" />
|
||||
<PolicyVersionBadge state="PUBLISHED" />
|
||||
</div>
|
||||
);
|
||||
},
|
||||
};
|
||||
@@ -52,7 +52,7 @@ export {
|
||||
export { useConfirm } from "./Molecules/Dialog/ConfirmDialog";
|
||||
export { RiskBadge } from "./Molecules/Badge/RiskBadge";
|
||||
export { SeverityBadge } from "./Molecules/Badge/SeverityBadge.tsx";
|
||||
export { PolicyVersionBadge } from "./Molecules/Badge/PolicyVersionBadge.tsx";
|
||||
export { DocumentVersionBadge } from "./Molecules/Badge/DocumentVersionBadge.tsx";
|
||||
export { RisksChart } from "./Molecules/Risks/RisksChart";
|
||||
export { RiskOverview } from "./Molecules/Risks/RiskOverview";
|
||||
export { Combobox, ComboboxItem } from "./Molecules/Combobox/Combobox";
|
||||
|
||||
77
packages/vendors/data.d.ts
vendored
77
packages/vendors/data.d.ts
vendored
@@ -6,28 +6,28 @@
|
||||
* Category types for vendors
|
||||
*/
|
||||
export type VendorCategory =
|
||||
| 'Analytics'
|
||||
| 'Cloud monitoring'
|
||||
| 'Cloud provider'
|
||||
| 'Collaboration'
|
||||
| 'Customer support'
|
||||
| 'Data storage and processing'
|
||||
| 'Document management'
|
||||
| 'Employee management'
|
||||
| 'Engineering'
|
||||
| 'Finance'
|
||||
| 'Identity provider'
|
||||
| 'IT'
|
||||
| 'Marketing'
|
||||
| 'Office operations'
|
||||
| 'Other'
|
||||
| 'Password management'
|
||||
| 'Product and design'
|
||||
| 'Professional services'
|
||||
| 'Recruiting'
|
||||
| 'Sales'
|
||||
| 'Security'
|
||||
| 'Version control';
|
||||
| "ANALYTICS"
|
||||
| "CLOUD_MONITORING"
|
||||
| "CLOUD_PROVIDER"
|
||||
| "COLLABORATION"
|
||||
| "CUSTOMER_SUPPORT"
|
||||
| "DATA_STORAGE_AND_PROCESSING"
|
||||
| "DOCUMENT_MANAGEMENT"
|
||||
| "EMPLOYEE_MANAGEMENT"
|
||||
| "ENGINEERING"
|
||||
| "FINANCE"
|
||||
| "IDENTITY_PROVIDER"
|
||||
| "IT"
|
||||
| "MARKETING"
|
||||
| "OFFICE_OPERATIONS"
|
||||
| "OTHER"
|
||||
| "PASSWORD_MANAGEMENT"
|
||||
| "PRODUCT_AND_DESIGN"
|
||||
| "PROFESSIONAL_SERVICES"
|
||||
| "RECRUITING"
|
||||
| "SALES"
|
||||
| "SECURITY"
|
||||
| "VERSION_CONTROL";
|
||||
|
||||
/**
|
||||
* Represents a software vendor or service provider with associated metadata
|
||||
@@ -35,52 +35,52 @@ export type VendorCategory =
|
||||
export interface Vendor {
|
||||
/** Display name of the vendor */
|
||||
name: string;
|
||||
|
||||
|
||||
/** Legal business name of the vendor */
|
||||
legalName?: string;
|
||||
|
||||
|
||||
/** Physical headquarters address */
|
||||
headquarterAddress?: string;
|
||||
|
||||
|
||||
/** Vendor's website URL */
|
||||
websiteUrl: string;
|
||||
|
||||
|
||||
/** URL to vendor's privacy policy */
|
||||
privacyPolicyUrl?: string;
|
||||
|
||||
|
||||
/** URL to vendor's terms of service */
|
||||
termsOfServiceUrl?: string;
|
||||
|
||||
|
||||
/** URL to vendor's service level agreement */
|
||||
serviceLevelAgreementUrl?: string;
|
||||
|
||||
|
||||
/** URL to service software agreement */
|
||||
serviceSoftwareAgreementUrl?: string;
|
||||
|
||||
|
||||
/** URL to vendor's data processing agreement */
|
||||
dataProcessingAgreementUrl?: string;
|
||||
|
||||
|
||||
/** URL to vendor's list of subprocessors */
|
||||
subprocessorsListUrl?: string;
|
||||
|
||||
|
||||
/** URL to vendor's business associate agreement */
|
||||
businessAssociateAgreementUrl?: string;
|
||||
|
||||
|
||||
/** Short description of the vendor/service */
|
||||
description?: string;
|
||||
|
||||
|
||||
/** Primary category for the vendor */
|
||||
category?: VendorCategory;
|
||||
|
||||
|
||||
/** Security or compliance certifications held by the vendor */
|
||||
certifications?: string[];
|
||||
|
||||
|
||||
/** URL to vendor's security page */
|
||||
securityPageUrl?: string;
|
||||
|
||||
|
||||
/** URL to vendor's trust page */
|
||||
trustPageUrl?: string;
|
||||
|
||||
|
||||
/** URL to vendor's status page */
|
||||
statusPageUrl?: string;
|
||||
}
|
||||
@@ -90,7 +90,6 @@ export interface Vendor {
|
||||
*/
|
||||
export type Vendors = Vendor[];
|
||||
|
||||
|
||||
/**
|
||||
* Default export representing the entire vendor dataset
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user