← back to Dw Launches
Compose deep-link: accept ?compose/title/img/link/vendor to pre-load a launch from a product (CNCP new-SKU → DW marketing on-ramp); guard so deep-link wins over saved-view restore
5d0e46aea677d2127d72f67ac0ddb45185af99fe · 2026-06-19 16:06:12 -0700 · Steve
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Files touched
M public/index.htmlA screenshot-sku-to-marketing.png
Diff
commit 5d0e46aea677d2127d72f67ac0ddb45185af99fe
Author: Steve <steve@designerwallcoverings.com>
Date: Fri Jun 19 16:06:12 2026 -0700
Compose deep-link: accept ?compose/title/img/link/vendor to pre-load a launch from a product (CNCP new-SKU → DW marketing on-ramp); guard so deep-link wins over saved-view restore
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---
public/index.html | 3 ++-
screenshot-sku-to-marketing.png | Bin 0 -> 337153 bytes
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/public/index.html b/public/index.html
index e570d13..957e681 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1240,6 +1240,7 @@ async function init(){
function maybeComposeFromURL(){
const q = new URLSearchParams(location.search);
if(!q.get('compose') && !q.get('title') && !q.get('img')) return false;
+ window.__dlCompose = true; // deep-link wins over the saved-view restore
const title = (q.get('title')||'').trim();
const img = (q.get('img')||'').trim();
const link = (q.get('link')||'').trim();
@@ -2099,7 +2100,7 @@ wireDensity();
init().then(()=>{
// restore last-used view (persisted), default Compose
const saved=localStorage.getItem('dwlaunch:view');
- if(saved && VIEWS.includes(saved) && saved!=='compose') showView(saved);
+ if(!window.__dlCompose && saved && VIEWS.includes(saved) && saved!=='compose') showView(saved);
else { // refresh the approvals pill on load even when starting on Compose
api('/api/dashboard').then(d=>updateApprovalsPill((d.counts.pendingApproval||0)+(d.counts.approved||0))).catch(()=>{});
}
diff --git a/screenshot-sku-to-marketing.png b/screenshot-sku-to-marketing.png
new file mode 100644
index 0000000..2119f06
Binary files /dev/null and b/screenshot-sku-to-marketing.png differ
← 94376a2 Vendor-IG: corrected handles (arte=artewalls, cole&son, thib
·
back to Dw Launches
·
Vendor-IG: multi-mirror scraper (picuki/picnob/pixwox); keep 18fb32f →