Completes Phase 1 and updates UI
Marks Phase 1 as complete in the documentation. Updates the transaction list in the UI to display transaction status flags and metadata, enhancing user understanding of each transaction.
This commit is contained in:
parent
1a28ec59eb
commit
8221feec20
2 changed files with 29 additions and 6 deletions
|
|
@ -251,6 +251,21 @@
|
|||
</div>
|
||||
<q-list v-if="transactions.length > 0" separator>
|
||||
<q-item v-for="entry in transactions" :key="entry.id">
|
||||
<q-item-section avatar>
|
||||
<!-- Transaction status flag -->
|
||||
<q-icon v-if="entry.flag === '*'" name="check_circle" color="positive" size="sm">
|
||||
<q-tooltip>Cleared</q-tooltip>
|
||||
</q-icon>
|
||||
<q-icon v-else-if="entry.flag === '!'" name="pending" color="orange" size="sm">
|
||||
<q-tooltip>Pending</q-tooltip>
|
||||
</q-icon>
|
||||
<q-icon v-else-if="entry.flag === '#'" name="flag" color="red" size="sm">
|
||||
<q-tooltip>Flagged - needs review</q-tooltip>
|
||||
</q-icon>
|
||||
<q-icon v-else-if="entry.flag === 'x'" name="cancel" color="grey" size="sm">
|
||||
<q-tooltip>Voided</q-tooltip>
|
||||
</q-icon>
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
{% raw %}{{ entry.description }}{% endraw %}
|
||||
|
|
@ -275,6 +290,11 @@
|
|||
<q-item-label caption v-if="entry.reference" class="text-grey">
|
||||
Ref: {% raw %}{{ entry.reference }}{% endraw %}
|
||||
</q-item-label>
|
||||
<q-item-label caption v-if="entry.meta && Object.keys(entry.meta).length > 0" class="text-blue-grey-6">
|
||||
<q-icon name="info" size="xs" class="q-mr-xs"></q-icon>
|
||||
<span v-if="entry.meta.source">Source: {% raw %}{{ entry.meta.source }}{% endraw %}</span>
|
||||
<span v-if="entry.meta.created_via" class="q-ml-sm">Via: {% raw %}{{ entry.meta.created_via }}{% endraw %}</span>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
<q-item-section side>
|
||||
<q-item-label>{% raw %}{{ formatSats(getTotalAmount(entry)) }} sats{% endraw %}</q-item-label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue