Commit 1f23ebf
committed
ots: stop showing 'Digital Artifacts: None' for OTS commits
Two UI surfaces were showing 'None' under the Digital Artifacts label
for transactions that ARE OpenTimestamps calendar commits:
- transaction.component.html: 'None' was rendered whenever the
parser-derived digitalArtifacts list was empty. OTS isn't
parser-derivable (it's indexer-side knowledge), so OTS-only txs
always landed in the empty bucket -- yet <app-ots-viewer> right
below it rendered a full OTS panel, contradicting 'None'.
Hide 'None' when tx.isOtsCommit === true; the OTS viewer carries
the message.
- block-overview-tooltip.component.{ts,html}: same root cause via a
different path. hasAnyOrdpoolFlag() in ordpool-parser explicitly
excludes ordpool_ots, so the fetcher returned [] for OTS-only txs
and the tooltip showed 'None'. Compute isOtsCommit from
tx.flags & ordpool_ots (bit 81 survives the JSON Number round-trip
because precision loss happens in the lower 29 bits, not the high
end), suppress 'None', and render a small inline OpenTimestamps
panel.1 parent 7faee0c commit 1f23ebf
3 files changed
Lines changed: 25 additions & 3 deletions
File tree
- frontend/src/app/components
- block-overview-tooltip
- transaction
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
128 | 140 | | |
129 | 141 | | |
130 | 142 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
77 | 84 | | |
78 | 85 | | |
79 | 86 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
0 commit comments