@quolu/lattice 0.42.0 → 0.42.1
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quolu/lattice",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"description": "Schedulability compiler for multi-agent development: observe real code boundaries, refactor the conflicting seam, recompile the plan for parallel execution",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Quo / クオ at kitepon.dev",
|
|
@@ -14,7 +14,9 @@ function renderNoteContext(context) {
|
|
|
14
14
|
: '<p class="note-warning">安全上表示できない要素を除外しました。</p>';
|
|
15
15
|
const correction = note.correction_state === 'superseded'
|
|
16
16
|
? `訂正済み(後継 ${note.superseded_by.slice(0, 12)}…)` : '現行';
|
|
17
|
-
|
|
17
|
+
// UTCのまま埋め、閲覧者の現地時刻への変換はブラウザ側へ委ねる(title属性に原文を残す)。
|
|
18
|
+
const stamp = `<time datetime="${escapeHtmlAttribute(note.recorded_at)}" title="${escapeHtmlAttribute(note.recorded_at)}" data-utc-stamp>${escapeHtmlText(note.recorded_at)}</time>`;
|
|
19
|
+
return `<article class="work-log-entry"><header>${stamp}<span>${escapeHtmlText(correction)}</span></header><div class="work-log-body">${rendered.html}</div>${filtering}<p class="work-log-origin">来歴: ${escapeHtmlText(note.origin_plan_version)}/${escapeHtmlText(note.origin_task_id)}・記録者 ${escapeHtmlText(`${note.actor.host}/${note.actor.agent}`)}</p></article>`;
|
|
18
20
|
}).join('');
|
|
19
21
|
const overflow = context.overflow_count === 0 ? ''
|
|
20
22
|
: `<p class="note-warning">ほか ${context.overflow_count}件は上限のため省略。全履歴: <code>${escapeHtmlText(context.full_history_command)}</code></p>`;
|
package/src/todo-gantt-html.mjs
CHANGED
|
@@ -150,6 +150,12 @@ const CONTROLLER = `
|
|
|
150
150
|
root.addEventListener('pointermove',event=>{if(event.pointerId===resizePointerId)setSplit(event.clientX);});
|
|
151
151
|
root.addEventListener('pointerup',finishResize);root.addEventListener('pointercancel',finishResize);
|
|
152
152
|
root.addEventListener('keydown',event=>{if(event.key==='Escape'){event.preventDefault();showOverview();applyLane(null);return;}const laneChip=event.target.closest('.summary-lane[data-lane-key]');if(laneChip&&(event.key==='Enter'||event.key===' ')){event.preventDefault();toggleLane(laneChip.dataset.laneKey);return;}const node=event.target.closest('[data-node-key]');if(node&&(event.key==='Enter'||event.key===' ')){event.preventDefault();select(node.dataset.nodeKey);}});
|
|
153
|
+
// 記録時刻はUTCで埋まっている。閲覧者の地域とlocaleを知っているのはブラウザだけなので、
|
|
154
|
+
// ここで現地時刻へ直す。scriptが動かなければ埋め込んだUTCがそのまま読める。
|
|
155
|
+
for(const stamp of root.querySelectorAll('time[data-utc-stamp]')){
|
|
156
|
+
const parsed=new Date(stamp.getAttribute('datetime'));
|
|
157
|
+
if(!Number.isNaN(parsed.getTime()))stamp.textContent=parsed.toLocaleString();
|
|
158
|
+
}
|
|
153
159
|
showPanel('overview');
|
|
154
160
|
})();
|
|
155
161
|
`;
|