Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The published application is available at <https://daggerok.github.io/WisdomTree

Every column of the ETF catalog and of the Watchlist, Holdings, History and Distributions tabs has a type: text (`ABC`), number (`123`), percentage (`%`), money (`$`), date (`D`), date and time (`DT`) or time of day (`T`). The type is detected from the texts the column shows (80% of the filled cells must agree, otherwise text) and is written in the badge next to the column title: click it to cycle the type, Shift+click to return to auto-detection. Dates are read as `2024-06-15`, `6/15/2024`, `15.06.2024`, `Jun 15, 2024` or `15-Jun-2024`, date and time as `2024-06-15T09:30:00Z` or `2024-06-15 09:30`, time as `09:30`, `16:00:00` or `9:30 PM`

A row of filter inputs sits under the column headers (the `Filters` button hides it, `Clear filters` empties it). Filters of different columns are combined with AND, the search box applies on top, and Copy Tickers and the exports use the filtered rows. Filters and type overrides are remembered in the browser. `Sticky #` (next to `Filters`, off by default, remembered in the browser) numbers the rows by their rank in the table sorted by the current column before the column filters, so a filtered fund keeps its rank and the numbers keep gaps; the sort, the search and the category and blacklist choices rank again. The catalog starts sorted by Net Assets, largest first, unavailable values sort last in both directions, and every export starts with the `#` column. The action buttons (Copy Tickers, Upload / Drop N-PORT XML, Export .csv, Export .txt, Clear, Blacklist) sit in the `☰ Actions` menu at the right end of the toolbar: `Enter`, `Space` or the down arrow opens it, the arrows move between the items, `Esc` or a click outside closes it. The red `Clear` item opens a dialog that lists what can be reset (the selection, searches, sort order, open tab, shown columns, column filters, remembered table views and the blacklist), all ticked the first time and afterwards as they were left at the last OK; `Enter` confirms, `Esc` or a click outside cancels, the theme is always kept, so the page looks like a first visit (also after a reload)
A row of filter inputs sits under the column headers (the `Filters` button hides it, `Clear filters` empties it). Filters of different columns are combined with AND, the search box applies on top, and Copy Tickers and the exports use the filtered rows. Filters and type overrides are remembered in the browser. `Sticky #` (next to `Filters`, off by default, remembered in the browser) numbers the rows by their rank in the table sorted by the current column before the column filters, so a filtered fund keeps its rank and the numbers keep gaps; the sort, the search and the category and blacklist choices rank again. The catalog starts sorted by Net Assets, largest first, unavailable values sort last in both directions, and every export starts with the `#` column. The action buttons (Copy Tickers, Upload / Drop N-PORT XML, Export .csv, Export .txt, Clear, Blacklist) sit in the `☰ Actions` menu at the right end of the toolbar: `Enter`, `Space` or the down arrow opens it, the arrows move between the items, `Esc` or a click outside closes it. The πŸ“– button right before ☰ opens the Guide: how the page works and a reference of every column with its type badge and header tooltip, found by one search; βœ•, `Esc` or a click on the dim page closes it. The red `Clear` item opens a dialog that lists what can be reset (the selection, searches, sort order, open tab, shown columns, column filters, remembered table views and the blacklist), all ticked the first time and afterwards as they were left at the last OK; `Enter` confirms, `Esc` or a click outside cancels, the theme is always kept, so the page looks like a first visit (also after a reload)

Inside one filter: a space means AND, a comma means OR, a leading `!` means NOT, `?` matches an empty or unavailable value and `!?` a value that is there; a value that is unavailable matches only `?` and negated conditions. An unquoted space ends the value, so quote values that contain one (`>="2024-06-15 09:30"`)

Expand Down
20 changes: 20 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -498,3 +498,23 @@ textarea.ui-input{height:auto;padding:.5rem .75rem;line-height:1.4}
.am-sep{height:1px;margin:.25rem .125rem;background:var(--ui-line-soft);flex:none}
@media (prefers-reduced-motion:reduce){.am-panel{transition:none}}
.am-upload.dz-active{background:var(--ui-accent-soft);box-shadow:none;outline:1px dashed var(--ui-accent-ring);outline-offset:-1px}

