MCPcopy Create free account
hub / github.com/error311/FileRise / saveCurrentLayout

Function saveCurrentLayout

public/js/dragAndDrop.js:392–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390}
391
392function saveCurrentLayout() {
393 const layout = {};
394 getCards().forEach(card => {
395 const zone = currentZoneForCard(card);
396 if (zone) layout[card.id] = zone;
397 });
398 ORDER_TRACKED_ZONES.forEach(zoneId => captureZoneOrder(layout, zoneId));
399 writeLayout(layout);
400}
401
402function getZoneOrder(layout, zoneId) {
403 if (!layout || typeof layout !== 'object') return [];

Callers 1

applyUserLayoutOrDefaultFunction · 0.85

Calls 4

getCardsFunction · 0.85
currentZoneForCardFunction · 0.85
captureZoneOrderFunction · 0.85
writeLayoutFunction · 0.85

Tested by

no test coverage detected