Release v2.10.0: Implement progressive scale-ready UI navigation for growing datasets across /quant/, /graph/, /learn/, /engineering/, and /math/
This commit is contained in:
1 parent
f0aaae680f
commit
e788f357ff
36 files changed
+402
-176
No files matched your search
+37
-2
@@ -265,7 +265,7 @@
|
||||
const base = {
|
||||
$schema: "../schemas/v1/learn-progress-state.schema.json",
|
||||
$id: SCHEMA_ID,
|
||||
version: "2.9.0",
|
||||
version: "2.10.0",
|
||||
updated_at_utc: new Date().toISOString(),
|
||||
preferred_register: "fund_manager",
|
||||
completed_modules: [],
|
||||
@@ -477,9 +477,21 @@
|
||||
updateM06RegisterView(memoryState.preferred_register);
|
||||
|
||||
const bmWrap = document.getElementById("bookmarkedCoordsList");
|
||||
const bmFilterEl = document.getElementById("filterBookmarkInput");
|
||||
const bmPagBar = document.getElementById("bookmarkPaginationBar");
|
||||
if (bmWrap) {
|
||||
bmWrap.innerHTML = "";
|
||||
memoryState.bookmarked_coordinates.forEach(c => {
|
||||
const bq = bmFilterEl ? (bmFilterEl.value || "").trim() : "";
|
||||
const allBm = memoryState.bookmarked_coordinates || [];
|
||||
const filteredBm = !bq ? allBm : allBm.filter(c => String(c).includes(bq));
|
||||
const bmPageSize = 20;
|
||||
const bmTotalPages = Math.max(1, Math.ceil(filteredBm.length / bmPageSize));
|
||||
if (typeof window.__hsLearnBmPage !== "number" || window.__hsLearnBmPage >= bmTotalPages) {
|
||||
window.__hsLearnBmPage = 0;
|
||||
}
|
||||
const bmStart = window.__hsLearnBmPage * bmPageSize;
|
||||
const bmSlice = filteredBm.slice(bmStart, bmStart + bmPageSize);
|
||||
bmSlice.forEach(c => {
|
||||
const pill = document.createElement("span");
|
||||
pill.className = "coord-pill";
|
||||
pill.textContent = `AQ ${c} ×`;
|
||||
@@ -490,6 +502,22 @@
|
||||
});
|
||||
bmWrap.appendChild(pill);
|
||||
});
|
||||
if (bmPagBar) {
|
||||
if (filteredBm.length <= bmPageSize) {
|
||||
bmPagBar.style.display = "none";
|
||||
bmPagBar.innerHTML = "";
|
||||
} else {
|
||||
bmPagBar.style.display = "inline-flex";
|
||||
bmPagBar.innerHTML =
|
||||
`<button type="button" class="btn" id="bmPrevBtn">←</button>` +
|
||||
`<span style="color:var(--gold);">${window.__hsLearnBmPage + 1}/${bmTotalPages} (${filteredBm.length})</span>` +
|
||||
`<button type="button" class="btn" id="bmNextBtn">→</button>`;
|
||||
const pB = document.getElementById("bmPrevBtn");
|
||||
const nB = document.getElementById("bmNextBtn");
|
||||
if (pB) pB.onclick = () => { window.__hsLearnBmPage = Math.max(0, window.__hsLearnBmPage - 1); renderAll(); };
|
||||
if (nB) nB.onclick = () => { window.__hsLearnBmPage = Math.min(bmTotalPages - 1, window.__hsLearnBmPage + 1); renderAll(); };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (statusMsg) setStatus(statusMsg, false);
|
||||
@@ -701,6 +729,13 @@
|
||||
if (rstBtn) rstBtn.addEventListener("click", resetLearnState);
|
||||
|
||||
const addBmBtn = document.getElementById("btnAddBookmark");
|
||||
const bmFilterInput = document.getElementById("filterBookmarkInput");
|
||||
if (bmFilterInput) {
|
||||
bmFilterInput.addEventListener("input", () => {
|
||||
window.__hsLearnBmPage = 0;
|
||||
renderAll();
|
||||
});
|
||||
}
|
||||
if (addBmBtn) {
|
||||
addBmBtn.addEventListener("click", () => {
|
||||
const inp = document.getElementById("inputBookmarkCoord");
|
||||
|
||||
Reference in new issue
Block a user