claude-code-kanban 7.27.0 → 7.28.0
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/package.json +1 -1
- package/public/app.js +24 -16
- package/public/index.html +3 -0
- package/public/style.css +2 -1
package/package.json
CHANGED
package/public/app.js
CHANGED
|
@@ -9782,6 +9782,7 @@ async function sendPreviewAction(frame, msg) {
|
|
|
9782
9782
|
//#region MARKDOWN_PREVIEW
|
|
9783
9783
|
const PREVIEW_STORAGE_PREFIX = 'preview-paths-';
|
|
9784
9784
|
let currentPreviewPath = null;
|
|
9785
|
+
let currentPreviewContent = null;
|
|
9785
9786
|
// The session a CLI preview was sent for, which need not be the one on screen.
|
|
9786
9787
|
let previewSessionId = null;
|
|
9787
9788
|
let previewFromTerminal = false;
|
|
@@ -10007,6 +10008,8 @@ function localImageUrl(src, base) {
|
|
|
10007
10008
|
|
|
10008
10009
|
function openPreviewModal(filePath, content, kind, sessionId) {
|
|
10009
10010
|
currentPreviewPath = filePath;
|
|
10011
|
+
currentPreviewContent = kind === 'image' ? null : content;
|
|
10012
|
+
document.getElementById('preview-copy-content-btn').style.display = currentPreviewContent == null ? 'none' : '';
|
|
10010
10013
|
previewSessionId = sessionId;
|
|
10011
10014
|
const fileName = filePath.split(/[\\/]/).pop();
|
|
10012
10015
|
document.getElementById('preview-modal-title').textContent = fileName;
|
|
@@ -10106,6 +10109,7 @@ function closePreviewModal() {
|
|
|
10106
10109
|
// Empty the body so an iframe preview is destroyed and its scripts/timers stop.
|
|
10107
10110
|
document.getElementById('preview-modal-body').innerHTML = '';
|
|
10108
10111
|
currentPreviewPath = null;
|
|
10112
|
+
currentPreviewContent = null;
|
|
10109
10113
|
previewSessionId = null;
|
|
10110
10114
|
if (previewFromTerminal) focusTerminalPane();
|
|
10111
10115
|
previewFromTerminal = false;
|
|
@@ -12946,20 +12950,6 @@ function showInfoModal(session, teamConfig, tasks, planContent, parentInfo) {
|
|
|
12946
12950
|
if (session.slug && session.hasPlan) {
|
|
12947
12951
|
infoRows.push(['Slug', session.slug, { openClaudeDir: true, openFile: session.planPath }]);
|
|
12948
12952
|
}
|
|
12949
|
-
if (session.project) {
|
|
12950
|
-
const projectName = session.project.split(/[/\\]/).pop();
|
|
12951
|
-
infoRows.push(['Project', projectName, { openPath: session.projectDir }]);
|
|
12952
|
-
infoRows.push(['Path', session.project, { openPath: session.project }]);
|
|
12953
|
-
if (session.cwd) {
|
|
12954
|
-
infoRows.push(['CWD', session.cwd, { openPath: session.cwd }]);
|
|
12955
|
-
}
|
|
12956
|
-
if (session.gitBranch) {
|
|
12957
|
-
infoRows.push(['Branch', session.gitBranch]);
|
|
12958
|
-
}
|
|
12959
|
-
if (session.description) {
|
|
12960
|
-
infoRows.push(['Description', session.description]);
|
|
12961
|
-
}
|
|
12962
|
-
}
|
|
12963
12953
|
if (session.tasksDir) {
|
|
12964
12954
|
infoRows.push(['Tasks Dir', session.tasksDir, { openPath: session.tasksDir }]);
|
|
12965
12955
|
}
|
|
@@ -12977,12 +12967,25 @@ function showInfoModal(session, teamConfig, tasks, planContent, parentInfo) {
|
|
|
12977
12967
|
const configDir = teamConfig.configPath.replace(/[/\\][^/\\]+$/, '');
|
|
12978
12968
|
infoRows.push(['Team Config', teamConfig.configPath, { openPath: configDir, openFile: teamConfig.configPath }]);
|
|
12979
12969
|
}
|
|
12970
|
+
const projectRows = [];
|
|
12971
|
+
if (session.project) {
|
|
12972
|
+
projectRows.push(['Project', session.project, { openPath: session.project }]);
|
|
12973
|
+
if (session.cwd) {
|
|
12974
|
+
projectRows.push(['Working directory', session.cwd, { openPath: session.cwd }]);
|
|
12975
|
+
}
|
|
12976
|
+
if (session.gitBranch) {
|
|
12977
|
+
projectRows.push(['Branch', session.gitBranch]);
|
|
12978
|
+
}
|
|
12979
|
+
if (session.description) {
|
|
12980
|
+
projectRows.push(['Description', session.description]);
|
|
12981
|
+
}
|
|
12982
|
+
}
|
|
12980
12983
|
const clickableStyle =
|
|
12981
12984
|
'font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; color: var(--accent-text); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;';
|
|
12982
12985
|
const plainStyle =
|
|
12983
12986
|
'font-family: var(--mono); font-size: 12px; color: var(--text-primary); user-select: all; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;';
|
|
12984
12987
|
html += `<div class="team-modal-meta info-grid">`;
|
|
12985
|
-
|
|
12988
|
+
const renderRow = ([label, value, opts]) => {
|
|
12986
12989
|
html += `<span style="font-weight: 500; color: var(--text-secondary); font-size: 12px; white-space: nowrap;">${label}</span>`;
|
|
12987
12990
|
if (opts?.openSession) {
|
|
12988
12991
|
html += `<span onclick="openSessionFromInfo('${escAttrJs(opts.openSession)}')" style="${clickableStyle}" title="Open session in app">${escapeHtml(value)}</span>`;
|
|
@@ -12997,7 +13000,12 @@ function showInfoModal(session, teamConfig, tasks, planContent, parentInfo) {
|
|
|
12997
13000
|
openBtn = `<button data-folder="${folder}" data-file="${file}" data-claude-dir="${opts.openClaudeDir ? '1' : ''}" onclick="openFolderInEditor(this.dataset.claudeDir ? undefined : this.dataset.folder, this.dataset.file || undefined)" title="Open in editor">${ICON_OPEN_EXTERNAL}</button>`;
|
|
12998
13001
|
}
|
|
12999
13002
|
html += `<span class="row-actions">${copyBtn}${openBtn}</span>`;
|
|
13000
|
-
}
|
|
13003
|
+
};
|
|
13004
|
+
infoRows.forEach(renderRow);
|
|
13005
|
+
if (projectRows.length) {
|
|
13006
|
+
html += `<div class="stat-divider"></div>`;
|
|
13007
|
+
projectRows.forEach(renderRow);
|
|
13008
|
+
}
|
|
13001
13009
|
html += `</div>`;
|
|
13002
13010
|
|
|
13003
13011
|
const contextHtml = renderContextDetail(session);
|
package/public/index.html
CHANGED
|
@@ -508,6 +508,9 @@
|
|
|
508
508
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="16" height="16"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>
|
|
509
509
|
</button>
|
|
510
510
|
<button class="icon-btn" aria-label="Copy path" title="Copy path" onclick="copyWithFeedback(currentPreviewPath, this)">
|
|
511
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg>
|
|
512
|
+
</button>
|
|
513
|
+
<button id="preview-copy-content-btn" class="icon-btn" aria-label="Copy content" title="Copy content" onclick="copyWithFeedback(currentPreviewContent, this)">
|
|
511
514
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
|
|
512
515
|
</button>
|
|
513
516
|
<button class="icon-btn" aria-label="Open in editor" title="Open in editor" onclick="openPreviewInEditor()">
|
package/public/style.css
CHANGED
|
@@ -1422,7 +1422,8 @@ body.booting .boot-splash {
|
|
|
1422
1422
|
.detail-context-stats .stat-value {
|
|
1423
1423
|
color: var(--text-primary);
|
|
1424
1424
|
}
|
|
1425
|
-
.detail-context-stats .stat-divider
|
|
1425
|
+
.detail-context-stats .stat-divider,
|
|
1426
|
+
.info-grid .stat-divider {
|
|
1426
1427
|
grid-column: 1 / -1;
|
|
1427
1428
|
border-top: 1px solid var(--border);
|
|
1428
1429
|
margin: 2px 0;
|