Display offer pacing profile metadata in store preview

This commit is contained in:
Joshua 2026-02-18 20:28:57 -08:00
parent 6bd8a004c9
commit 9cefc0c9c4

View File

@ -322,9 +322,16 @@
offerTitle.textContent = selected.title || selected.offer_id; offerTitle.textContent = selected.title || selected.offer_id;
offerSummary.textContent = selected.summary || 'No summary provided.'; offerSummary.textContent = selected.summary || 'No summary provided.';
offerPrice.textContent = 'Price: ' + (selected.price || '--') + ' ' + (selected.currency || ''); offerPrice.textContent = 'Price: ' + (selected.price || '--') + ' ' + (selected.currency || '');
let profile = '';
if (selected.execution_profile && typeof selected.execution_profile === 'object') {
const pace = selected.execution_profile.pacing_tier || 'unknown';
const surface = selected.execution_profile.connector_surface || 'unknown';
profile = ', pacing=' + pace + ', surface=' + surface;
}
offerPolicy.textContent = 'Policy: member-only=' + Boolean(selected.member_only) + offerPolicy.textContent = 'Policy: member-only=' + Boolean(selected.member_only) +
', workspace-bound=' + Boolean(selected.workspace_bound) + ', workspace-bound=' + Boolean(selected.workspace_bound) +
', transferable=' + Boolean(selected.transferable); ', transferable=' + Boolean(selected.transferable) +
profile;
} }
function populateOfferSelect() { function populateOfferSelect() {