← back to Rentv Sheet Enrich Refine
Console: default column order pulls First Name + Last Name up right after Contact Name so they're visible without scrolling (only when user has no saved order)
0f87d7517b17e8965f0b5c3a81d7f19f99799bf3 · 2026-08-13 14:39:45 -0700 · Steve Abrams
Files touched
Diff
commit 0f87d7517b17e8965f0b5c3a81d7f19f99799bf3
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Aug 13 14:39:45 2026 -0700
Console: default column order pulls First Name + Last Name up right after Contact Name so they're visible without scrolling (only when user has no saved order)
---
public_live/index.html | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/public_live/index.html b/public_live/index.html
index d836c0e..b8babbb 100644
--- a/public_live/index.html
+++ b/public_live/index.html
@@ -176,6 +176,14 @@ async function loadTab(){
HIDDEN=new Set(LS.get('hidden.'+GID,[]));
COLW=LS.get('colw.'+GID,{});
ORDER=LS.get('order.'+GID,[]); // saved column order (per tab, per user)
+ if(!ORDER.length){ // default: pull First/Last Name up next to Contact Name
+ const find=re=>DATA.headers.findIndex(h=>re.test(String(h).trim()));
+ const nc=find(/^contact name/i), fn=find(/^first name$/i), ln=find(/^last name$/i);
+ if(nc>=0&&fn>=0&&ln>=0){
+ let o=DATA.headers.map((h,i)=>i).filter(i=>i!==fn&&i!==ln);
+ o.splice(o.indexOf(nc)+1,0,fn,ln); ORDER=o;
+ }
+ }
// default sort = Last Name ascending on load (if the tab has one)
const lnIdx=DATA.headers.findIndex(h=>/^last name$/i.test(String(h).trim()));
SORT = lnIdx>=0 ? {col:lnIdx, dir:1} : null;
← eb71907 Add 'Sheet Name' as first column on every tab, populated wit
·
back to Rentv Sheet Enrich Refine
·
Left FIELDS panel: per-field move up/down controls that reor d4ebb5d →