Refactor architecture into eight components and consolidate reliability work
Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts. Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation. Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
This commit is contained in:
1 parent
9dd425f765
commit
d5d21b7841
302 files changed
+20037
-3492
No files matched your search
+7
-3
@@ -30,7 +30,11 @@ window.addEventListener('load', async () => {
|
||||
assert(!city.querySelector('.children-entry,[data-child-path]'), 'City result is exposed to file operations');
|
||||
assert(city.querySelector('[data-city-search-kind] .search-result-name mark'), 'City name highlight missing');
|
||||
assert(city.querySelector('.search-result-path')?.getAttribute('href')?.startsWith('/'), 'City boundary Path link missing');
|
||||
assert(city.querySelector('.search-result-name')?.getAttribute('href')?.startsWith('/v/city/'), 'City details link missing');
|
||||
for (const hit of city.querySelectorAll('[data-city-search-kind]')) {
|
||||
const href = hit.querySelector('.search-result-name')?.getAttribute('href');
|
||||
assert(href?.startsWith('/') && !href.startsWith('/v/city/'), 'Search links to City settings');
|
||||
assert(href === hit.querySelector('.search-result-path')?.getAttribute('href'), 'City title and Path destinations differ');
|
||||
}
|
||||
assert(!city.querySelector('script,[onload],[onerror]'), 'City source HTML became executable markup');
|
||||
}
|
||||
for (const mode of ['list', 'detail', 'icon']) {
|
||||
@@ -41,7 +45,7 @@ window.addEventListener('load', async () => {
|
||||
assert(getComputedStyle(panel).display !== 'none', 'Selected mode is hidden: ' + mode);
|
||||
assert(panel.querySelector('.search-result-name')?.textContent.includes('nebula'), 'Page name missing');
|
||||
assert(panel.querySelector('.search-result-path')?.textContent.includes('/docs/nebula guide?#%'), 'Full Path missing');
|
||||
assert(panel.querySelector('.search-result-excerpt mark')?.textContent === 'NEBULA', 'Context highlight missing');
|
||||
assert([...panel.querySelectorAll('.search-result-excerpt mark')].some(mark => mark.textContent.toLowerCase() === 'nebula'), 'Context highlight missing');
|
||||
assert(panel.querySelector('[data-match-source="body"]'), 'Match source missing');
|
||||
assert(panel.querySelector('.search-result-name').closest('a').getAttribute('href').includes('%3F%23%25'), 'Path URL was not encoded');
|
||||
if (city) assert(getComputedStyle(city).display !== 'none', 'View switching hid City results: ' + mode);
|
||||
@@ -58,7 +62,7 @@ window.addEventListener('load', async () => {
|
||||
assert(!cityRow.classList.contains('children-selected'), 'City result became a selectable file');
|
||||
}
|
||||
options.open = true;
|
||||
assert(document.documentElement.scrollWidth <= innerWidth, 'Search introduces horizontal page scrolling');
|
||||
assert(document.documentElement.scrollWidth <= innerWidth, 'Search introduces horizontal page scrolling: ' + [...document.querySelectorAll('body *')].filter(el => el.getBoundingClientRect().right > innerWidth + 1).slice(0,8).map(el => el.tagName + '.' + el.className + ':' + Math.round(el.getBoundingClientRect().right)).join(', '));
|
||||
document.body.dataset.vimReady = '1';
|
||||
console.log('Vim initialized');
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user