@manojkmfsi/monodog 1.1.37 → 1.1.39
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/CHANGELOG.md +12 -0
- package/monodog-dashboard/dist/assets/index-C08ciT3A.js +20 -0
- package/monodog-dashboard/dist/assets/index-C08ciT3A.js.map +1 -0
- package/monodog-dashboard/dist/assets/index-Dc2vaUOq.css +1 -0
- package/monodog-dashboard/{index.html → dist/index.html} +2 -1
- package/monodog-dashboard/package.json +0 -3
- package/package.json +2 -2
- package/monodog-dashboard/THEME_SYSTEM.md +0 -309
- package/monodog-dashboard/__tests__/AuthCallbackPage.test.ts +0 -138
- package/monodog-dashboard/__tests__/ConfigInspector.test.ts +0 -33
- package/monodog-dashboard/__tests__/DependencyGraph.test.ts +0 -72
- package/monodog-dashboard/__tests__/HealthStatus.test.ts +0 -69
- package/monodog-dashboard/__tests__/LoginPage.test.ts +0 -79
- package/monodog-dashboard/__tests__/PackageDetail.test.ts +0 -22
- package/monodog-dashboard/__tests__/ReleaseManager.test.tsx +0 -510
- package/monodog-dashboard/__tests__/api-client.test.ts +0 -475
- package/monodog-dashboard/__tests__/components.test.ts +0 -117
- package/monodog-dashboard/__tests__/dashboard.utils.test.ts +0 -144
- package/monodog-dashboard/__tests__/dependency.utils.test.ts +0 -125
- package/monodog-dashboard/__tests__/monorepoService.unit.test.ts +0 -103
- package/monodog-dashboard/__tests__/packages.utils.test.ts +0 -37
- package/monodog-dashboard/__tests__/pages.test.ts +0 -103
- package/monodog-dashboard/package-lock.json +0 -4587
- package/monodog-dashboard/postcss.config.js +0 -6
- package/monodog-dashboard/src/components/App.tsx +0 -36
- package/monodog-dashboard/src/components/LoadingState.tsx +0 -18
- package/monodog-dashboard/src/components/PermissionGuard.tsx +0 -92
- package/monodog-dashboard/src/components/ProtectedRoute.tsx +0 -24
- package/monodog-dashboard/src/components/configuration/Configuration.tsx +0 -91
- package/monodog-dashboard/src/components/configuration/components/BrandingSettings.tsx +0 -128
- package/monodog-dashboard/src/components/configuration/components/ConfigurationHeader.tsx +0 -34
- package/monodog-dashboard/src/components/configuration/components/ConfigurationModal.tsx +0 -20
- package/monodog-dashboard/src/components/configuration/components/ConfigurationTabs.tsx +0 -30
- package/monodog-dashboard/src/components/configuration/components/FeatureToggles.tsx +0 -66
- package/monodog-dashboard/src/components/configuration/components/GeneralSettings.tsx +0 -77
- package/monodog-dashboard/src/components/configuration/components/MonorepoSettings.tsx +0 -179
- package/monodog-dashboard/src/components/configuration/components/index.ts +0 -8
- package/monodog-dashboard/src/components/configuration/types/config.types.ts +0 -52
- package/monodog-dashboard/src/components/configuration/utils/config.utils.tsx +0 -115
- package/monodog-dashboard/src/components/main-dashboard/Dashboard.tsx +0 -242
- package/monodog-dashboard/src/components/main-dashboard/Layout.tsx +0 -112
- package/monodog-dashboard/src/components/main-dashboard/components/Header.tsx +0 -47
- package/monodog-dashboard/src/components/main-dashboard/components/PackageDistribution.tsx +0 -35
- package/monodog-dashboard/src/components/main-dashboard/components/PackageSearchFilter.tsx +0 -47
- package/monodog-dashboard/src/components/main-dashboard/components/PackageTable.tsx +0 -87
- package/monodog-dashboard/src/components/main-dashboard/components/QuickActions.tsx +0 -60
- package/monodog-dashboard/src/components/main-dashboard/components/StatsCards.tsx +0 -73
- package/monodog-dashboard/src/components/main-dashboard/components/index.ts +0 -7
- package/monodog-dashboard/src/components/main-dashboard/types/dashboard.types.ts +0 -33
- package/monodog-dashboard/src/components/main-dashboard/utils/dashboard.utils.tsx +0 -70
- package/monodog-dashboard/src/components/modules/ci-integration/CIIntegration.tsx +0 -277
- package/monodog-dashboard/src/components/modules/ci-integration/components/BuildDetails.tsx +0 -228
- package/monodog-dashboard/src/components/modules/ci-integration/components/BuildList.tsx +0 -212
- package/monodog-dashboard/src/components/modules/ci-integration/components/BuildOverview.tsx +0 -158
- package/monodog-dashboard/src/components/modules/ci-integration/components/CIIntegrationHeader.tsx +0 -38
- package/monodog-dashboard/src/components/modules/ci-integration/components/ErrorState.tsx +0 -25
- package/monodog-dashboard/src/components/modules/ci-integration/components/LoadingState.tsx +0 -16
- package/monodog-dashboard/src/components/modules/ci-integration/components/PipelineStatus.tsx +0 -223
- package/monodog-dashboard/src/components/modules/ci-integration/components/index.ts +0 -8
- package/monodog-dashboard/src/components/modules/ci-integration/types/ci.types.ts +0 -97
- package/monodog-dashboard/src/components/modules/ci-integration/utils/ci.utils.tsx +0 -264
- package/monodog-dashboard/src/components/modules/config-inspector/ConfigInspector.tsx +0 -324
- package/monodog-dashboard/src/components/modules/config-inspector/components/ConfigEditor.tsx +0 -93
- package/monodog-dashboard/src/components/modules/config-inspector/components/ConfigInspectorHeader.tsx +0 -36
- package/monodog-dashboard/src/components/modules/config-inspector/components/ConfigPreview.tsx +0 -89
- package/monodog-dashboard/src/components/modules/config-inspector/components/ConfigSidebar.tsx +0 -141
- package/monodog-dashboard/src/components/modules/config-inspector/components/ConfigToolbar.tsx +0 -184
- package/monodog-dashboard/src/components/modules/config-inspector/components/ErrorState.tsx +0 -25
- package/monodog-dashboard/src/components/modules/config-inspector/components/LoadingState.tsx +0 -16
- package/monodog-dashboard/src/components/modules/config-inspector/components/ValidationPanel.tsx +0 -155
- package/monodog-dashboard/src/components/modules/config-inspector/components/index.ts +0 -9
- package/monodog-dashboard/src/components/modules/config-inspector/types/config.types.ts +0 -100
- package/monodog-dashboard/src/components/modules/config-inspector/utils/config.utils.tsx +0 -704
- package/monodog-dashboard/src/components/modules/dependency-graph/DependencyGraph.tsx +0 -224
- package/monodog-dashboard/src/components/modules/dependency-graph/components/CircularDependencies.tsx +0 -177
- package/monodog-dashboard/src/components/modules/dependency-graph/components/DependencyDetails.tsx +0 -192
- package/monodog-dashboard/src/components/modules/dependency-graph/components/DependencyGraphHeader.tsx +0 -30
- package/monodog-dashboard/src/components/modules/dependency-graph/components/DependencyList.tsx +0 -177
- package/monodog-dashboard/src/components/modules/dependency-graph/components/ErrorState.tsx +0 -25
- package/monodog-dashboard/src/components/modules/dependency-graph/components/GraphLegend.tsx +0 -89
- package/monodog-dashboard/src/components/modules/dependency-graph/components/GraphStats.tsx +0 -141
- package/monodog-dashboard/src/components/modules/dependency-graph/components/GraphToolbar.tsx +0 -107
- package/monodog-dashboard/src/components/modules/dependency-graph/components/GraphVisualization.tsx +0 -179
- package/monodog-dashboard/src/components/modules/dependency-graph/components/LoadingState.tsx +0 -16
- package/monodog-dashboard/src/components/modules/dependency-graph/components/index.ts +0 -11
- package/monodog-dashboard/src/components/modules/dependency-graph/types/dependency.types.ts +0 -105
- package/monodog-dashboard/src/components/modules/dependency-graph/utils/dependency.utils.tsx +0 -433
- package/monodog-dashboard/src/components/modules/health-status/HealthStatus.tsx +0 -739
- package/monodog-dashboard/src/components/modules/health-status/components/ErrorState.tsx +0 -25
- package/monodog-dashboard/src/components/modules/health-status/components/HealthActions.tsx +0 -122
- package/monodog-dashboard/src/components/modules/health-status/components/HealthAlerts.tsx +0 -151
- package/monodog-dashboard/src/components/modules/health-status/components/HealthMetrics.tsx +0 -132
- package/monodog-dashboard/src/components/modules/health-status/components/HealthStatusHeader.tsx +0 -30
- package/monodog-dashboard/src/components/modules/health-status/components/LoadingState.tsx +0 -16
- package/monodog-dashboard/src/components/modules/health-status/components/OverallHealthScore.tsx +0 -122
- package/monodog-dashboard/src/components/modules/health-status/components/PackageHealthList.tsx +0 -195
- package/monodog-dashboard/src/components/modules/health-status/types/health.types.ts +0 -80
- package/monodog-dashboard/src/components/modules/health-status/utils/health.utils.tsx +0 -220
- package/monodog-dashboard/src/components/modules/packages/PackageDetail.tsx +0 -255
- package/monodog-dashboard/src/components/modules/packages/PackagesOverview.tsx +0 -166
- package/monodog-dashboard/src/components/modules/packages/components/ConfigurationTab.tsx +0 -311
- package/monodog-dashboard/src/components/modules/packages/components/DependenciesTab.tsx +0 -154
- package/monodog-dashboard/src/components/modules/packages/components/ErrorState.tsx +0 -21
- package/monodog-dashboard/src/components/modules/packages/components/HealthMetricsTab.tsx +0 -275
- package/monodog-dashboard/src/components/modules/packages/components/LoadingState.tsx +0 -14
- package/monodog-dashboard/src/components/modules/packages/components/PackageDetailHeader.tsx +0 -167
- package/monodog-dashboard/src/components/modules/packages/components/PackageDetailTabs.tsx +0 -49
- package/monodog-dashboard/src/components/modules/packages/components/PackageStats.tsx +0 -70
- package/monodog-dashboard/src/components/modules/packages/components/PackagesTable.tsx +0 -163
- package/monodog-dashboard/src/components/modules/packages/components/RecentCommitsTab.tsx +0 -90
- package/monodog-dashboard/src/components/modules/packages/components/SearchAndFilter.tsx +0 -66
- package/monodog-dashboard/src/components/modules/packages/components/index.ts +0 -12
- package/monodog-dashboard/src/components/modules/packages/types/packages.types.ts +0 -101
- package/monodog-dashboard/src/components/modules/packages/utils/packages.utils.tsx +0 -178
- package/monodog-dashboard/src/components/pipeline/JobsList.tsx +0 -83
- package/monodog-dashboard/src/components/pipeline/LogViewer.tsx +0 -392
- package/monodog-dashboard/src/components/pipeline/PipelineManager.tsx +0 -562
- package/monodog-dashboard/src/components/pipeline/WorkflowRunsList.tsx +0 -272
- package/monodog-dashboard/src/components/pipeline/WorkflowTrigger.tsx +0 -182
- package/monodog-dashboard/src/components/pipeline/utils/pipeline.utils.tsx +0 -11
- package/monodog-dashboard/src/components/publish-control/PublishControl.tsx +0 -229
- package/monodog-dashboard/src/components/publish-control/components/ChangelogViewer.tsx +0 -103
- package/monodog-dashboard/src/components/publish-control/components/ErrorState.tsx +0 -23
- package/monodog-dashboard/src/components/publish-control/components/LoadingState.tsx +0 -10
- package/monodog-dashboard/src/components/publish-control/components/PackageReleaseTable.tsx +0 -140
- package/monodog-dashboard/src/components/publish-control/components/PublishHeader.tsx +0 -30
- package/monodog-dashboard/src/components/publish-control/components/QuickActionCards.tsx +0 -56
- package/monodog-dashboard/src/components/publish-control/components/ReleaseSchedule.tsx +0 -104
- package/monodog-dashboard/src/components/publish-control/components/index.ts +0 -8
- package/monodog-dashboard/src/components/publish-control/types/publish.types.ts +0 -39
- package/monodog-dashboard/src/components/publish-control/utils/publish.utils.ts +0 -59
- package/monodog-dashboard/src/components/release-manager/ReleaseManager.tsx +0 -342
- package/monodog-dashboard/src/components/release-manager/components/ChangesetPreview.tsx +0 -123
- package/monodog-dashboard/src/components/release-manager/components/ErrorState.tsx +0 -38
- package/monodog-dashboard/src/components/release-manager/components/LoadingState.tsx +0 -18
- package/monodog-dashboard/src/components/release-manager/components/PackageSelector.tsx +0 -137
- package/monodog-dashboard/src/components/release-manager/components/PublishConfirmation.tsx +0 -150
- package/monodog-dashboard/src/components/release-manager/components/ReleaseValidation.tsx +0 -138
- package/monodog-dashboard/src/components/release-manager/components/VersionBumpSelector.tsx +0 -142
- package/monodog-dashboard/src/components/release-manager/types/index.ts +0 -9
- package/monodog-dashboard/src/components/release-manager/types/release-manager.types.ts +0 -29
- package/monodog-dashboard/src/components/setup-guide/SetupGuide.tsx +0 -96
- package/monodog-dashboard/src/components/setup-guide/components/SetupHeader.tsx +0 -24
- package/monodog-dashboard/src/components/setup-guide/components/SetupModal.tsx +0 -24
- package/monodog-dashboard/src/components/setup-guide/components/SetupProgress.tsx +0 -29
- package/monodog-dashboard/src/components/setup-guide/components/StepContent.tsx +0 -272
- package/monodog-dashboard/src/components/setup-guide/components/StepNavigation.tsx +0 -62
- package/monodog-dashboard/src/components/setup-guide/components/index.ts +0 -6
- package/monodog-dashboard/src/components/setup-guide/types/setup.types.ts +0 -38
- package/monodog-dashboard/src/components/setup-guide/utils/setup.utils.ts +0 -79
- package/monodog-dashboard/src/constants/api-config.ts +0 -81
- package/monodog-dashboard/src/constants/index.ts +0 -9
- package/monodog-dashboard/src/constants/messages.ts +0 -40
- package/monodog-dashboard/src/icons/heroicons.ts +0 -65
- package/monodog-dashboard/src/icons/index.tsx +0 -1788
- package/monodog-dashboard/src/index.css +0 -175
- package/monodog-dashboard/src/main.tsx +0 -9
- package/monodog-dashboard/src/pages/AuthCallbackPage.tsx +0 -103
- package/monodog-dashboard/src/pages/CIPage.tsx +0 -6
- package/monodog-dashboard/src/pages/ConfigPage.tsx +0 -6
- package/monodog-dashboard/src/pages/DashboardPage.tsx +0 -6
- package/monodog-dashboard/src/pages/DependenciesPage.tsx +0 -6
- package/monodog-dashboard/src/pages/HealthPage.tsx +0 -6
- package/monodog-dashboard/src/pages/LoginPage.tsx +0 -77
- package/monodog-dashboard/src/pages/PackageDetailPage.tsx +0 -6
- package/monodog-dashboard/src/pages/PackagesPage.tsx +0 -6
- package/monodog-dashboard/src/pages/PipelinePage.tsx +0 -22
- package/monodog-dashboard/src/pages/PublishPage.tsx +0 -6
- package/monodog-dashboard/src/pages/ReleaseManagerPage.tsx +0 -9
- package/monodog-dashboard/src/pages/index.ts +0 -28
- package/monodog-dashboard/src/routes/AppRouter.tsx +0 -89
- package/monodog-dashboard/src/routes/AppRouterPages.tsx +0 -56
- package/monodog-dashboard/src/routes/index.ts +0 -10
- package/monodog-dashboard/src/routes/routes.config.ts +0 -94
- package/monodog-dashboard/src/services/api/api-client.ts +0 -189
- package/monodog-dashboard/src/services/api/index.ts +0 -30
- package/monodog-dashboard/src/services/api/types/api.types.ts +0 -63
- package/monodog-dashboard/src/services/auth-context.tsx +0 -344
- package/monodog-dashboard/src/services/monorepoService.ts +0 -733
- package/monodog-dashboard/src/services/permission-context.tsx +0 -193
- package/monodog-dashboard/src/theme/COMPONENT_UPDATES.md +0 -273
- package/monodog-dashboard/src/theme/INTEGRATION.md +0 -381
- package/monodog-dashboard/src/theme/README.md +0 -239
- package/monodog-dashboard/src/theme/examples.tsx +0 -386
- package/monodog-dashboard/src/theme/index.ts +0 -402
- package/monodog-dashboard/src/theme/migration-guide.md +0 -335
- package/monodog-dashboard/src/types/auth-context.types.ts +0 -51
- package/monodog-dashboard/src/types/component.types.ts +0 -96
- package/monodog-dashboard/src/types/icons.types.ts +0 -13
- package/monodog-dashboard/src/types/index.ts +0 -68
- package/monodog-dashboard/src/types/monorepo-service.types.ts +0 -53
- package/monodog-dashboard/src/types/permission-context.types.ts +0 -49
- package/monodog-dashboard/src/types/pipeline.types.ts +0 -89
- package/monodog-dashboard/src/types/routes.types.ts +0 -12
- package/monodog-dashboard/src/utils/cookies.ts +0 -47
- package/monodog-dashboard/tailwind.config.js +0 -68
- package/monodog-dashboard/tsconfig.app.json +0 -14
- package/monodog-dashboard/tsconfig.json +0 -17
- package/monodog-dashboard/tsconfig.node.json +0 -10
- package/monodog-dashboard/vite.config.ts +0 -9
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Publish Confirmation Component
|
|
3
|
-
* Shows confirmation of successful release
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { SelectedPackage } from '../ReleaseManager';
|
|
8
|
-
import { ArrowLongRightIcon, CheckIcon } from '../../../icons';
|
|
9
|
-
|
|
10
|
-
interface PublishConfirmationProps {
|
|
11
|
-
packages: SelectedPackage[];
|
|
12
|
-
summary: string;
|
|
13
|
-
onReset: () => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default function PublishConfirmation({
|
|
17
|
-
packages,
|
|
18
|
-
summary,
|
|
19
|
-
onReset,
|
|
20
|
-
}: PublishConfirmationProps) {
|
|
21
|
-
const releaseDate = new Date().toLocaleDateString('en-US', {
|
|
22
|
-
year: 'numeric',
|
|
23
|
-
month: 'long',
|
|
24
|
-
day: 'numeric',
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<div className="bg-white rounded-lg shadow p-6 space-y-6">
|
|
29
|
-
<div className="text-center">
|
|
30
|
-
<div className="flex justify-center mb-4">
|
|
31
|
-
<div className="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center">
|
|
32
|
-
<svg className="w-10 h-10 text-green-600" fill="currentColor" viewBox="0 0 20 20">
|
|
33
|
-
<path
|
|
34
|
-
fillRule="evenodd"
|
|
35
|
-
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
|
|
36
|
-
clipRule="evenodd"
|
|
37
|
-
/>
|
|
38
|
-
</svg>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
<h2 className="text-3xl font-bold text-gray-900 mb-2">Release Initiated!</h2>
|
|
42
|
-
<p className="text-gray-600 text-lg mb-4">
|
|
43
|
-
Changeset created and publishing workflow started for {packages.length} package(s)
|
|
44
|
-
</p>
|
|
45
|
-
<p className="text-gray-500 text-sm">Initiated on {releaseDate}</p>
|
|
46
|
-
</div>
|
|
47
|
-
|
|
48
|
-
{/* Publishing Status Information */}
|
|
49
|
-
<div className="border-t pt-6">
|
|
50
|
-
<h3 className="text-lg font-bold text-gray-900 mb-4">What Happens Next</h3>
|
|
51
|
-
<div className="space-y-3">
|
|
52
|
-
<div className="flex items-start space-x-3 p-3 bg-blue-50 rounded-lg">
|
|
53
|
-
<div className="flex-shrink-0 text-blue-600 mt-0.5">
|
|
54
|
-
<svg className="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
|
|
55
|
-
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clipRule="evenodd" />
|
|
56
|
-
</svg>
|
|
57
|
-
</div>
|
|
58
|
-
<div>
|
|
59
|
-
<p className="font-medium text-blue-900">1. Changeset Created</p>
|
|
60
|
-
<p className="text-sm text-blue-700 mt-1">A changeset has been created with your release information</p>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
<div className="flex items-start space-x-3 p-3 bg-blue-50 rounded-lg">
|
|
64
|
-
<div className="flex-shrink-0 text-blue-600 mt-0.5">
|
|
65
|
-
<svg className="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
|
|
66
|
-
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clipRule="evenodd" />
|
|
67
|
-
</svg>
|
|
68
|
-
</div>
|
|
69
|
-
<div>
|
|
70
|
-
<p className="font-medium text-blue-900">2. Publishing Workflow Started</p>
|
|
71
|
-
<p className="text-sm text-blue-700 mt-1">GitHub Actions workflow has been triggered to publish your packages</p>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
<div className="flex items-start space-x-3 p-3 bg-blue-50 rounded-lg">
|
|
75
|
-
<div className="flex-shrink-0 text-blue-600 mt-0.5">
|
|
76
|
-
<svg className="h-5 w-5" fill="currentColor" viewBox="0 0 20 20">
|
|
77
|
-
<path d="M10 12a2 2 0 100-4 2 2 0 000 4z" />
|
|
78
|
-
<path fillRule="evenodd" d="M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z" clipRule="evenodd" />
|
|
79
|
-
</svg>
|
|
80
|
-
</div>
|
|
81
|
-
<div>
|
|
82
|
-
<p className="font-medium text-blue-900">3. Monitor Progress</p>
|
|
83
|
-
<p className="text-sm text-blue-700 mt-1">Check GitHub Actions for the workflow status and npm registry for package updates</p>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
|
|
89
|
-
{/* Released Packages */}
|
|
90
|
-
<div className="border-t pt-6">
|
|
91
|
-
<h3 className="text-lg font-bold text-gray-900 mb-4">Packages Released</h3>
|
|
92
|
-
<div className="space-y-2">
|
|
93
|
-
{packages.map(pkg => (
|
|
94
|
-
<div key={pkg.name} className="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
|
|
95
|
-
<div>
|
|
96
|
-
<p className="font-medium text-gray-900">{pkg.name}</p>
|
|
97
|
-
<p className="flex items-center gap-2 text-sm text-gray-500">
|
|
98
|
-
v{pkg.currentVersion} <ArrowLongRightIcon></ArrowLongRightIcon> v{pkg.newVersion}
|
|
99
|
-
</p>
|
|
100
|
-
</div>
|
|
101
|
-
<span className="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-primary-100 text-primary-800">
|
|
102
|
-
{pkg.bumpType.charAt(0).toUpperCase() + pkg.bumpType.slice(1)}
|
|
103
|
-
</span>
|
|
104
|
-
</div>
|
|
105
|
-
))}
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
|
|
109
|
-
{/* Changelog */}
|
|
110
|
-
<div className="border-t pt-6">
|
|
111
|
-
<h3 className="text-lg font-bold text-gray-900 mb-4">Changelog Summary</h3>
|
|
112
|
-
<div className="p-4 bg-gray-50 rounded-lg">
|
|
113
|
-
<p className="text-gray-700 whitespace-pre-wrap">{summary}</p>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
|
|
117
|
-
{/* Next Steps */}
|
|
118
|
-
<div className="bg-blue-50 border border-blue-200 rounded-lg p-4">
|
|
119
|
-
<h4 className="font-medium text-blue-900 mb-2">Next Steps</h4>
|
|
120
|
-
<ul className="text-sm text-blue-700 space-y-2">
|
|
121
|
-
<li>Changeset created and committed</li>
|
|
122
|
-
<li>Package versions updated</li>
|
|
123
|
-
<li>Release pipeline triggered</li>
|
|
124
|
-
<li>GitHub release created (in progress)</li>
|
|
125
|
-
<li>npm registry will be updated shortly</li>
|
|
126
|
-
</ul>
|
|
127
|
-
</div>
|
|
128
|
-
|
|
129
|
-
{/* Actions */}
|
|
130
|
-
<div className="flex gap-3 justify-center">
|
|
131
|
-
<button
|
|
132
|
-
onClick={onReset}
|
|
133
|
-
className="px-8 py-3 bg-primary-600 text-white rounded-lg font-medium hover:bg-primary-700 transition"
|
|
134
|
-
>
|
|
135
|
-
Release Another Package
|
|
136
|
-
</button>
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
|
-
{/* Links */}
|
|
140
|
-
<div className="border-t pt-6 flex gap-4 justify-center">
|
|
141
|
-
<a href="#" className="flex items-center gap-2 gap-2 text-primary-600 hover:text-primary-700 font-medium text-sm">
|
|
142
|
-
View Release on GitHub <ArrowLongRightIcon></ArrowLongRightIcon>
|
|
143
|
-
</a>
|
|
144
|
-
<a href="#" className="flex items-center gap-2 gap-2 text-primary-600 hover:text-primary-700 font-medium text-sm">
|
|
145
|
-
View on npm <ArrowLongRightIcon></ArrowLongRightIcon>
|
|
146
|
-
</a>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
);
|
|
150
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Release Validation Component
|
|
3
|
-
* Validates release readiness before publishing
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React from 'react';
|
|
7
|
-
import { ValidationResult, SelectedPackage } from '../ReleaseManager';
|
|
8
|
-
import { CheckIcon, XMarkIcon } from '../../../icons';
|
|
9
|
-
|
|
10
|
-
interface ReleaseValidationProps {
|
|
11
|
-
validation: ValidationResult;
|
|
12
|
-
packages: SelectedPackage[];
|
|
13
|
-
onConfirm: () => void;
|
|
14
|
-
onBack: () => void;
|
|
15
|
-
loading?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default function ReleaseValidation({
|
|
19
|
-
validation,
|
|
20
|
-
packages,
|
|
21
|
-
onConfirm,
|
|
22
|
-
onBack,
|
|
23
|
-
loading,
|
|
24
|
-
}: ReleaseValidationProps) {
|
|
25
|
-
const checks = [
|
|
26
|
-
{ name: 'User Permissions', passed: validation.checks.permissions },
|
|
27
|
-
{ name: 'Working Tree Clean', passed: validation.checks.workingTreeClean },
|
|
28
|
-
{ name: 'CI Tests Passing', passed: validation.checks.ciPassing },
|
|
29
|
-
{ name: 'Version Available on npm', passed: validation.checks.versionAvailable },
|
|
30
|
-
];
|
|
31
|
-
|
|
32
|
-
return (
|
|
33
|
-
<div className="bg-white rounded-lg shadow p-6 space-y-6">
|
|
34
|
-
<div>
|
|
35
|
-
<h2 className="text-2xl font-bold text-gray-900 mb-2">Step 4: Validate Release</h2>
|
|
36
|
-
<p className="text-gray-600">
|
|
37
|
-
Checking if the release is safe to proceed. All checks must pass.
|
|
38
|
-
</p>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
{/* Status Overview */}
|
|
42
|
-
<div className="grid grid-cols-2 gap-4">
|
|
43
|
-
<div className={`p-4 rounded-lg ${validation.isValid ? 'bg-green-50' : 'bg-red-50'}`}>
|
|
44
|
-
<p className={`font-medium ${validation.isValid ? 'text-green-900' : 'text-red-900'}`}>
|
|
45
|
-
{validation.isValid ? 'Ready to Release' : 'Not Ready'}
|
|
46
|
-
</p>
|
|
47
|
-
<p className={`text-sm mt-1 ${validation.isValid ? 'text-green-700' : 'text-red-700'}`}>
|
|
48
|
-
{validation.isValid
|
|
49
|
-
? 'All checks passed. Safe to proceed.'
|
|
50
|
-
: `${validation.errors.length} error(s) need resolution`}
|
|
51
|
-
</p>
|
|
52
|
-
</div>
|
|
53
|
-
<div className="p-4 bg-blue-50 rounded-lg">
|
|
54
|
-
<p className="font-medium text-blue-900">Release Summary</p>
|
|
55
|
-
<p className="text-sm text-blue-700 mt-1">
|
|
56
|
-
{packages.length} package(s) will be released
|
|
57
|
-
</p>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
{/* Validation Checks */}
|
|
62
|
-
<div className="border-t pt-6">
|
|
63
|
-
<h3 className="text-lg font-bold text-gray-900 mb-4">Pre-release Checks</h3>
|
|
64
|
-
<div className="space-y-3">
|
|
65
|
-
{checks.map((check, idx) => (
|
|
66
|
-
<div
|
|
67
|
-
key={idx}
|
|
68
|
-
className={`flex items-center space-x-3 p-3 rounded-lg ${
|
|
69
|
-
check.passed ? 'bg-green-50' : 'bg-red-50'
|
|
70
|
-
}`}
|
|
71
|
-
>
|
|
72
|
-
<div
|
|
73
|
-
className={`flex-shrink-0 w-6 h-6 rounded-full flex items-center justify-center font-bold text-white p-1 ${
|
|
74
|
-
check.passed ? 'bg-green-500' : 'bg-red-500'
|
|
75
|
-
}`}
|
|
76
|
-
>
|
|
77
|
-
{check.passed ? <CheckIcon></CheckIcon> : <XMarkIcon></XMarkIcon>}
|
|
78
|
-
</div>
|
|
79
|
-
<span
|
|
80
|
-
className={`font-medium ${
|
|
81
|
-
check.passed ? 'text-green-900' : 'text-red-900'
|
|
82
|
-
}`}
|
|
83
|
-
>
|
|
84
|
-
{check.name}
|
|
85
|
-
</span>
|
|
86
|
-
</div>
|
|
87
|
-
))}
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
|
|
91
|
-
{/* Errors */}
|
|
92
|
-
{validation.errors.length > 0 && (
|
|
93
|
-
<div className="border-t pt-6">
|
|
94
|
-
<h3 className="text-lg font-bold text-red-900 mb-4">Errors</h3>
|
|
95
|
-
<div className="space-y-2">
|
|
96
|
-
{validation.errors.map((error, idx) => (
|
|
97
|
-
<p key={idx} className="text-red-700 text-sm">
|
|
98
|
-
• {error}
|
|
99
|
-
</p>
|
|
100
|
-
))}
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
)}
|
|
104
|
-
|
|
105
|
-
{/* Warnings */}
|
|
106
|
-
{validation.warnings.length > 0 && (
|
|
107
|
-
<div className="border-t pt-6">
|
|
108
|
-
<h3 className="text-lg font-bold text-yellow-900 mb-4">Warnings</h3>
|
|
109
|
-
<div className="space-y-2">
|
|
110
|
-
{validation.warnings.map((warning, idx) => (
|
|
111
|
-
<p key={idx} className="text-yellow-700 text-sm">
|
|
112
|
-
{warning}
|
|
113
|
-
</p>
|
|
114
|
-
))}
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
)}
|
|
118
|
-
|
|
119
|
-
{/* Actions */}
|
|
120
|
-
<div className="flex gap-3 justify-end">
|
|
121
|
-
<button
|
|
122
|
-
onClick={onBack}
|
|
123
|
-
className="px-6 py-2 border border-gray-300 text-gray-700 rounded-lg font-medium hover:bg-gray-50 transition"
|
|
124
|
-
disabled={loading}
|
|
125
|
-
>
|
|
126
|
-
Back
|
|
127
|
-
</button>
|
|
128
|
-
<button
|
|
129
|
-
onClick={onConfirm}
|
|
130
|
-
disabled={!validation.isValid || loading}
|
|
131
|
-
className="px-6 py-2 bg-primary-600 text-white rounded-lg font-medium hover:bg-primary-700 disabled:opacity-50 disabled:cursor-not-allowed transition"
|
|
132
|
-
>
|
|
133
|
-
{loading ? 'Publishing...' : 'Confirm & Publish'}
|
|
134
|
-
</button>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
);
|
|
138
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Version Bump Selector Component
|
|
3
|
-
* Allows users to select version bump types (major/minor/patch)
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import React, { useState } from 'react';
|
|
7
|
-
import { SelectedPackage } from '../ReleaseManager';
|
|
8
|
-
|
|
9
|
-
interface VersionBumpSelectorProps {
|
|
10
|
-
packages: SelectedPackage[];
|
|
11
|
-
onConfirm: (packages: SelectedPackage[]) => void;
|
|
12
|
-
onBack: () => void;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const bumpDescriptions = {
|
|
16
|
-
major: 'Breaking changes, incompatible API changes',
|
|
17
|
-
minor: 'New features, backward compatible',
|
|
18
|
-
patch: 'Bug fixes, patches, backward compatible',
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default function VersionBumpSelector({
|
|
22
|
-
packages,
|
|
23
|
-
onConfirm,
|
|
24
|
-
onBack,
|
|
25
|
-
}: VersionBumpSelectorProps) {
|
|
26
|
-
const [bumps, setBumps] = useState<Record<string, 'major' | 'minor' | 'patch'>>(
|
|
27
|
-
packages.reduce((acc, pkg) => ({ ...acc, [pkg.name]: pkg.bumpType }), {})
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
const calculateNewVersion = (
|
|
31
|
-
current: string,
|
|
32
|
-
bumpType: 'major' | 'minor' | 'patch'
|
|
33
|
-
): string => {
|
|
34
|
-
const parts = current.split('.').map(Number);
|
|
35
|
-
if (bumpType === 'major') {
|
|
36
|
-
return `${parts[0] + 1}.0.0`;
|
|
37
|
-
} else if (bumpType === 'minor') {
|
|
38
|
-
return `${parts[0]}.${parts[1] + 1}.0`;
|
|
39
|
-
} else {
|
|
40
|
-
return `${parts[0]}.${parts[1]}.${parts[2] + 1}`;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const handleBumpChange = (packageName: string, bumpType: 'major' | 'minor' | 'patch') => {
|
|
45
|
-
setBumps(prev => ({ ...prev, [packageName]: bumpType }));
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const handleConfirm = () => {
|
|
49
|
-
const updated: SelectedPackage[] = packages.map(pkg => ({
|
|
50
|
-
...pkg,
|
|
51
|
-
bumpType: bumps[pkg.name],
|
|
52
|
-
newVersion: calculateNewVersion(pkg.currentVersion, bumps[pkg.name]),
|
|
53
|
-
}));
|
|
54
|
-
onConfirm(updated);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
return (
|
|
58
|
-
<div className="bg-white rounded-lg shadow p-6 space-y-6">
|
|
59
|
-
<div>
|
|
60
|
-
<h2 className="text-2xl font-bold text-gray-900 mb-2">Step 2: Select Version Bumps</h2>
|
|
61
|
-
<p className="text-gray-600">
|
|
62
|
-
Choose the version bump type for each package. This determines the new version number.
|
|
63
|
-
</p>
|
|
64
|
-
</div>
|
|
65
|
-
|
|
66
|
-
{/* Bump Types Legend */}
|
|
67
|
-
<div className="grid grid-cols-3 gap-4">
|
|
68
|
-
{(Object.entries(bumpDescriptions) as [string, string][]).map(([type, desc]) => (
|
|
69
|
-
<div key={type} className="p-4 bg-gray-50 rounded-lg">
|
|
70
|
-
<p className="font-medium text-gray-900 capitalize mb-1">{type}</p>
|
|
71
|
-
<p className="text-sm text-gray-600">{desc}</p>
|
|
72
|
-
</div>
|
|
73
|
-
))}
|
|
74
|
-
</div>
|
|
75
|
-
|
|
76
|
-
{/* Packages Bump Selection */}
|
|
77
|
-
<div className="space-y-4">
|
|
78
|
-
{packages.map(pkg => (
|
|
79
|
-
<div key={pkg.name} className="border border-gray-200 rounded-lg p-4">
|
|
80
|
-
<div className="flex items-center justify-between mb-4">
|
|
81
|
-
<div>
|
|
82
|
-
<p className="font-medium text-gray-900">{pkg.name}</p>
|
|
83
|
-
<p className="text-sm text-gray-500">Current: v{pkg.currentVersion}</p>
|
|
84
|
-
</div>
|
|
85
|
-
<div className="text-right">
|
|
86
|
-
<p className="text-sm text-gray-500">New Version:</p>
|
|
87
|
-
<p className="text-lg font-bold text-primary-600">
|
|
88
|
-
v{calculateNewVersion(pkg.currentVersion, bumps[pkg.name])}
|
|
89
|
-
</p>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
|
|
93
|
-
{/* Bump Type Selection */}
|
|
94
|
-
<div className="grid grid-cols-3 gap-3">
|
|
95
|
-
{(['major', 'minor', 'patch'] as const).map(type => (
|
|
96
|
-
<button
|
|
97
|
-
key={type}
|
|
98
|
-
onClick={() => handleBumpChange(pkg.name, type)}
|
|
99
|
-
className={`p-3 rounded-lg border-2 transition font-medium text-sm ${
|
|
100
|
-
bumps[pkg.name] === type
|
|
101
|
-
? 'border-primary-600 bg-primary-50 text-primary-700'
|
|
102
|
-
: 'border-gray-200 bg-white text-gray-700 hover:border-gray-300'
|
|
103
|
-
}`}
|
|
104
|
-
>
|
|
105
|
-
<span className="capitalize">{type}</span>
|
|
106
|
-
</button>
|
|
107
|
-
))}
|
|
108
|
-
</div>
|
|
109
|
-
|
|
110
|
-
{/* Affected Dependencies */}
|
|
111
|
-
{pkg.affectedDependencies.length > 0 && (
|
|
112
|
-
<div className="mt-4 p-3 bg-blue-50 rounded-lg">
|
|
113
|
-
<p className="text-sm font-medium text-blue-900">
|
|
114
|
-
ℹ️ {pkg.affectedDependencies.length} dependent package(s)
|
|
115
|
-
</p>
|
|
116
|
-
<p className="text-xs text-blue-700 mt-1">
|
|
117
|
-
Will be auto-bumped when this package is released
|
|
118
|
-
</p>
|
|
119
|
-
</div>
|
|
120
|
-
)}
|
|
121
|
-
</div>
|
|
122
|
-
))}
|
|
123
|
-
</div>
|
|
124
|
-
|
|
125
|
-
{/* Actions */}
|
|
126
|
-
<div className="flex gap-3 justify-end">
|
|
127
|
-
<button
|
|
128
|
-
onClick={onBack}
|
|
129
|
-
className="px-6 py-2 border border-gray-300 text-gray-700 rounded-lg font-medium hover:bg-gray-50 transition"
|
|
130
|
-
>
|
|
131
|
-
Back
|
|
132
|
-
</button>
|
|
133
|
-
<button
|
|
134
|
-
onClick={handleConfirm}
|
|
135
|
-
className="px-6 py-2 bg-primary-600 text-white rounded-lg font-medium hover:bg-primary-700 transition"
|
|
136
|
-
>
|
|
137
|
-
Continue
|
|
138
|
-
</button>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
);
|
|
142
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Release Manager Component Types
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export interface SelectedPackage {
|
|
6
|
-
name: string;
|
|
7
|
-
currentVersion: string;
|
|
8
|
-
newVersion: string;
|
|
9
|
-
bumpType: 'major' | 'minor' | 'patch';
|
|
10
|
-
affectedDependencies: string[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface ChangesetData {
|
|
14
|
-
packages: SelectedPackage[];
|
|
15
|
-
summary: string;
|
|
16
|
-
timestamp: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface ValidationResult {
|
|
20
|
-
isValid: boolean;
|
|
21
|
-
errors: string[];
|
|
22
|
-
warnings: string[];
|
|
23
|
-
checks: {
|
|
24
|
-
permissions: boolean;
|
|
25
|
-
workingTreeClean: boolean;
|
|
26
|
-
ciPassing: boolean;
|
|
27
|
-
versionAvailable: boolean;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
// Import sub-components
|
|
4
|
-
import {
|
|
5
|
-
SetupModal,
|
|
6
|
-
SetupHeader,
|
|
7
|
-
SetupProgress,
|
|
8
|
-
StepContent,
|
|
9
|
-
StepNavigation,
|
|
10
|
-
} from './components';
|
|
11
|
-
|
|
12
|
-
// Import types and utilities
|
|
13
|
-
import { SetupGuideProps, SetupStep } from './types/setup.types';
|
|
14
|
-
import {
|
|
15
|
-
getInitialSteps,
|
|
16
|
-
calculateProgress,
|
|
17
|
-
canProceedToNext,
|
|
18
|
-
isSetupComplete,
|
|
19
|
-
markStepAsComplete,
|
|
20
|
-
} from './utils/setup.utils';
|
|
21
|
-
|
|
22
|
-
// Re-export types for backward compatibility
|
|
23
|
-
export type { SetupStep, SetupGuideProps } from './types/setup.types';
|
|
24
|
-
|
|
25
|
-
export default function SetupGuide({
|
|
26
|
-
isOpen,
|
|
27
|
-
onClose,
|
|
28
|
-
onComplete,
|
|
29
|
-
}: SetupGuideProps) {
|
|
30
|
-
const [currentStep, setCurrentStep] = useState(0);
|
|
31
|
-
const [steps, setSteps] = useState<SetupStep[]>(getInitialSteps());
|
|
32
|
-
|
|
33
|
-
// Handle step completion
|
|
34
|
-
const handleStepComplete = (stepId: string) => {
|
|
35
|
-
const updatedSteps = markStepAsComplete(steps, stepId);
|
|
36
|
-
setSteps(updatedSteps);
|
|
37
|
-
|
|
38
|
-
// Auto-advance to next step if current step is completed
|
|
39
|
-
const currentStepCompleted = updatedSteps[currentStep].completed;
|
|
40
|
-
if (currentStepCompleted && currentStep < steps.length - 1) {
|
|
41
|
-
setCurrentStep(prev => prev + 1);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
// Navigation handlers
|
|
46
|
-
const handleNext = () => {
|
|
47
|
-
if (currentStep < steps.length - 1) {
|
|
48
|
-
setCurrentStep(prev => prev + 1);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const handlePrevious = () => {
|
|
53
|
-
if (currentStep > 0) {
|
|
54
|
-
setCurrentStep(prev => prev - 1);
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
const handleComplete = () => {
|
|
59
|
-
if (isSetupComplete(steps)) {
|
|
60
|
-
onComplete();
|
|
61
|
-
onClose();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
// Calculate derived values
|
|
66
|
-
const progress = calculateProgress(steps, currentStep);
|
|
67
|
-
const canGoNext = canProceedToNext(steps, currentStep);
|
|
68
|
-
const canGoPrevious = currentStep > 0;
|
|
69
|
-
const isLastStep = currentStep === steps.length - 1;
|
|
70
|
-
const currentStepData = steps[currentStep];
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<SetupModal isOpen={isOpen} onClose={onClose}>
|
|
74
|
-
{/* Header */}
|
|
75
|
-
<SetupHeader onClose={onClose} />
|
|
76
|
-
|
|
77
|
-
{/* Progress Indicator */}
|
|
78
|
-
<SetupProgress progress={progress} />
|
|
79
|
-
|
|
80
|
-
{/* Step Content */}
|
|
81
|
-
<StepContent step={currentStepData} onStepComplete={handleStepComplete} />
|
|
82
|
-
|
|
83
|
-
{/* Navigation */}
|
|
84
|
-
<StepNavigation
|
|
85
|
-
currentStep={currentStep}
|
|
86
|
-
totalSteps={steps.length}
|
|
87
|
-
canGoNext={canGoNext}
|
|
88
|
-
canGoPrevious={canGoPrevious}
|
|
89
|
-
onNext={handleNext}
|
|
90
|
-
onPrevious={handlePrevious}
|
|
91
|
-
onComplete={handleComplete}
|
|
92
|
-
isLastStep={isLastStep}
|
|
93
|
-
/>
|
|
94
|
-
</SetupModal>
|
|
95
|
-
);
|
|
96
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { XMarkIcon } from '../../../icons/heroicons';
|
|
2
|
-
|
|
3
|
-
interface SetupHeaderProps {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export default function SetupHeader({ onClose }: SetupHeaderProps) {
|
|
8
|
-
return (
|
|
9
|
-
<div className="flex items-center justify-between p-6 border-b border-gray-200">
|
|
10
|
-
<div>
|
|
11
|
-
<h2 className="text-xl font-semibold text-gray-900">Setup Guide</h2>
|
|
12
|
-
<p className="text-sm text-gray-600 mt-1">
|
|
13
|
-
Configure your monorepo dashboard for optimal performance
|
|
14
|
-
</p>
|
|
15
|
-
</div>
|
|
16
|
-
<button
|
|
17
|
-
onClick={onClose}
|
|
18
|
-
className="text-gray-400 hover:text-gray-600 transition-colors"
|
|
19
|
-
>
|
|
20
|
-
<XMarkIcon className="w-6 h-6" />
|
|
21
|
-
</button>
|
|
22
|
-
</div>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface SetupModalProps {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
onClose: () => void;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export default function SetupModal({
|
|
8
|
-
isOpen,
|
|
9
|
-
onClose,
|
|
10
|
-
children,
|
|
11
|
-
}: SetupModalProps) {
|
|
12
|
-
if (!isOpen) return null;
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50">
|
|
16
|
-
<div
|
|
17
|
-
className="bg-white rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-hidden"
|
|
18
|
-
onClick={e => e.stopPropagation()}
|
|
19
|
-
>
|
|
20
|
-
{children}
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SetupProgress as ProgressType } from '../types/setup.types';
|
|
2
|
-
|
|
3
|
-
interface SetupProgressProps {
|
|
4
|
-
progress: ProgressType;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export default function SetupProgress({ progress }: SetupProgressProps) {
|
|
8
|
-
const { currentStep, totalSteps, completedSteps } = progress;
|
|
9
|
-
const progressPercentage = ((currentStep + 1) / totalSteps) * 100;
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div className="px-6 py-4 border-b border-gray-200">
|
|
13
|
-
<div className="flex items-center justify-between mb-2">
|
|
14
|
-
<span className="text-sm font-medium text-gray-700">
|
|
15
|
-
Step {currentStep + 1} of {totalSteps}
|
|
16
|
-
</span>
|
|
17
|
-
<span className="text-sm text-gray-500">
|
|
18
|
-
{completedSteps} completed
|
|
19
|
-
</span>
|
|
20
|
-
</div>
|
|
21
|
-
<div className="w-full bg-gray-200 rounded-full h-2">
|
|
22
|
-
<div
|
|
23
|
-
className="bg-blue-600 h-2 rounded-full transition-all duration-300"
|
|
24
|
-
style={{ width: `${progressPercentage}%` }}
|
|
25
|
-
/>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
);
|
|
29
|
-
}
|