58
58
}
59
59
</ style >
60
60
61
- < div class ="min-h-screen bg-cyan-50 -mt-20 pt-20 page-content ">
61
+ < div class ="bg-cyan-50 -mt-20 pt-20 flex flex-col min-h-screen page-content ">
62
62
<!-- Header -->
63
63
< div class ="bg-cyan-50 border-b-2 border-black shadow-[0_4px_0px_0px_rgba(0,0,0,1)] sticky top-0 z-10 ">
64
64
< div class ="container mx-auto px-4 py-4 ">
@@ -74,11 +74,11 @@ <h1 class="text-2xl font-black text-black">Generate Your Configuration</h1>
74
74
</ div >
75
75
</ div >
76
76
77
- < div class ="container mx-auto px-4 py-6 ">
77
+ < div class ="container mx-auto px-4 py-6 flex-1 overflow-auto ">
78
78
< div class ="grid grid-cols-1 lg:grid-cols-3 gap-6 ">
79
79
<!-- Left Column: Summary -->
80
80
< div class ="lg:col-span-1 ">
81
- < div class ="bg-white border-2 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] p-4 sticky top-24 ">
81
+ < div class ="bg-white border-2 border-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] p-4 ">
82
82
< h3 class ="text-xl font-black text-black mb-4 "> 📋 Selected Tools</ h3 >
83
83
< div id ="selectedSummary " class ="space-y-3 ">
84
84
<!-- Will be populated dynamically -->
@@ -415,11 +415,7 @@ <h4 class="font-bold mb-2">🔌 MCPs (${grouped.mcps.length})</h4>
415
415
const commandElement = document . getElementById ( 'patchCommand' ) ;
416
416
417
417
// Update command based on source
418
- if ( sourceInfo . source === 'repo' ) {
419
- commandElement . innerHTML = 'git apply << \'EOF\'<br/>[patch content]<br/>EOF' ;
420
- } else {
421
- commandElement . innerHTML = 'patch -p0 << \'EOF\'<br/>[patch content]<br/>EOF' ;
422
- }
418
+ commandElement . innerHTML = 'patch -p0 << \'EOF\'<br/>[patch content]<br/>EOF' ;
423
419
424
420
if ( ! patchContent ) {
425
421
container . innerHTML = '<div class="text-gray-500">No patch generated</div>' ;
@@ -545,19 +541,11 @@ <h4 class="font-bold mb-2">🔌 MCPs (${grouped.mcps.length})</h4>
545
541
let contentToCopy ;
546
542
let message ;
547
543
548
- if ( isFromRepo ) {
549
- // For repo source: git apply with inline patch
550
- contentToCopy = `git apply << 'EOF'
544
+ // Use patch for all sources
545
+ contentToCopy = `patch -p0 << 'EOF'
551
546
${ patchContent }
552
547
EOF` ;
553
- message = 'Git patch command copied to clipboard! Paste and run directly in your terminal' ;
554
- } else {
555
- // For template/scratch: patch with inline content
556
- contentToCopy = `patch -p0 << 'EOF'
557
- ${ patchContent }
558
- EOF` ;
559
- message = 'Patch command copied to clipboard! Paste and run directly in your terminal' ;
560
- }
548
+ message = 'Patch command copied to clipboard! Paste and run directly in your terminal' ;
561
549
562
550
navigator . clipboard . writeText ( contentToCopy ) . then ( ( ) => {
563
551
showNotification ( message ) ;
@@ -589,17 +577,15 @@ <h4 class="font-bold mb-2">🔌 MCPs (${grouped.mcps.length})</h4>
589
577
590
578
function applyConfiguration ( ) {
591
579
// Show instructions for applying
592
- const isFromRepo = sourceInfo . source === 'repo' ;
593
- const command = isFromRepo ? 'git apply gitrules-config.patch' : 'patch -p0 < gitrules-config.patch' ;
594
- const reviewStep = isFromRepo ? 'git status' : 'ls -la' ;
595
- const commitStep = isFromRepo ? 'git commit -am "Add Gitrules configuration"' : '' ;
580
+ const command = 'patch -p0 < gitrules-config.patch' ;
581
+ const reviewStep = 'ls -la' ;
596
582
597
583
const instructions = `
598
584
To apply this configuration to your repository:
599
585
600
586
1. Save the patch file as 'gitrules-config.patch'
601
587
2. Run: ${ command }
602
- 3. Review the changes with: ${ reviewStep } ${ commitStep ? '\n4. Commit when ready: ' + commitStep : '' }
588
+ 3. Review the changes with: ${ reviewStep }
603
589
` ;
604
590
605
591
alert ( instructions ) ;
0 commit comments