Something went wrong. Try again.
Convert CSV banking statements to hledger journals
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101<!-- Served by the csv2journal binary itself (M1-PKG-006). --><meta charset="utf-8"><title>csv2journal</title><!-- D14: the kept choice, applied before the stylesheet paints anything. The key and what counts as a choice are theme.js's. Whatever else this copies matches no rule in app.css, and app.js replaces it. --><script>try { document.documentElement.dataset.theme = localStorage.getItem("theme") ?? "system"; } catch {}</script><link rel="stylesheet" href="/app.css">
<header> <h1>csv2journal</h1> <p id="summary">loading…</p> <!-- D14: light or dark, or as the system says, pressed when in force. --> <div id="theme" role="group" aria-label="colour scheme"> <button type="button" data-choice="system" title="follow the system"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <rect x="1.75" y="2.75" width="12.5" height="8.5" rx="1"/><path d="M5.5 14h5M8 11.25V14"/> </svg> </button> <button type="button" data-choice="light" title="light"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="3"/><path d="M8 1v1.5M8 13.5V15M1 8h1.5M13.5 8H15M3.05 3.05l1.06 1.06M11.89 11.89l1.06 1.06M3.05 12.95l1.06-1.06M11.89 4.11l1.06-1.06"/> </svg> </button> <button type="button" data-choice="dark" title="dark"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M13.5 9.5A5.5 5.5 0 0 1 6.5 2.5a5.5 5.5 0 1 0 7 7z"/> </svg> </button> </div></header>
<!-- Every diagnostic, one click from a count in the corner (§6.6). Kept here rather than at the end so Tab reaches it early. --><aside id="problems" hidden> <button type="button" id="problems-badge" aria-expanded="false" aria-controls="problems-panel"></button> <div id="problems-panel" hidden> <button type="button" id="problems-header" title="minimize"> <span id="problems-title"></span><span aria-hidden="true">–</span> </button> <ul id="diagnostics"></ul> </div></aside>
<!-- Which cell each profile alias names, in the colour its cells wear. --><section id="legend" hidden> <h2>Fields</h2> <ul id="fields"></ul></section>
<section id="editor"> <h2>Rules</h2> <!-- M1-UI-008: structured fields. There is deliberately no textarea here holding the rules file itself. --> <div id="rules"></div> <div id="editor-controls"> <button type="button" id="add">add rule</button> <button type="button" id="save">save rules</button> <span id="state"></span> </div></section>
<section> <div id="controls"> <input id="search" type="search" placeholder="search every cell" autocomplete="off"> <!-- M1-UI-005: a row is shown when its status is checked. "all" is only a shorthand for the four; the server never hears of it. --> <span id="filters"> <label><input type="checkbox" value="zero" checked autocomplete="off"> zero</label> <label><input type="checkbox" value="one" checked autocomplete="off"> one</label> <label><input type="checkbox" value="multiple" checked autocomplete="off"> multiple</label> <label><input type="checkbox" value="unavailable" checked autocomplete="off"> unavailable</label> <label><input type="checkbox" id="all" checked autocomplete="off"> all</label> </span> </div> <table> <thead><tr><th>row</th><th>status</th><th>rules</th><th>cells</th><th></th></tr></thead> <tbody id="rows"></tbody> </table> <p id="empty" hidden>No row matches.</p> <!-- Which rule a row's selected cells go to (D12). A popover closes itself on Escape and on a click elsewhere. --> <div id="rule-picker" class="below-button" popover></div> <!-- A new rule's name and target account, asked before it is added (D12). --> <div id="rule-prompt" class="below-button" popover></div></section>
<section id="output"> <h2>Journal</h2> <div id="output-controls"> <button type="button" id="preview">preview</button> <button type="button" id="finalize">write the journal</button> <span id="outcome"></span> </div> <!-- M1-UI-014: a preview that is not what would be written says so. --> <p id="draft-note" hidden>This is a preview. It has not been written, and cannot be yet.</p> <pre id="journal" hidden></pre></section>
<script type="module" src="/app.js"></script>