5858}
5959</ style >
6060
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 ">
6262 <!-- Header -->
6363 < 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 ">
6464 < 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>
7474 </ div >
7575 </ div >
7676
77- < div class ="container mx-auto px-4 py-6 ">
77+ < div class ="container mx-auto px-4 py-6 flex-1 overflow-auto ">
7878 < div class ="grid grid-cols-1 lg:grid-cols-3 gap-6 ">
7979 <!-- Left Column: Summary -->
8080 < 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 ">
8282 < h3 class ="text-xl font-black text-black mb-4 "> 📋 Selected Tools</ h3 >
8383 < div id ="selectedSummary " class ="space-y-3 ">
8484 <!-- Will be populated dynamically -->
@@ -415,11 +415,7 @@ <h4 class="font-bold mb-2">🔌 MCPs (${grouped.mcps.length})</h4>
415415 const commandElement = document . getElementById ( 'patchCommand' ) ;
416416
417417 // 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' ;
423419
424420 if ( ! patchContent ) {
425421 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>
545541 let contentToCopy ;
546542 let message ;
547543
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'
551546${ patchContent }
552547EOF` ;
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' ;
561549
562550 navigator . clipboard . writeText ( contentToCopy ) . then ( ( ) => {
563551 showNotification ( message ) ;
@@ -589,17 +577,15 @@ <h4 class="font-bold mb-2">🔌 MCPs (${grouped.mcps.length})</h4>
589577
590578function applyConfiguration ( ) {
591579 // 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' ;
596582
597583 const instructions = `
598584To apply this configuration to your repository:
599585
6005861. Save the patch file as 'gitrules-config.patch'
6015872. Run: ${ command }
602- 3. Review the changes with: ${ reviewStep } ${ commitStep ? '\n4. Commit when ready: ' + commitStep : '' }
588+ 3. Review the changes with: ${ reviewStep }
603589 ` ;
604590
605591 alert ( instructions ) ;
0 commit comments