Skip to content

Conversation

@KrawczykDamiann
Copy link

@KrawczykDamiann KrawczykDamiann commented Jan 28, 2026

Copy link

@danon321 danon321 left a comment

Choose a reason for hiding this comment

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

Jeszcze potrzebujemy linku do demo

Copy link

@Zibi95 Zibi95 left a comment

Choose a reason for hiding this comment

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

Well done. It works well and looks good.

Here are some minor things that i found

  • these items in breadcrumb should be centered:
Image
  • placeholder and carret are missaligned
Image
  • on the phone/tablet here we lack swipe feature
Image
  • also here we are missing swipe feature
Image
  • this product category pages on mobile look bad. In mockup its different (I was taking screenshot on around +320px)
Image

return `${namespaceId}-${normCapacity}-${normColor}`;
};

const colorMap: Record<string, string> = {
Copy link

Choose a reason for hiding this comment

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

This should be places in some contstant.ts file or smth.

let data: Product | null = null;

try {
const detailResponse = await fetch(
Copy link

Choose a reason for hiding this comment

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

Two independent fetch requests happen sequentially, creating a waterfall. These could run in parallel.

const isInCart = (productId: string | number) =>
cartItems.some(item => item.id === productId);

const totalCount = cartItems.reduce((sum, item) => sum + item.quantity, 0);
Copy link

Choose a reason for hiding this comment

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

btotalCount is recalculated on every render, not just when cartItems changes. Components subscribing to this will re-render unnecessarily.

Comment on lines +42 to +44
useEffect(() => {
localStorage.setItem('cartItems', JSON.stringify(cartItems));
}, [cartItems]);
Copy link

Choose a reason for hiding this comment

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

cartItems is an array (non-primitive), causing this effect to run on every render even if data hasn't changed.

@KrawczykDamiann
Copy link
Author

KrawczykDamiann commented Jan 30, 2026

Powinno być juz lepiej 🫣

@Zibi95
Copy link

Zibi95 commented Feb 5, 2026

These still not fixed

image image

Copy link

@Zibi95 Zibi95 left a comment

Choose a reason for hiding this comment

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

Some of the things are still not fixed

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.

3 participants