A card move changes a property
HTML for this example
Select the code and use your copy shortcut. Changes in this preview are temporary.
<!doctype html><html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>A card move changes a property</title><style>*{box-sizing:border-box}html{color-scheme:light}body{margin:0;background:var(--bg,#eef1f4);color:var(--ink,#233449);font:16px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}main{max-width:1040px;margin:auto;padding:26px 28px 44px}header{margin-bottom:20px}h1{font-size:clamp(26px,4vw,36px);letter-spacing:-.035em;line-height:1.15;margin:5px 0 10px}h2{font-size:21px;line-height:1.3;margin:0 0 15px}h3{font-size:17px;margin:0 0 9px}p{margin:8px 0 16px}.kicker{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:750;color:var(--accent,#315b87)}.muted,small{color:#556473}.panel{margin:20px 0;padding:24px;border:1px solid var(--line,#ccd5df);border-radius:10px;background:#fff}.hero{padding:24px;background:var(--hero,#183b5c);color:#fff;border-radius:12px;margin:18px 0}.hero .kicker,.hero small{color:#d9e5ef}.big{font-size:clamp(32px,5vw,52px);line-height:1.15;font-weight:750;letter-spacing:-.035em;overflow-wrap:anywhere;margin:10px 0 15px}.row{display:flex;flex-wrap:wrap;gap:15px;align-items:end}.row>label{flex:1;min-width:140px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.thirds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}label{display:block;font-size:14px;font-weight:650}input,select,textarea{font:inherit;font-size:16px;color:inherit;display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #a9b4c1;border-radius:6px;background:white;min-width:0}input[type=checkbox]{display:inline;width:auto;margin:0 8px 0 0;accent-color:var(--accent,#315b87)}textarea{min-height:100px;resize:vertical}button{font:inherit;font-weight:650;min-height:44px;border:1px solid var(--accent,#315b87);border-radius:6px;background:var(--accent,#315b87);color:white;padding:10px 16px;cursor:pointer}button.secondary{background:white;color:var(--accent,#315b87)}button:disabled{opacity:.5;cursor:default}button[aria-pressed=true]{box-shadow:0 0 0 3px #eab655}button:hover:not(:disabled){filter:brightness(.94)}:focus-visible{outline:3px solid #e5a72f;outline-offset:3px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}[hidden]{display:none!important}.error{color:#a3232a;font-weight:650}.error:not(:empty){padding:12px;background:#fff0ed;border-left:4px solid #ab3439;margin:14px 0}.note{padding:14px;background:#edf2f6;border-radius:6px;margin:14px 0}.mono,pre{font-family:ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;margin:0}.mono{overflow-wrap:anywhere}table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px}th,td{text-align:left;vertical-align:top;overflow-wrap:anywhere;padding:11px 8px;border-bottom:1px solid #d4dce4}th{font-size:12px;text-transform:uppercase;letter-spacing:.035em;color:#536372}th:first-child,td:first-child{padding-left:0}.tag{display:inline-block;padding:4px 8px;border:1px solid currentColor;border-radius:4px;font-size:12px;font-weight:750}.rule{border-top:1px solid #cbd4dd;padding-top:18px}.line{height:30px;border-bottom:1px solid #aab5bf}.stat{font-size:34px;line-height:1.15;font-weight:750}.stat small{font:14px system-ui;display:block;margin-top:8px}details{margin:20px 0;border-top:1px solid #cbd4dd;padding:18px 0}summary{font-weight:700;cursor:pointer}details p{margin-top:15px}a{color:var(--accent,#315b87)}footer{font-size:13px;color:#556473;margin-top:25px}fieldset{min-width:0;border:1px solid #c8d2db;border-radius:7px;padding:18px;margin:15px 0}legend{font-weight:750;padding:0 6px}@media(max-width:720px){main{padding:20px}.panel,.hero{padding:20px}.thirds{gap:10px}}@media(max-width:540px){main{padding:16px}.grid,.thirds{grid-template-columns:1fr}.panel,.hero{padding:18px}.row{gap:12px}.row>label{min-width:100px}h1{font-size:27px}th,td{padding:10px 5px;font-size:13px}.big{font-size:37px}}.kanban{padding:22px;background:#fff;border:1px solid #d1ccd9;border-top:5px solid #79618f}.board-label{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:22px}.columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.column{min-height:190px;background:#f0edf4;padding:16px;border-radius:7px}.column h2{font-size:17px;border-bottom:1px solid #d4ccdd;padding-bottom:12px}.column h2 small{float:right}.note-card{padding:14px;background:white;border:1px solid #d9d3df;border-radius:6px;font-size:14px;overflow-wrap:anywhere}.note-card p{margin:10px 0}.note-card small{font-size:12px}@media(max-width:720px){.columns{gap:10px}.column{padding:12px}}@media(max-width:540px){.kanban{padding:18px}.columns{grid-template-columns:1fr}.column{min-height:0}}</style></head><body style="--bg:#f1eef5;--accent:#755b8b;--ink:#393044"><main><header><div class="kicker">Working example</div><h1>A card move changes a property</h1><p class="muted">Compare stored status, computed grouping, and group visibility in a local three-note model.</p></header><section class="kanban"><div class="board-label"><span class="tag">Local model · not connected to Obsidian</span><b id="groupLabel">Group: note.status</b></div><div id="columns" class="columns"></div><p id="membership" class="muted"></p></section><section class="panel"><div class="row"><label for="group">Group by<select id="group"><option value="property">Stored property · note.status</option><option value="formula">Computed formula · formula.stage</option></select></label><label><input type="checkbox" id="showNone" checked>Include missing values (YAML null)</label></div><p id="editable" class="note"></p><div class="row"><label for="note">Inspect a source note<select id="note"><option value="A">A · Practice/note-a.md</option><option value="B">B · Practice/note-b.md</option><option value="C">C · Practice/note-c.md</option></select></label><label for="destination">Proposed stored status<select id="destination"><option value="Draft">Draft</option><option value="Review" selected>Review</option></select></label></div><div class="actions"><button type="button" id="move">Preview property change</button><button type="button" id="reset" class="secondary">Reset local fixture</button></div><p id="change" aria-live="polite"></p></section><div class="grid"><section class="panel"><h2>Source note · in-memory model</h2><pre id="sourceNote"></pre><p>No real vault file is read or written.</p></section><section class="panel"><h2>Proposed .base configuration</h2><pre id="config"></pre></section></div><details><summary>Native acceptance ledger · pending</summary><p>Installed version: unknown. Current native Kanban help requires Obsidian 1.14+. Inspect actual file identity, status frontmatter, body text, and reopened view after a native move. This local model is not evidence that those native checks passed.</p><p>Formula stage is defined as note.status; matching text does not make the formula writable. Stage is a display name, not a renamed status key. Hidden None groups do not delete or finish C. Global and added view filters combine with AND; this minimal fixture uses only global filters.</p><p>Folder grouping, file moves, plugins, sync, work completion, approval, and WIP enforcement are outside this example. Reset restores local authored data only.</p><p><a href="https://obsidian.md/help/bases/views/kanban">Obsidian Kanban semantics</a> · <a href="https://obsidian.md/help/bases/syntax">Bases syntax</a></p></details><footer>Local example · No information is sent or saved.</footer></main><script>const $=id=>document.getElementById(id);const esc=s=>String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));function gcd(a,b){return b?gcd(b,a%b):a}function rat(n,d=1n){const g=gcd(n,d);return {n:n/g,d:d/g}}function mul(a,b){return rat(a.n*b.n,a.d*b.d)}function div(a,b){return rat(a.n*b.d,a.d*b.n)}function rounded(r,p=6){const scale=10n**BigInt(p),q=(r.n*scale*2n+r.d)/(2n*r.d),s=q.toString().padStart(p+1,'0');return p?s.slice(0,-p)+'.'+s.slice(-p):s}function show(r,unit=''){if(r.n>0n&&r.n*1000000n<r.d)return '<0.000001 '+unit;return '≈ '+rounded(r,6).replace(/([.][0-9]*?)0+$/,'$1').replace(/[.]$/,'')+' '+unit}function decimal(s,name,max=1000000,places=6){if(!new RegExp('^[0-9]+(?:[.][0-9]{1,'+places+'})?$').test(s)||s.length>35)throw Error(name+': enter a nonnegative dot-decimal number, up to '+places+' decimal places.');let [a,b='']=s.split('.');const r=rat(BigInt(a+b),10n**BigInt(b.length));if(r.n>BigInt(max)*r.d)throw Error(name+': maximum is '+max+'.');return r}function whole(s,name,max){if(!/^[0-9]+$/.test(s)||s.length>15||Number(s)>max)throw Error(name+': enter an integer from 0 to '+max+'.');return Number(s)}function onForm(fn,clear){$('form').addEventListener('submit',e=>{e.preventDefault();fn()});$('form').addEventListener('input',clear);$('form').addEventListener('change',clear)}
const fixture=()=>[{id:'A',file:'Practice/note-a.md',status:'Draft',body:'Practice A outline.'},{id:'B',file:'Practice/note-b.md',status:'Review',body:'Practice B check.'},{id:'C',file:'Practice/note-c.md',status:null,body:'Practice C pending.'}];let notes=fixture();function view(ns,showNone){const groups=['Draft','Review',...(showNone?[null]:[])];return groups.map(status=>({status,notes:ns.filter(n=>n.status===status)}))}function moveNote(ns,id,status,group){if(group!=='property')throw Error('Formula grouping is read-only.');if(!['Draft','Review'].includes(status))throw Error('Unsupported status.');const n=ns.find(n=>n.id===id);if(!n)throw Error('Unknown note.');const old=n.status;n.status=status;return {file:n.file,before:old,after:n.status,body:n.body}}function render(){const formula=$('group').value==='formula',none=$('showNone').checked,groups=view(notes,none);$('groupLabel').textContent='Group: '+(formula?'formula.stage':'note.status');$('columns').innerHTML=groups.map(g=>'<section class="column"><h2>'+esc(g.status??'None')+' <small>'+g.notes.length+'</small></h2>'+g.notes.map(n=>'<article class="note-card"><b>'+esc(n.file.split('/')[1])+'</b><p>'+esc(n.body)+'</p><small>Stored status: '+esc(n.status??'(property absent)')+'</small></article>').join('')+'</section>').join('');$('membership').textContent='Source dataset: 3 notes. Visible cards: '+groups.reduce((s,g)=>s+g.notes.length,0)+'. '+(!none?'C still exists with no status; its group is hidden.':'Missing status appears in None; it is not Draft.');$('editable').textContent=formula?'Computed stage labels are read-only. Group visibility can still change.':'Stored-property grouping permits the modeled status change. This does not prove actual work was reviewed.';$('move').disabled=formula;$('destination').disabled=formula;const n=notes.find(x=>x.id===$('note').value);$('sourceNote').textContent=(n.status===null?'(No status frontmatter)':'---\nstatus: '+n.status+'\n---')+'\n\n'+n.body+'\n\nFile: '+n.file;const grouping=formula?'formula.stage':'note.status';$('config').textContent='filters:\n and:\n - file.inFolder("Practice")\n - file.ext == "md"\nformulas:\n stage: note.status\nproperties:\n status:\n displayName: Stage\nviews:\n - type: kanban\n name: Practice\n groupBy:\n property: '+grouping+'\n direction: ASC\n groupOrder:\n - Draft\n - Review'+(none?'\n - null':'');}['group','showNone','note'].forEach(x=>$(x).addEventListener('change',()=>{$('change').textContent='View changed; inspect the current source and configuration.';render()}));$('move').onclick=()=>{try{const r=moveNote(notes,$('note').value,$('destination').value,$('group').value);render();$('change').textContent='Local preview: '+r.file+' status '+(r.before??'(absent)')+' → '+r.after+'. File identity and body remain unchanged in this model. Native edit/reopen checks are pending.'}catch(e){$('change').textContent=e.message}};$('reset').onclick=()=>{notes=fixture();$('group').value='property';$('showNone').checked=true;$('note').value='A';$('destination').value='Review';$('change').textContent='Local fixture restored. No native file was undone.';render()};render();</script></body></html>