From 0eaaa8d19d67783d2deb339e98c20300293ed8aa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Apr 2026 07:05:42 +0000 Subject: [PATCH 1/3] Initial plan From a36740b02d9850ef3e36837687bc9747d66385a8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Apr 2026 07:10:02 +0000 Subject: [PATCH 2/3] fix: add explicit text and icons for stock/IVA accessibility (WCAG Perceptible) Agent-Logs-Url: https://github.com/dsaub/proyecto-final/sessions/b6a3a32a-ff80-4431-9ba0-769cbd08b939 Co-authored-by: dsaub <54474838+dsaub@users.noreply.github.com> --- tienda/templates/tienda/cart.html | 4 ++-- tienda/templates/tienda/producto.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tienda/templates/tienda/cart.html b/tienda/templates/tienda/cart.html index bcde235..1199d01 100644 --- a/tienda/templates/tienda/cart.html +++ b/tienda/templates/tienda/cart.html @@ -59,7 +59,7 @@ {% if item.product.stock > 0 %} {{ item.product.stock }} {% else %} - 0 + Sin stock {% endif %} {{ item.get_subtotal_with_vat|format_price }} € @@ -89,7 +89,7 @@
IVA (21%) - {{ cart.get_vat_amount|format_price }} € + {{ cart.get_vat_amount|format_price }} €
Envío diff --git a/tienda/templates/tienda/producto.html b/tienda/templates/tienda/producto.html index fca8dd8..dace4c9 100644 --- a/tienda/templates/tienda/producto.html +++ b/tienda/templates/tienda/producto.html @@ -34,16 +34,16 @@
Precio total (IVA incluido):
€{{ product.get_price_with_vat|format_price }} -
IVA: €{{ product.get_vat_amount|format_price }}
+
IVA incluido: €{{ product.get_vat_amount|format_price }}
{{ product.briefdesc }}
{% if product.stock > 0 %} - Stock disponible: {{ product.stock }} + Stock disponible: {{ product.stock }} {% else %} - Sin stock + Sin stock {% endif %}
From ad9fa741e5ce6c95c99d05ba9893387af2e8f7ac Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 28 Apr 2026 07:11:20 +0000 Subject: [PATCH 3/3] fix: add role=status to stock badge indicators for better screen reader support Agent-Logs-Url: https://github.com/dsaub/proyecto-final/sessions/b6a3a32a-ff80-4431-9ba0-769cbd08b939 Co-authored-by: dsaub <54474838+dsaub@users.noreply.github.com> --- tienda/templates/tienda/cart.html | 2 +- tienda/templates/tienda/producto.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tienda/templates/tienda/cart.html b/tienda/templates/tienda/cart.html index 1199d01..821fd15 100644 --- a/tienda/templates/tienda/cart.html +++ b/tienda/templates/tienda/cart.html @@ -59,7 +59,7 @@ {% if item.product.stock > 0 %} {{ item.product.stock }} {% else %} - Sin stock + Sin stock {% endif %} {{ item.get_subtotal_with_vat|format_price }} € diff --git a/tienda/templates/tienda/producto.html b/tienda/templates/tienda/producto.html index dace4c9..117aa9f 100644 --- a/tienda/templates/tienda/producto.html +++ b/tienda/templates/tienda/producto.html @@ -41,9 +41,9 @@
{% if product.stock > 0 %} - Stock disponible: {{ product.stock }} + Stock disponible: {{ product.stock }} {% else %} - Sin stock + Sin stock {% endif %}