Skip to content

Refactor/admin ux and styling - #17

Merged
ArielAio merged 3 commits into
mainfrom
refactor/admin-ux-and-styling
Mar 26, 2026
Merged

ArielAio merged 3 commits into
mainfrom
refactor/admin-ux-and-styling

Conversation

@ArielAio

Copy link
Copy Markdown
Owner

No description provided.

@ArielAio ArielAio self-assigned this Mar 26, 2026
Copilot AI review requested due to automatic review settings March 26, 2026 22:46
@vercel

vercel Bot commented Mar 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
li-rilko Ready Ready Preview, Comment Mar 26, 2026 10:46pm

@ArielAio
ArielAio merged commit 5baccd7 into main Mar 26, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors parts of the storefront/admin UX by adjusting navigation styling/behavior, expanding catalog sorting options, and enhancing the admin product modal inputs/validation.

Changes:

  • Hide the WhatsApp floating widget on the cart route and tweak header/mobile drawer branding/styling.
  • Expand catalog sorting (price + A–Z/Z–A) and update sort option labels/values.
  • Improve Admin Product modal pricing UX (cash/installment), add badge/highlights fields, and tighten payload validation.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
components/whatsapp-float-widget.js Hides floating WhatsApp widget on /carrinho* routes via usePathname().
components/site-header.js Replaces mobile drawer brand text with a logo image.
components/catalog-page-content.js Updates sort options/values and adds name-based sorting.
components/admin/admin-product-modal.js Mirrors price fields on blur, adds validation for >0 prices, and adds badge/highlights inputs.
app/globals.css Raises toast z-index and moves the mobile drawer to slide in from the right (plus overflow adjustments).
Comments suppressed due to low confidence (1)

components/catalog-page-content.js:18

  • normalizeSort() now only accepts the new SORT_OPTIONS values. That means existing shared links/bookmarks using the previous query param values (e.g. ordem=menor-preco-vista / ordem=maior-preco-vista) will silently fall back to relevancia. Consider adding a small legacy mapping (old -> new) inside normalizeSort before the allowed check to keep backward compatibility for existing URLs.
  { value: "nome-za", label: "Nome: Z-A" },
];

function normalizeSort(value) {
  const allowed = new Set(SORT_OPTIONS.map((option) => option.value));

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

rows={3}
value={productForm.highlightsText}
onChange={(e) => handleProductField("highlightsText", e.target.value)}
placeholder="Ex: Couro Legítimo
Acabamento Premium
Garantia de 1 ano"

Copilot AI Mar 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In JSX, the placeholder string won’t decode HTML entities like 
, so users will likely see the literal text 
 instead of line breaks. Use a JS string with real newlines (e.g. "...\n..." via {}) if you want a multi-line placeholder.

Suggested change
placeholder="Ex: Couro Legítimo
Acabamento Premium
Garantia de 1 ano"
placeholder={"Ex: Couro Legítimo\nAcabamento Premium\nGarantia de 1 ano"}

Copilot uses AI. Check for mistakes.

This branch was successfully deployed

1 active deployment
Preview — 8b347b2e Deployed Mar 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants