@@ -72,7 +72,6 @@ function showPreviewBanner() {
7272 <span class="preview-label">👁 Previewing Patch #<span id="preview-patch-id"></span></span>
7373 <span class="preview-hint">(changes shown inline)</span>
7474 </div>
75- <div id="conflict-tabs"></div>
7675 <div class="preview-controls">
7776 <button class="restore-btn" title="Restore document to this patch version">↺ Restore</button>
7877 <button class="exit-btn">✕ Exit Preview</button>
@@ -106,9 +105,6 @@ function showPreviewBanner() {
106105 patchIdEl . textContent = previewState . patchId ;
107106 }
108107
109- // Update conflict tabs if in a conflict group
110- updateConflictTabs ( ) ;
111-
112108 banner . style . display = 'flex' ;
113109}
114110
@@ -163,12 +159,9 @@ function renderGhostPreview() {
163159 let toPm = charToPm ( toChar ) ;
164160
165161 // Debug
166- console . log ( `[GhostPreview] Delete: MD ${ fromChar } -${ toChar } -> PM ${ fromPm } -${ toPm } , text: "${ op . text . substring ( 0 , 30 ) } ..."` ) ;
167-
168162 // Ensure minimum range of 1 for non-empty deletes
169163 if ( op . text . length > 0 && toPm <= fromPm ) {
170164 toPm = fromPm + 1 ;
171- console . log ( `[GhostPreview] Adjusted toPm to ${ toPm } for minimum range` ) ;
172165 }
173166
174167 if ( fromPm < toPm ) {
@@ -185,7 +178,7 @@ function renderGhostPreview() {
185178 const posPm = charToPm ( oldOffset ) ;
186179
187180 // Debug
188- console . log ( `[GhostPreview] Add: MD offset ${ oldOffset } -> PM ${ posPm } , text: " ${ op . text . substring ( 0 , 30 ) } ..."` ) ;
181+
189182
190183 operations . push ( {
191184 type : 'add' ,
@@ -197,7 +190,7 @@ function renderGhostPreview() {
197190 }
198191
199192 // Debug final operations
200- console . log ( `[GhostPreview] Final operations:` , operations ) ;
193+
201194
202195 // Apply the decorations to the editor
203196 showDiffPreview ( operations ) ;
@@ -261,62 +254,12 @@ async function getPendingConflictPatchIds(excludePatchId = null) {
261254/**
262255 * Update the conflict tabs in the preview banner
263256 */
257+ /**
258+ * Update the conflict tabs in the preview banner - Disabled
259+ */
264260async function updateConflictTabs ( ) {
265- const tabsContainer = document . getElementById ( 'conflict-tabs' ) ;
266- if ( ! tabsContainer ) return ;
267-
268- // Clear existing tabs
269- tabsContainer . innerHTML = '' ;
270-
271- // Only show tabs if in a conflict group with multiple patches
272- if ( ! previewState . conflictGroup || previewState . conflictGroup . length <= 1 ) {
273- return ;
274- }
275-
276- // Get pending patches in the conflict group
277- const pendingPatchIds = await getPendingConflictPatchIds ( ) ;
278-
279- // Only show tabs if there are multiple pending patches
280- if ( pendingPatchIds . length <= 1 ) {
281- return ;
282- }
283-
284- // Show warning indicator
285- const warningDiv = document . createElement ( 'div' ) ;
286- warningDiv . className = 'conflict-warning-header' ;
287- warningDiv . innerHTML = '⚠️ Conflicting patches:' ;
288- warningDiv . style . cssText = 'color:#f44336;font-weight:bold;font-size:0.9rem;margin-right:8px;' ;
289- tabsContainer . appendChild ( warningDiv ) ;
290-
291- // Create tabs for each pending patch in the conflict group
292- for ( const patchId of pendingPatchIds ) {
293- const tab = document . createElement ( 'button' ) ;
294- tab . className = 'conflict-tab' ;
295- tab . dataset . patchId = patchId ;
296- tab . textContent = `#${ patchId } ` ;
297-
298- if ( patchId === previewState . patchId ) {
299- tab . classList . add ( 'active' ) ;
300- }
301-
302- tab . addEventListener ( 'click' , async ( ) => {
303- await switchToConflictPatch ( patchId ) ;
304- } ) ;
305-
306- tabsContainer . appendChild ( tab ) ;
307- }
308-
309- // Add "Resolve Conflict" button
310- const resolveBtn = document . createElement ( 'button' ) ;
311- resolveBtn . className = 'resolve-conflict-btn' ;
312- resolveBtn . innerHTML = '🔀 Merge' ;
313- resolveBtn . style . cssText = 'margin-left:12px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:white;border:none;padding:6px 12px;border-radius:4px;cursor:pointer;font-weight:600;font-size:11px;' ;
314- resolveBtn . addEventListener ( 'click' , async ( ) => {
315- exitPreview ( ) ;
316- const { openPatchMergeWizardWithPatches } = await import ( './patch-merge-wizard.js' ) ;
317- openPatchMergeWizardWithPatches ( pendingPatchIds ) ;
318- } ) ;
319- tabsContainer . appendChild ( resolveBtn ) ;
261+ // Conflict tabs and merge wizard disabled per user request
262+ return ;
320263}
321264
322265/**
0 commit comments