Move Notes and Reports into each Tasks entry instead of being global
Each week/single-task card now carries its own notes and reports arrays, rendered alongside its task table in the detail panel -- add items to a TASKS_DATA entry's notes/reports array as they come in, rather than one shared Notes/Reports section for the whole tab.
This commit is contained in:
1 parent
798d35f4c9
commit
ac37dbac6d
1 file changed
+22
-9
+22
-9
@@ -291,6 +291,8 @@
|
||||
#tab-crm-research ul.req-list li { margin-bottom: 4px; }
|
||||
#tab-crm-research ul.plain-list { margin: 0 0 4px; padding-left: 18px; font-size: 0.88rem; line-height: 1.65; color: #3d4c5c; }
|
||||
#tab-crm-research ul.plain-list li { margin-bottom: 8px; }
|
||||
#tab-tasks ul.plain-list { margin: 0 0 4px; padding-left: 18px; font-size: 0.88rem; line-height: 1.65; color: #3d4c5c; }
|
||||
#tab-tasks ul.plain-list li { margin-bottom: 8px; }
|
||||
.crm-detail-table { border-collapse: collapse; width: 100%; font-size: 0.83rem; margin-bottom: 8px; }
|
||||
.crm-detail-table th, .crm-detail-table td { padding: 10px 12px; border-bottom: 1px solid #e0e7ef; text-align: left; vertical-align: top; line-height: 1.5; }
|
||||
.crm-detail-table th {
|
||||
@@ -854,14 +856,6 @@
|
||||
<div class="ab-outreach-list" id="tasks-list"></div>
|
||||
<div class="ab-outreach-detail" id="tasks-detail"></div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h2>Notes</h2>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<h2>Reports</h2>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="tab-address-book" class="tab-content">
|
||||
@@ -6239,7 +6233,9 @@
|
||||
{ subtask: "Message draft", ask: "Design first-contact info material to send", kpi: ">2", status: "Done" },
|
||||
{ subtask: "IPP for CRM", ask: "Define CRM requirements, stay solution-unbiased", kpi: "—", status: "Done" },
|
||||
{ subtask: "LinkedIn Posts", ask: "Continue posts per the Canva whiteboard", kpi: "4 posts", status: "Ongoing" }
|
||||
]
|
||||
],
|
||||
notes: [],
|
||||
reports: []
|
||||
}
|
||||
];
|
||||
var tasksSelectedId = null;
|
||||
@@ -6303,10 +6299,27 @@
|
||||
"<thead><tr><th>Subtask</th><th>Ask</th><th>KPI</th><th>Status</th></tr></thead>" +
|
||||
"<tbody>" + rows + "</tbody>" +
|
||||
"</table>" +
|
||||
"</div>" +
|
||||
"<div class=\"card\">" +
|
||||
"<h2>Notes</h2>" +
|
||||
buildTaskEntryList(entry.notes) +
|
||||
"</div>" +
|
||||
"<div class=\"card\">" +
|
||||
"<h2>Reports</h2>" +
|
||||
buildTaskEntryList(entry.reports) +
|
||||
"</div>"
|
||||
);
|
||||
}
|
||||
|
||||
// Notes/Reports items are plain strings for now — add them to a TASKS_DATA entry's
|
||||
// notes/reports array as this week's items come in.
|
||||
function buildTaskEntryList(items) {
|
||||
if (!items || !items.length) return "";
|
||||
return "<ul class=\"plain-list\">" + items.map(function (item) {
|
||||
return "<li>" + tasksEsc(item) + "</li>";
|
||||
}).join("") + "</ul>";
|
||||
}
|
||||
|
||||
renderTasksBoard();
|
||||
|
||||
/* ---- Opportunities module loader ----
|
||||
|
||||
Reference in new issue
Block a user