UI improvements and fixes
- Fixed brutalist styling across all components - Removed notes field from transaction list display - Added whitespace-nowrap to prevent description wrapping - Updated modals with consistent border styling - Improved form layouts and button styling
This commit is contained in:
parent
086d682592
commit
cdbf0733c5
4 changed files with 219 additions and 238 deletions
|
|
@ -1,12 +1,12 @@
|
|||
<template>
|
||||
<div v-if="isOpen" class="fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50">
|
||||
<div class="relative top-10 mx-auto p-5 border-2 border-black w-full max-w-2xl shadow-lg bg-white">
|
||||
<div v-if="isOpen" class="fixed inset-0 bg-black bg-opacity-75 overflow-y-auto h-full w-full z-50">
|
||||
<div class="relative top-10 mx-auto p-5 border-4 border-black w-full max-w-2xl bg-white">
|
||||
<div class="mt-3">
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<h3 class="text-lg font-medium text-black">Update Available Balances</h3>
|
||||
<h3 class="text-lg font-bold uppercase text-black">UPDATE BALANCES</h3>
|
||||
<button
|
||||
@click="closeModal"
|
||||
class="text-black hover:text-red-600">
|
||||
class="text-black hover:bg-black hover:text-white p-1">
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
||||
</svg>
|
||||
|
|
@ -15,12 +15,12 @@
|
|||
|
||||
<form @submit.prevent="updateBalances" class="space-y-6">
|
||||
<!-- Manual Entry Balances -->
|
||||
<div class="border-2 border-black p-4">
|
||||
<div class="border-4 border-black p-4">
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<div>
|
||||
<h4 class="text-md font-semibold text-black">Manual Entry</h4>
|
||||
<div v-if="lastManualUpdate" class="text-xs text-black mt-1">
|
||||
Last updated: {{ formatTimestamp(lastManualUpdate) }}
|
||||
<h4 class="text-md font-bold uppercase text-black">MANUAL ENTRY</h4>
|
||||
<div v-if="lastManualUpdate" class="text-xs text-black mt-1 uppercase">
|
||||
LAST UPDATE: {{ formatTimestamp(lastManualUpdate) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -28,44 +28,44 @@
|
|||
<!-- RBC -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-black mb-1">
|
||||
RBC Available Cash (CAD $)
|
||||
<label class="block text-sm font-bold uppercase text-black mb-1">
|
||||
RBC AVAILABLE (CAD)
|
||||
</label>
|
||||
<input
|
||||
v-model.number="balances.rbc_cad"
|
||||
type="number"
|
||||
step="0.01"
|
||||
class="w-full px-3 py-2 border-2 border-black focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
class="w-full px-3 py-2 border-2 border-black bg-white focus:outline-none focus:bg-black focus:text-white font-mono"
|
||||
placeholder="0.00" />
|
||||
<p class="text-xs text-black mt-1">Including overdraft limit</p>
|
||||
<p class="text-xs text-black mt-1 uppercase">INCLUDING OVERDRAFT</p>
|
||||
</div>
|
||||
|
||||
<!-- TD -->
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-black mb-1">
|
||||
TD Available Cash (CAD $)
|
||||
<label class="block text-sm font-bold uppercase text-black mb-1">
|
||||
TD AVAILABLE (CAD)
|
||||
</label>
|
||||
<input
|
||||
v-model.number="balances.td_cad"
|
||||
type="number"
|
||||
step="0.01"
|
||||
class="w-full px-3 py-2 border-2 border-black focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
class="w-full px-3 py-2 border-2 border-black bg-white focus:outline-none focus:bg-black focus:text-white font-mono"
|
||||
placeholder="0.00" />
|
||||
<p class="text-xs text-black mt-1">Including overdraft limit</p>
|
||||
<p class="text-xs text-black mt-1 uppercase">INCLUDING OVERDRAFT</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Millennium -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-black mb-1">
|
||||
Millennium Balance (€)
|
||||
<label class="block text-sm font-bold uppercase text-black mb-1">
|
||||
MILLENNIUM (EUR)
|
||||
</label>
|
||||
<input
|
||||
v-model.number="balances.millennium_eur"
|
||||
type="number"
|
||||
step="0.01"
|
||||
class="w-full px-3 py-2 border-2 border-black focus:outline-none focus:ring-2 focus:ring-blue-500"
|
||||
class="w-full px-3 py-2 border-2 border-black bg-white focus:outline-none focus:bg-black focus:text-white font-mono"
|
||||
placeholder="0.00" />
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -73,67 +73,67 @@
|
|||
|
||||
|
||||
<!-- Wise API Balances -->
|
||||
<div class="border rounded-lg p-4">
|
||||
<div class="border-4 border-black p-4">
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<div>
|
||||
<h4 class="text-md font-semibold text-gray-800">Wise Balances</h4>
|
||||
<div v-if="lastWiseFetch" class="text-xs text-gray-500 mt-1">
|
||||
Last fetched: {{ formatTimestamp(lastWiseFetch) }}
|
||||
<h4 class="text-md font-bold uppercase text-black">WISE BALANCES</h4>
|
||||
<div v-if="lastWiseFetch" class="text-xs text-black mt-1 uppercase">
|
||||
LAST FETCH: {{ formatTimestamp(lastWiseFetch) }}
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
@click="fetchWiseBalances"
|
||||
:disabled="loading"
|
||||
class="bg-green-500 hover:bg-green-600 disabled:bg-gray-400 text-white text-sm font-medium py-1 px-3 border-2 border-green-700">
|
||||
{{ loading ? 'Fetching...' : 'Fetch from API' }}
|
||||
class="bg-black hover:bg-white text-white hover:text-black disabled:bg-gray-300 disabled:text-gray-600 text-sm font-bold py-1 px-3 border-2 border-black uppercase">
|
||||
{{ loading ? 'FETCHING...' : 'FETCH API' }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Jennie Wise -->
|
||||
<div class="mb-4">
|
||||
<h5 class="text-sm font-medium text-black mb-2">Jennie Wise Balances</h5>
|
||||
<h5 class="text-sm font-bold uppercase text-black mb-2">JENNIE WISE</h5>
|
||||
<div v-if="wiseBalances.jennie && wiseBalances.jennie.length > 0" class="grid grid-cols-1 md:grid-cols-3 gap-3">
|
||||
<div v-for="balance in wiseBalances.jennie" :key="`jennie-${balance.currency}`" class="bg-white border-2 border-black p-3">
|
||||
<div class="text-xs text-black">{{ balance.currency }}</div>
|
||||
<div class="text-sm font-medium">{{ formatCurrency(balance.value.value, balance.currency) }}</div>
|
||||
<div class="text-xs text-black font-bold uppercase">{{ balance.currency }}</div>
|
||||
<div class="text-sm font-bold font-mono">{{ formatCurrency(balance.value.value, balance.currency) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="text-sm text-black italic">
|
||||
{{ loading ? 'Loading...' : 'No balances fetched yet' }}
|
||||
<div v-else class="text-sm text-black uppercase">
|
||||
{{ loading ? 'LOADING...' : 'NO DATA' }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Henry Wise -->
|
||||
<div>
|
||||
<h5 class="text-sm font-medium text-black mb-2">Henry Wise Balances</h5>
|
||||
<h5 class="text-sm font-bold uppercase text-black mb-2">HENRY WISE</h5>
|
||||
<div v-if="wiseBalances.henry && wiseBalances.henry.length > 0" class="grid grid-cols-1 md:grid-cols-3 gap-3">
|
||||
<div v-for="balance in wiseBalances.henry" :key="`henry-${balance.currency}`" class="bg-white border-2 border-black p-3">
|
||||
<div class="text-xs text-black">{{ balance.currency }}</div>
|
||||
<div class="text-sm font-medium">{{ formatCurrency(balance.value.value, balance.currency) }}</div>
|
||||
<div class="text-xs text-black font-bold uppercase">{{ balance.currency }}</div>
|
||||
<div class="text-sm font-bold font-mono">{{ formatCurrency(balance.value.value, balance.currency) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="text-sm text-black italic">
|
||||
{{ loading ? 'Loading...' : 'No balances fetched yet' }}
|
||||
<div v-else class="text-sm text-black uppercase">
|
||||
{{ loading ? 'LOADING...' : 'NO DATA' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Total in CAD -->
|
||||
<div class="border-t pt-4">
|
||||
<div class="bg-white border-2 border-black p-4">
|
||||
<div class="border-t-4 border-black pt-4">
|
||||
<div class="bg-black text-white p-4">
|
||||
<div class="flex justify-between items-center">
|
||||
<span class="text-sm font-medium text-black">Total Available Balance (CAD $)</span>
|
||||
<span class="text-lg font-bold text-blue-600">{{ formatCurrency(totalBalanceCAD, 'CAD') }}</span>
|
||||
<span class="text-sm font-bold uppercase">TOTAL AVAILABLE (CAD)</span>
|
||||
<span class="text-lg font-bold font-mono">{{ formatCurrency(totalBalanceCAD, 'CAD') }}</span>
|
||||
</div>
|
||||
<p class="text-xs text-black mt-1">All balances converted to CAD using current exchange rates</p>
|
||||
<p class="text-xs mt-1 uppercase">ALL BALANCES CONVERTED TO CAD</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Error Display -->
|
||||
<div v-if="error" class="bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded">
|
||||
{{ error }}
|
||||
<div v-if="error" class="bg-white border-4 border-black text-black px-4 py-3">
|
||||
<span class="font-bold uppercase">ERROR:</span> {{ error }}
|
||||
</div>
|
||||
|
||||
<!-- Action Buttons -->
|
||||
|
|
@ -141,13 +141,13 @@
|
|||
<button
|
||||
type="button"
|
||||
@click="closeModal"
|
||||
class="px-4 py-2 text-sm font-medium text-black bg-white border-2 border-black hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-black">
|
||||
Cancel
|
||||
class="px-4 py-2 text-sm font-bold text-black bg-white border-2 border-black hover:bg-black hover:text-white focus:outline-none uppercase">
|
||||
CANCEL
|
||||
</button>
|
||||
<button
|
||||
type="submit"
|
||||
class="px-4 py-2 text-sm font-medium text-white bg-blue-600 border-2 border-blue-800 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500">
|
||||
Update Balances
|
||||
class="px-4 py-2 text-sm font-bold text-white bg-black border-2 border-black hover:bg-white hover:text-black focus:outline-none uppercase">
|
||||
UPDATE
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue