forked from unimatrix/web
Remove duplicated banking overview and separate product management
This commit is contained in:
parent
0c0bedc8e3
commit
7e3c56c3b7
4 changed files with 12 additions and 3 deletions
|
|
@ -97,3 +97,5 @@ Java is a future payment-instruction client only. The prepared game contract inc
|
|||
Owner explicitly authorised 10,000 DM on each of the four displayed managed accounts, total 40,000 DM, for testing. This was posted once as balanced temporary system-funding ledger entries, with a durable duplicate guard and private pre-operation backup. No game balances or other customer accounts were credited. The Owner requires testsaldi to return to zero at the FINAL bank deployment. This is a final-release gate, NOT an automatic reset on each CI/deployment. Preserve clients, account numbers and history; take a new private backup and reconcile/cancel pending reservations before any final zeroing. Do not run that final reset during intermediate batches, and do not reissue the test grant.
|
||||
|
||||
Validation for the administration/interface batch: 47 focused bank/admin/cutover/navigation/design checks passed, including separate personal/admin scope, read-only denial, atomic cancellation, authority revocation, system-funding ledger visibility and final-session recheck. The menu design-audit count decreases by one because the duplicate transfer-history menu was removed.
|
||||
|
||||
Owner redundancy correction: My Banking Information/My Details and Overview were functionally identical, so the duplicate menu entry is removed and its bookmark maps to My Accounts. My Accounts focuses on balances, account details and transaction links. My Products focuses on package selection/change, prices and per-account service options rather than repeating the balance-card view.
|
||||
|
|
|
|||
|
|
@ -73,13 +73,18 @@ export function mountPostbankFoundation(host,page,{fetcher=fetch}={}){
|
|||
const section=box(null);
|
||||
if(!entity.clientNumber){section.append(activation(entity));frame.content.append(section);continue;}
|
||||
for(const p of entity.packages||[]){
|
||||
const packageBox=el('div',undefined,'pb-package '+packageClass(p.key));packageBox.append(packageBrand(p,entity));datum(packageBox,'Monthly package price',p.monthly+' DM');section.append(packageBox);
|
||||
const packageBox=el('div',undefined,'pb-package '+packageClass(p.key));packageBox.append(packageBrand(p,entity));if(page==='personal-bank')datum(packageBox,'Monthly package price',p.monthly+' DM');section.append(packageBox);
|
||||
if(page==='personal-bank'&&entity.canActivate&&view.catalogue.some(c=>c.kinds.includes(entity.kind)&&c.key!==p.key)){
|
||||
const toggle=el('button','Change package');toggle.type='button';toggle.setAttribute('aria-expanded','false');
|
||||
const panel=el('div',undefined,'pb-change-panel');panel.hidden=true;panel.id='package-change-'+p.id;toggle.setAttribute('aria-controls',panel.id);panel.append(activation(entity,p));
|
||||
toggle.onclick=()=>{panel.hidden=!panel.hidden;toggle.setAttribute('aria-expanded',String(!panel.hidden));toggle.textContent=panel.hidden?'Change package':'Cancel package change';};section.append(toggle,panel);
|
||||
}
|
||||
}
|
||||
if(page==='personal-bank'){
|
||||
const products=el('div',undefined,'pb-product-options');
|
||||
for(const a of entity.accounts||[]){const product=el('section',undefined,'pb-product-account');product.append(el('h5',accountNames[a.type]||'Account services'),el('code',number(a.number)));if(a.options?.balanceGuardEligible)product.append(accountOptions(entity,a));else product.append(el('p',a.type==='979'?'Official accounts are excluded from Balance Guard.':'No optional services are currently available for this account.','pb-muted'));products.append(product);}
|
||||
section.append(products);frame.content.append(section);continue;
|
||||
}
|
||||
const rows=el('div',undefined,'pb-account-list');
|
||||
for(const a of entity.accounts||[]){
|
||||
const card=el('article',undefined,'pb-account pb-account-'+a.type);card.tabIndex=0;card.setAttribute('role','link');card.setAttribute('aria-label','View transactions for '+a.name);const openTransactions=()=>{location.hash='bank/bank-statements/'+a.id;};card.onclick=event=>{if(event.target.closest('details,a,button,input,select,textarea,label'))return;openTransactions();};card.onkeydown=event=>{if(event.target!==card||!['Enter',' '].includes(event.key))return;event.preventDefault();openTransactions();};card.append(el('strong',accountNames[a.type]||'Bank account'),el('code',number(a.number)));
|
||||
|
|
|
|||
|
|
@ -210,3 +210,5 @@
|
|||
|
||||
/* Optional banking service presented as a compact commercial product. */
|
||||
.pb-account-options .pb-guard-addon{gap:16px;border:1px solid #b6a25b88;border-radius:13px;padding:22px;background:radial-gradient(ellipse at 100% 0%,#bea25126,transparent 65%),linear-gradient(140deg,#214c3d,#102c22);box-shadow:inset 0 1px 0 #e5d79a22,0 8px 20px #00170f22;font-family:Arial,sans-serif}.pb-guard-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.pb-guard-brand .pb-package-logo{width:43px;height:43px;color:#cbe2c1}.pb-guard-brand .pb-package-brand h5,.pb-guard-brand h5{font:600 21px Georgia,serif!important;color:#ead18b}.pb-guard-brand small{font-size:7px}.pb-guard-price{display:grid;gap:5px}.pb-guard-price strong{font:650 22px Arial,sans-serif;color:#e7cf83;letter-spacing:-.03em}.pb-guard-price small{font-size:9px;color:#b7c8ae}.pb-guard-addon>h5{margin:4px 0 0;font:650 15px Arial,sans-serif;color:#e0e6cb}.pb-guard-description{font-size:12px;line-height:1.7;color:#c4d4bc}.pb-guard-toggle{display:flex;align-items:center;gap:12px;border:1px solid #829b6988;border-radius:8px;padding:13px;background:#16392b;font-size:12px;color:#e8dfb5}.pb-guard-toggle input{width:20px;height:20px;accent-color:#d9bd70}.pb-guard-state{font-size:10px;letter-spacing:.03em;color:#b3ccb1}.pb-guard-addon>.pb-muted{font-size:10px;line-height:1.6}.pb-guard-addon>button{padding:11px 18px;border-radius:8px;border-color:#bda05d;background:linear-gradient(120deg,#d5bb71,#aa914d);color:#11291b;font:650 12px Arial,sans-serif}.pb-guard-addon>button:disabled{opacity:.45;cursor:default}
|
||||
|
||||
.pb-product-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:14px;margin-top:18px}.pb-product-account{padding:18px;border:1px solid #78916a55;border-radius:10px;background:#102b22}.pb-product-account>h5{margin:0 0 10px;font:650 14px Arial,sans-serif;color:#dbe2c5}.pb-product-account>code{font-size:12px;color:#bfcda9}.pb-product-account .pb-account-options{margin-top:18px}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue

Staff