/* ui-std guide: start (guide.css, owner 2026-12-04, pattern in-app-guide): the πŸ“– Guide is a .ui-modal of the spec (page gutters, fixed head with
the title, the search and βœ•, the body scrolls); πŸ“– sits in .am-root right before ☰, so .am-root lines its buttons up like the hub's πŸ” and ☰ */
.am-bar > .am-root{display:inline-flex;align-items:center;gap:var(--ui-gap)}
/* below lg the search leaves room for the three squares of the hub (πŸ” πŸ“– ☰, 134px plus the gap) on its line */
@media (max-width:63.999rem){.am-bar:not(.flex-col):has(> .am-root > #guide-btn) > .am-row{flex-basis:calc(100% - 9.5rem)}}
.guide-search{flex:1 1 auto;min-width:0}
/* the head keeps the 60px of the first panel with the 38px search in it (spec: head 60px, 12px 16px for 30px controls) */
#guide-panel .ui-modal-head{padding-top:calc((var(--ui-head-h) - var(--ui-h-md) - 1px) / 2);padding-bottom:calc((var(--ui-head-h) - var(--ui-h-md) - 1px) / 2)}
.guide-body > *{max-width:80rem}
.guide-h2{margin:1.25rem 0 .5rem}
.guide-h2:first-child{margin-top:0}
.guide-topic,.guide-group{margin-bottom:1rem}
.guide-h3{display:flex;align-items:center;gap:.5rem;margin:.75rem 0 .35rem;font-size:var(--ui-fs-md);line-height:1.25rem;font-weight:700;color:var(--ui-text)}
.guide-topic p{margin:.3rem 0;color:var(--ui-text-2)}
.guide-item{padding:.5rem 0;border-top:1px solid var(--ui-line-soft)}
.guide-name{display:flex;align-items:center;gap:.5rem;font-weight:600;color:var(--ui-text)}
.guide-item p{margin:.2rem 0 0;color:var(--ui-muted)}
.guide-badge{cursor:default;opacity:1}
/* ui-std guide: end */
15 changes: 15 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ <h1 class="min-w-0 text-xl font-bold tracking-tight text-slate-900 dark:text-whi
<button id="rank-btn" type="button" aria-pressed="false" class="dd-trigger ui-narrow" title="Sticky #: number the rows by their rank in the sorted table before the column filters, so filtered rows keep their rank (1, 4, 7...). Off: 1..N of the shown rows"><span class="dd-label">Sticky #:</span><span class="dd-value" id="rank-summary">off</span></button>
<!-- Actions menu (☰ at the right end of the toolbar, owner 2026-11-15): the action buttons keep their ids and handlers, setupActionsMenu() in main.tsx opens and closes it -->
<div class="am-root">
<button type="button" id="guide-btn" class="ui-btn ui-icon" aria-haspopup="dialog" aria-expanded="false" aria-controls="guide-panel" aria-label="Guide and column reference" title="Guide and column reference">πŸ“–</button>
<button type="button" id="actions-btn" class="ui-btn ui-icon am-trigger" aria-haspopup="menu" aria-expanded="false" aria-controls="actions-panel" aria-label="Actions" title="Actions: copy tickers, export, clear, blacklist">☰</button>
<div id="actions-panel" class="am-panel ui-pop" role="menu" aria-label="Actions" hidden>
<button id="copy-btn" disabled class="am-item dd-opt am-copy" role="menuitem" data-am-keep>Copy Tickers</button>
Expand Down Expand Up @@ -152,6 +153,20 @@ <h1 class="min-w-0 text-xl font-bold tracking-tight text-slate-900 dark:text-whi
<script>document.getElementById('footer-year').textContent = String(new Date().getFullYear());</script>
</div>

<!-- ui-std guide: start -->
<!-- the πŸ“– Guide (pattern in-app-guide): how it works and the column reference, one search; the guide block of main.tsx fills the body -->
<div id="guide-panel" class="ui-modal-backdrop" hidden>
<div class="ui-modal" role="dialog" aria-modal="true" aria-labelledby="guide-title" data-guide>
<div class="ui-modal-head">
<h2 id="guide-title" class="ui-modal-title">Guide</h2>
<input type="search" id="guide-search" class="ui-input guide-search" placeholder="Search topics and columns…" aria-label="Search the Guide" autocomplete="off" spellcheck="false" />
<button type="button" id="guide-close" class="ui-btn ui-sm ui-icon is-ghost" title="Close" aria-label="Close">βœ•</button>
</div>
<div id="guide-body" class="ui-modal-body guide-body themed-scroll"></div>
</div>
</div>
<!-- ui-std guide: end -->

<script src="./main.tsx" type="module"></script>
</body>
</html>
Loading