feat: inline-editable prices in product mapping UI

Click any price cell (WC Standard, WC Sale, Odoo Price) to edit inline.
Enter or click away saves and syncs to the source. Escape cancels.
Validation: sale price cannot exceed standard price.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-04-01 11:23:23 -04:00
parent 8354e82dc4
commit c5b519f8f4
4 changed files with 173 additions and 6 deletions

View File

@@ -615,3 +615,26 @@ html[style*="color-scheme: dark"] {
width: 60px;
white-space: nowrap;
}
/* ----------------------------------------------------------
Editable price cells
---------------------------------------------------------- */
.woo-editable-cell {
cursor: pointer;
position: relative;
}
.woo-editable-cell:hover {
background: var(--woo-bg-hover) !important;
}
.woo-edit-input {
width: 90px;
padding: 2px 6px;
border: 1px solid var(--woo-accent);
border-radius: 4px;
font-size: 0.85rem;
text-align: right;
background: var(--woo-input-bg);
color: var(--woo-text-primary);
outline: none;
box-shadow: 0 0 0 2px var(--woo-accent-glow);
}