@industry-theme/github-panels 0.1.30 → 0.1.32

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/index.d.ts CHANGED
@@ -17,11 +17,12 @@ export declare const onPackageUnload: () => Promise<void>;
17
17
  export { GitHubProjectCard } from './components/GitHubProjectCard';
18
18
  export { GitHubProjectsPanel } from './panels/GitHubProjectsPanel';
19
19
  export { GitHubSearchPanel } from './panels/GitHubSearchPanel';
20
+ export { GitHubIssuesPanel } from './panels/GitHubIssuesPanel';
20
21
  export { OwnerRepositoriesPanel } from './panels/OwnerRepositoriesPanel';
21
22
  export { RecentRepositoriesPanel, addRecentRepository, addRecentOwner } from './panels/RecentRepositoriesPanel';
22
23
  export type { OwnerInfo } from './panels/RecentRepositoriesPanel';
23
24
  export { WelcomePanel } from './panels/WelcomePanel';
24
- export type { WelcomePanelProps, HighlightedProject, FeaturedOrganization } from './panels/WelcomePanel';
25
- export type { GitHubOwner, GitHubRepository, GitHubOrganization, GitHubRepositoriesSliceData, RepositorySelectedEventPayload, RepositoryPreviewEventPayload, GitHubPanelEventType, } from './types/github';
26
- export { githubTools, githubToolsMetadata, listRepositoriesTool, selectRepositoryTool, previewRepositoryTool, searchRepositoriesTool, openRepositorySwitcherTool, requestGitHubLoginTool, } from './tools';
25
+ export type { WelcomePanelProps, HighlightedProject, FeaturedOrganization, CuratedCollection } from './panels/WelcomePanel';
26
+ export type { GitHubOwner, GitHubRepository, GitHubOrganization, GitHubRepositoriesSliceData, RepositorySelectedEventPayload, RepositoryPreviewEventPayload, GitHubPanelEventType, GitHubIssue, GitHubIssueLabel, GitHubIssueUser, GitHubIssuesSliceData, IssueSelectedEventPayload, } from './types/github';
27
+ export { githubTools, githubToolsMetadata, listRepositoriesTool, selectRepositoryTool, previewRepositoryTool, searchRepositoriesTool, openRepositorySwitcherTool, requestGitHubLoginTool, listIssuesTool, refreshIssuesTool, } from './tools';
27
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAG7E;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EAgFnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAGF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAChH,YAAY,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAGzG,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAG7E;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,eAAe,EAoGnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,qBAGzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,qBAG3B,CAAC;AAGF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAChH,YAAY,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,YAAY,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5H,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,cAAc,EACd,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import type { PanelComponentProps } from '../types';
3
+ /**
4
+ * GitHubIssuesPanel - A panel for viewing GitHub repository issues
5
+ *
6
+ * Features:
7
+ * - View issues with filtering (open/closed/all)
8
+ * - Select issues and copy as AI prompt
9
+ * - Issue detail modal
10
+ * - External links to GitHub
11
+ */
12
+ export declare const GitHubIssuesPanel: React.FC<PanelComponentProps>;
13
+ /**
14
+ * Panel metadata for registration
15
+ */
16
+ export declare const GitHubIssuesPanelMetadata: {
17
+ id: string;
18
+ name: string;
19
+ description: string;
20
+ icon: string;
21
+ version: string;
22
+ slices: string[];
23
+ surfaces: string[];
24
+ };
25
+ //# sourceMappingURL=GitHubIssuesPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GitHubIssuesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssuesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAiB5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA0/BpD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAE3D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;CAQrC,CAAC"}
@@ -0,0 +1,78 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ /**
3
+ * GitHubIssuesPanel displays GitHub issues for a repository
4
+ * with filtering, selection, and copy-to-prompt functionality.
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
+ decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
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
+ }>) => import("react/jsx-runtime").JSX.Element)[];
23
+ };
24
+ export default meta;
25
+ type Story = StoryObj<typeof meta>;
26
+ /**
27
+ * Default state with open and closed issues
28
+ */
29
+ export declare const Default: Story;
30
+ /**
31
+ * Loading state while fetching issues
32
+ */
33
+ export declare const Loading: Story;
34
+ /**
35
+ * Not authenticated - prompts user to sign in
36
+ */
37
+ export declare const NotAuthenticated: Story;
38
+ /**
39
+ * Error state - failed to load issues
40
+ */
41
+ export declare const ErrorState: Story;
42
+ /**
43
+ * No repository selected
44
+ */
45
+ export declare const NoRepository: Story;
46
+ /**
47
+ * No issues in repository
48
+ */
49
+ export declare const EmptyIssues: Story;
50
+ /**
51
+ * Only open issues
52
+ */
53
+ export declare const OnlyOpenIssues: Story;
54
+ /**
55
+ * Only closed issues
56
+ */
57
+ export declare const OnlyClosedIssues: Story;
58
+ /**
59
+ * Many issues - tests scrolling
60
+ */
61
+ export declare const ManyIssues: Story;
62
+ /**
63
+ * Issues with many labels
64
+ */
65
+ export declare const ManyLabels: Story;
66
+ /**
67
+ * Interactive with event logging
68
+ */
69
+ export declare const Interactive: Story;
70
+ /**
71
+ * Compact layout (narrow panel) - simulates a sidebar view
72
+ */
73
+ export declare const CompactLayout: Story;
74
+ /**
75
+ * Wide layout - simulates a main panel view
76
+ */
77
+ export declare const WideLayout: Story;
78
+ //# sourceMappingURL=GitHubIssuesPanel.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GitHubIssuesPanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/GitHubIssuesPanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AA0H5D;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAiCgC,CAAC;AAE3C,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA2DnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAM5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAyBxB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KA4BzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,KAoB3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,KAoBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAgBhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA0mBpD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAErF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
1
+ {"version":3,"file":"OwnerRepositoriesPanel.d.ts","sourceRoot":"","sources":["../../src/panels/OwnerRepositoriesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAahE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AA6iBpD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAErF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;CAQ1C,CAAC"}
@@ -15,6 +15,17 @@ export interface FeaturedOrganization {
15
15
  login: string;
16
16
  description?: string;
17
17
  }
18
+ /**
19
+ * Curated collection of repositories
20
+ */
21
+ export interface CuratedCollection {
22
+ id: string;
23
+ name: string;
24
+ description: string;
25
+ icon?: string;
26
+ theme?: string;
27
+ repositoryCount?: number;
28
+ }
18
29
  /**
19
30
  * Props for the WelcomePanel
20
31
  */
@@ -23,6 +34,8 @@ export interface WelcomePanelProps extends PanelComponentProps {
23
34
  highlightedProjects?: HighlightedProject[];
24
35
  featuredOrganizations?: FeaturedOrganization[];
25
36
  onOrganizationClick?: (org: string) => void;
37
+ curatedCollections?: CuratedCollection[];
38
+ onCollectionClick?: (collectionId: string) => void;
26
39
  }
27
40
  /**
28
41
  * WelcomePanel - A landing panel with branding and repo search
@@ -1 +1 @@
1
- {"version":3,"file":"WelcomePanel.d.ts","sourceRoot":"","sources":["../../src/panels/WelcomePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;IAC5D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,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3C,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,kBAAkB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACzC,iBAAiB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAqND;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAsPpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC"}
@@ -16,6 +16,8 @@ declare const meta: {
16
16
  highlightedProjects?: import("./WelcomePanel").HighlightedProject[] | undefined;
17
17
  featuredOrganizations?: import("./WelcomePanel").FeaturedOrganization[] | undefined;
18
18
  onOrganizationClick?: ((org: string) => void) | undefined;
19
+ curatedCollections?: import("./WelcomePanel").CuratedCollection[] | undefined;
20
+ onCollectionClick?: ((collectionId: string) => void) | undefined;
19
21
  context: import("@principal-ade/panel-framework-core").PanelContextValue;
20
22
  actions: import("@principal-ade/panel-framework-core").PanelActions;
21
23
  events: import("@principal-ade/panel-framework-core").PanelEventEmitter;
@@ -1 +1 @@
1
- {"version":3,"file":"WelcomePanel.stories.d.ts","sourceRoot":"","sources":["../../src/panels/WelcomePanel.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B2B,CAAC;AAEtC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,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