|
|
|
@@ -1044,7 +1044,7 @@
|
|
|
|
(info.morning_items || []).forEach(function(mi){ items.push({pillar: p, text: mi.text, type: 'morning'}); });
|
|
|
|
(info.morning_items || []).forEach(function(mi){ items.push({pillar: p, text: mi.text, type: 'morning'}); });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (blueprintFilter === 'all' || blueprintFilter === 'evening') {
|
|
|
|
if (blueprintFilter === 'all' || blueprintFilter === 'evening') {
|
|
|
|
(info.evening_items || []).forEach(function(ei){ items.push({pillar: p, text: ei.mistake || ei.improvement, type: 'evening'}); });
|
|
|
|
(info.evening_items || []).forEach(function(ei){ items.push({pillar: p, text: ei.mistake || ei.improvement, improvement: ei.improvement, type: 'evening'}); });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (blueprintFilter === 'all' || blueprintFilter === 'study') {
|
|
|
|
if (blueprintFilter === 'all' || blueprintFilter === 'study') {
|
|
|
|
(info.study_items || []).forEach(function(si){ items.push({pillar: p, text: si.name, type: 'study', done: si.done, note: si.note}); });
|
|
|
|
(info.study_items || []).forEach(function(si){ items.push({pillar: p, text: si.name, type: 'study', done: si.done, note: si.note}); });
|
|
|
|
@@ -1064,13 +1064,15 @@
|
|
|
|
var html = '';
|
|
|
|
var html = '';
|
|
|
|
items.forEach(function(item){
|
|
|
|
items.forEach(function(item){
|
|
|
|
var dot = '<span class="bp-pillar-dot" style="background:' + (pillarColors[item.pillar.name] || '#94A3B8') + '"></span>';
|
|
|
|
var dot = '<span class="bp-pillar-dot" style="background:' + (pillarColors[item.pillar.name] || '#94A3B8') + '"></span>';
|
|
|
|
var noteHtml = item.type === 'study' && item.note ? '<span class="bp-item-note">' + esc(item.note) + '</span>' : '';
|
|
|
|
var extra = '';
|
|
|
|
|
|
|
|
if (item.type === 'study' && item.note) extra = '<span class="bp-item-note">' + esc(item.note) + '</span>';
|
|
|
|
|
|
|
|
if (item.type === 'evening' && item.improvement) extra = '<span class="bp-item-note evening">→ ' + esc(item.improvement) + '</span>';
|
|
|
|
html += '<div class="bp-list-item">' +
|
|
|
|
html += '<div class="bp-list-item">' +
|
|
|
|
dot +
|
|
|
|
dot +
|
|
|
|
'<span class="bp-item-pillar">' + item.pillar.name + '</span>' +
|
|
|
|
'<span class="bp-item-pillar">' + item.pillar.name + '</span>' +
|
|
|
|
'<span class="bp-item-type ' + item.type + '">' + (typeLabels[item.type] || item.type) + '</span>' +
|
|
|
|
'<span class="bp-item-type ' + item.type + '">' + (typeLabels[item.type] || item.type) + '</span>' +
|
|
|
|
'<span class="bp-item-text">' + esc(item.text) + '</span>' +
|
|
|
|
'<span class="bp-item-text">' + esc(item.text) + '</span>' +
|
|
|
|
noteHtml +
|
|
|
|
extra +
|
|
|
|
'</div>';
|
|
|
|
'</div>';
|
|
|
|
});
|
|
|
|
});
|
|
|
|
list.innerHTML = html;
|
|
|
|
list.innerHTML = html;
|
|
|
|
|