@principal-ade/code-quality-panels 0.1.15 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/panels.bundle.js +1060 -48
- package/dist/panels.bundle.js.map +1 -1
- package/dist/src/components/LensDataDebugPanel.d.ts +93 -0
- package/dist/src/components/LensDataDebugPanel.d.ts.map +1 -0
- package/dist/src/components/LensDataDebugPanel.stories.d.ts +31 -0
- package/dist/src/components/LensDataDebugPanel.stories.d.ts.map +1 -0
- package/dist/src/components/QualityEmptyState.d.ts +22 -0
- package/dist/src/components/QualityEmptyState.d.ts.map +1 -0
- package/dist/src/components/QualityHexagon.d.ts +52 -0
- package/dist/src/components/QualityHexagon.d.ts.map +1 -0
- package/dist/src/components/QualityHexagon.stories.d.ts +54 -0
- package/dist/src/components/QualityHexagon.stories.d.ts.map +1 -0
- package/dist/src/components/QualityMetricsList.d.ts +21 -0
- package/dist/src/components/QualityMetricsList.d.ts.map +1 -0
- package/dist/src/components/QualityMetricsList.stories.d.ts +33 -0
- package/dist/src/components/QualityMetricsList.stories.d.ts.map +1 -0
- package/dist/src/components/RepositoryQualityGrid.d.ts +84 -0
- package/dist/src/components/RepositoryQualityGrid.d.ts.map +1 -0
- package/dist/src/components/RepositoryQualityGrid.stories.d.ts +45 -0
- package/dist/src/components/RepositoryQualityGrid.stories.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +6 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +21 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/lib/utils.d.ts +3 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/dist/src/mocks/panelContext.d.ts +33 -0
- package/dist/src/mocks/panelContext.d.ts.map +1 -0
- package/dist/src/panels/LensDataDebugPanel.d.ts +13 -0
- package/dist/src/panels/LensDataDebugPanel.d.ts.map +1 -0
- package/dist/src/panels/LensDataDebugPanel.stories.d.ts +46 -0
- package/dist/src/panels/LensDataDebugPanel.stories.d.ts.map +1 -0
- package/dist/src/panels/QualityHexagonPanel.d.ts +7 -0
- package/dist/src/panels/QualityHexagonPanel.d.ts.map +1 -0
- package/dist/src/panels/QualityHexagonPanel.stories.d.ts +64 -0
- package/dist/src/panels/QualityHexagonPanel.stories.d.ts.map +1 -0
- package/dist/src/panels/RepositoryQualityGridPanel.d.ts +8 -0
- package/dist/src/panels/RepositoryQualityGridPanel.d.ts.map +1 -0
- package/dist/src/panels/RepositoryQualityGridPanel.stories.d.ts +26 -0
- package/dist/src/panels/RepositoryQualityGridPanel.stories.d.ts.map +1 -0
- package/dist/src/tools/index.d.ts +7 -0
- package/dist/src/tools/index.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +7 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/tools.bundle.js +7 -0
- package/package.json +4 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelComponentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* QualityHexagonPanel - A panel for visualizing code quality metrics
|
|
5
|
+
*/
|
|
6
|
+
export declare const QualityHexagonPanel: React.FC<PanelComponentProps>;
|
|
7
|
+
//# sourceMappingURL=QualityHexagonPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QualityHexagonPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/QualityHexagonPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA2SpD;;GAEG;AACH,eAAO,MAAM,mBAAmB,+BAA6B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
/**
|
|
3
|
+
* QualityHexagonPanel visualizes code quality metrics using a hexagonal radar chart.
|
|
4
|
+
* Shows quality tier, detailed metrics breakdown, and quick stats.
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: import("react").FC<import("@principal-ade/panel-framework-core").PanelComponentProps>;
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
tags: string[];
|
|
18
|
+
args: {
|
|
19
|
+
context: import("@principal-ade/panel-framework-core").PanelContextValue;
|
|
20
|
+
actions: import("@principal-ade/panel-framework-core").PanelActions;
|
|
21
|
+
events: import("@principal-ade/panel-framework-core").PanelEventEmitter;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
/**
|
|
27
|
+
* Default state with good quality metrics
|
|
28
|
+
*/
|
|
29
|
+
export declare const Default: Story;
|
|
30
|
+
/**
|
|
31
|
+
* Platinum quality metrics - excellent codebase
|
|
32
|
+
*/
|
|
33
|
+
export declare const PlatinumQuality: Story;
|
|
34
|
+
/**
|
|
35
|
+
* Poor quality metrics - legacy codebase
|
|
36
|
+
*/
|
|
37
|
+
export declare const PoorQuality: Story;
|
|
38
|
+
/**
|
|
39
|
+
* Unbalanced metrics - good style but lacking tests
|
|
40
|
+
*/
|
|
41
|
+
export declare const UnbalancedMetrics: Story;
|
|
42
|
+
/**
|
|
43
|
+
* Monorepo with multiple packages
|
|
44
|
+
*/
|
|
45
|
+
export declare const Monorepo: Story;
|
|
46
|
+
/**
|
|
47
|
+
* No repository loaded
|
|
48
|
+
*/
|
|
49
|
+
export declare const NoRepository: Story;
|
|
50
|
+
/**
|
|
51
|
+
* Loading state
|
|
52
|
+
*/
|
|
53
|
+
export declare const Loading: Story;
|
|
54
|
+
/**
|
|
55
|
+
* Empty state - no workflow installed
|
|
56
|
+
* Shows setup instructions for installing the Quality Lens CLI or GitHub Action
|
|
57
|
+
*/
|
|
58
|
+
export declare const EmptyNoWorkflow: Story;
|
|
59
|
+
/**
|
|
60
|
+
* Empty state - workflow installed, waiting for data
|
|
61
|
+
* Shows that the workflow is detected and waiting for the first CI run
|
|
62
|
+
*/
|
|
63
|
+
export declare const EmptyWithWorkflow: Story;
|
|
64
|
+
//# sourceMappingURL=QualityHexagonPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QualityHexagonPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/QualityHexagonPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAU5D;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAkBkC,CAAC;AAE7C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAwD7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAuDzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAwD/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAgFtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAuB1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KA6BrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KAwD7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAyD/B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PanelComponentProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* RepositoryQualityGridPanel - A panel for visualizing quality metrics
|
|
5
|
+
* across multiple repositories in a flat grid layout.
|
|
6
|
+
*/
|
|
7
|
+
export declare const RepositoryQualityGridPanel: React.FC<PanelComponentProps>;
|
|
8
|
+
//# sourceMappingURL=RepositoryQualityGridPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryQualityGridPanel.d.ts","sourceRoot":"","sources":["../../../src/panels/RepositoryQualityGridPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA+JpD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+BAAoC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<import("@principal-ade/panel-framework-core").PanelComponentProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
backgrounds: {
|
|
8
|
+
default: string;
|
|
9
|
+
values: {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
docs: {
|
|
15
|
+
description: {
|
|
16
|
+
component: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
tags: string[];
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Default: Story;
|
|
25
|
+
export declare const InContainer: Story;
|
|
26
|
+
//# sourceMappingURL=RepositoryQualityGridPanel.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RepositoryQualityGridPanel.stories.d.ts","sourceRoot":"","sources":["../../../src/panels/RepositoryQualityGridPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;CAmByC,CAAC;AAEpD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkBzB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UTCP-compatible tool definitions for the Code Quality Panels.
|
|
3
|
+
* Currently no tools are exposed - this file is here for future expansion.
|
|
4
|
+
*/
|
|
5
|
+
export declare const qualityPanelTools: never[];
|
|
6
|
+
export declare const qualityPanelToolsMetadata: {};
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,iBAAiB,EAAE,KAAK,EAAO,CAAC;AAC7C,eAAO,MAAM,yBAAyB,IAAK,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Panel Extension Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Re-exports core types from @principal-ade/panel-framework-core
|
|
5
|
+
*/
|
|
6
|
+
export type { DataSlice, WorkspaceMetadata, RepositoryMetadata, FileTreeSource, ActiveFileSlice, PanelEventType, PanelEvent, PanelEventEmitter, PanelActions, PanelContextValue, PanelComponentProps, PanelMetadata, PanelLifecycleHooks, PanelDefinition, PanelModule, PanelRegistryEntry, PanelLoader, PanelRegistryConfig, PanelTool, PanelToolsMetadata, JsonSchema, PanelEventCallTemplate, } from '@principal-ade/panel-framework-core';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EAEV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EAGf,cAAc,EACd,UAAU,EACV,iBAAiB,EAGjB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EAGnB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,WAAW,EAGX,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EAGnB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,sBAAsB,GACvB,MAAM,qCAAqC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@principal-ade/code-quality-panels",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Code quality visualization panels including QualityHexagon components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/panels.bundle.js",
|
|
7
7
|
"module": "dist/panels.bundle.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
8
|
+
"types": "dist/src/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
11
|
+
"types": "./dist/src/index.d.ts",
|
|
12
12
|
"import": "./dist/panels.bundle.js",
|
|
13
13
|
"require": "./dist/panels.bundle.js",
|
|
14
14
|
"default": "./dist/panels.bundle.js"
|
|
15
15
|
},
|
|
16
16
|
"./tools": {
|
|
17
|
-
"types": "./dist/tools/index.d.ts",
|
|
17
|
+
"types": "./dist/src/tools/index.d.ts",
|
|
18
18
|
"import": "./dist/tools.bundle.js",
|
|
19
19
|
"require": "./dist/tools.bundle.js",
|
|
20
20
|
"default": "./dist/tools.bundle.js"
|