From 369b6764c91b9b2c43d7d100e683a0cf6f65edb5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 05:36:42 +0000 Subject: [PATCH 01/47] Initial plan From a45830cf25ecfbabd8aec52ca0f1a1956e07edda Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 05:42:24 +0000 Subject: [PATCH 02/47] fix: keep mobile header title aligned when navbar menu expands Agent-Logs-Url: https://github.com/dsaub/proyecto-final/sessions/8f4a8d58-4e90-48ad-8195-23b90d8b22d4 Co-authored-by: dsaub <54474838+dsaub@users.noreply.github.com> --- tienda/static/css/custom.css | 3 ++- tienda/tests.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tienda/static/css/custom.css b/tienda/static/css/custom.css index 5a77645..eaac49c 100644 --- a/tienda/static/css/custom.css +++ b/tienda/static/css/custom.css @@ -63,8 +63,9 @@ p.price { .navbar.header .site-title-mobile { color: #FFF; position: absolute; + top: calc(var(--bs-navbar-padding-y) + 20px); left: 50%; - transform: translateX(-50%); + transform: translate(-50%, -50%); margin: 0; max-width: calc(100% - 9rem); overflow: hidden; diff --git a/tienda/tests.py b/tienda/tests.py index 2c0b210..c7606ba 100644 --- a/tienda/tests.py +++ b/tienda/tests.py @@ -1,4 +1,5 @@ import json +from pathlib import Path from unittest.mock import MagicMock, patch from django.test import TestCase, override_settings @@ -1371,6 +1372,20 @@ class EndpointViewTests(TestCase): self.assertEqual(response.status_code, 200) self.assertContains(response, 'site-title-mobile d-md-none') self.assertContains(response, 'site-title-desktop') + + def test_mobile_site_title_css_keeps_title_pinned_to_header_row(self): + css_path = Path(__file__).resolve().parent / "static" / "css" / "custom.css" + css_content = css_path.read_text(encoding="utf-8") + + rule_start = css_content.find(".navbar.header .site-title-mobile") + self.assertNotEqual(rule_start, -1) + + rule_end = css_content.find("}", rule_start) + self.assertNotEqual(rule_end, -1) + rule_block = css_content[rule_start:rule_end] + + self.assertIn("top: calc(var(--bs-navbar-padding-y) + 20px);", rule_block) + self.assertIn("transform: translate(-50%, -50%);", rule_block) def test_home_mobile_welcome_title_centered(self): response = self.client.get(reverse("home")) html = response.content.decode() From e1e175f18fa910646c9abeef626bc5eaf491d44a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Apr 2026 05:45:19 +0000 Subject: [PATCH 03/47] test: make mobile navbar CSS regression assertion order-independent Agent-Logs-Url: https://github.com/dsaub/proyecto-final/sessions/8f4a8d58-4e90-48ad-8195-23b90d8b22d4 Co-authored-by: dsaub <54474838+dsaub@users.noreply.github.com> --- tienda/tests.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tienda/tests.py b/tienda/tests.py index c7606ba..284ddc2 100644 --- a/tienda/tests.py +++ b/tienda/tests.py @@ -1,5 +1,6 @@ import json from pathlib import Path +import re from unittest.mock import MagicMock, patch from django.test import TestCase, override_settings @@ -1376,16 +1377,12 @@ class EndpointViewTests(TestCase): def test_mobile_site_title_css_keeps_title_pinned_to_header_row(self): css_path = Path(__file__).resolve().parent / "static" / "css" / "custom.css" css_content = css_path.read_text(encoding="utf-8") + selector_match = re.search(r"\.navbar\.header \.site-title-mobile\s*\{(?P
[^}]*)\}", css_content, re.DOTALL) + self.assertIsNotNone(selector_match) - rule_start = css_content.find(".navbar.header .site-title-mobile") - self.assertNotEqual(rule_start, -1) - - rule_end = css_content.find("}", rule_start) - self.assertNotEqual(rule_end, -1) - rule_block = css_content[rule_start:rule_end] - - self.assertIn("top: calc(var(--bs-navbar-padding-y) + 20px);", rule_block) - self.assertIn("transform: translate(-50%, -50%);", rule_block) + rule_block = selector_match.group("body") + self.assertRegex(rule_block, r"top:\s*calc\(var\(--bs-navbar-padding-y\)\s*\+\s*20px\);") + self.assertRegex(rule_block, r"transform:\s*translate\(-50%,\s*-50%\);") def test_home_mobile_welcome_title_centered(self): response = self.client.get(reverse("home")) html = response.content.decode() From 540b3fdc439a586d549b04cafed689f0419b6b2b Mon Sep 17 00:00:00 2001 From: DanielTarjetas guardadas:
+