Skip to content

5 remove products - #261

Merged
jlowapik merged 7 commits into
mainfrom
5-remove-products
Oct 18, 2025
Merged

5 remove products#261
jlowapik merged 7 commits into
mainfrom
5-remove-products

Conversation

@jlowapik

@jlowapik jlowapik commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

removed tactical steam bad and small tool seatbag, updated in stock page

Summary by CodeRabbit

Release Notes

  • New Features

    • Added two new fabric print options: Foxes and Leaves on dark.
  • Changes

    • Removed four products from catalog.
    • Updated international delivery options; Ukrposhta is no longer available for abroad shipping.
    • Renamed "Chevrons" to "Patches" across the interface.
    • Adjusted payment method display layout.

@coderabbitai

coderabbitai Bot commented Oct 17, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

The PR removes Ukrposhta as a delivery partner from UI components and translations across all supported languages, renames "Chevron" to "Patch" terminology throughout the system, adds two new fabric prints (foxes and leafs_on_blue), removes four product entries, and introduces SENTRY_AUTH_TOKEN to the deployment workflow.

Changes

Cohort / File(s) Summary
Deployment Configuration
.github/workflows/deploy.yaml
Added SENTRY_AUTH_TOKEN to top-level env for availability across all jobs
UI Component Updates
src/components/deliveryPaymentPage/deliveryAndPayment/DeliveryAndPayment.tsx
Removed Ukrposhta International logo block; adjusted Nova Poshta width from 150 to 115
Product Data
src/data/data/products.ts
Removed exports: smallToolSeatbag, tacticalStembag, hamsterCorduraNavyBlueFoxes, barrelBagWithEmbroideryYellow; reduced seatBag3L gallery from 5 to 4
Fabric Data
src/data/data/fabrics/fabricsData.js
Added two new fabric prints: 'foxes' and 'leafs_on_blue'
English Localization
src/i18n/en/common/enCommon.js
src/i18n/server/en/deliveryAndPayment/enDeliveryAndPayment.ts
Updated delivery details to remove Ukrposhta; renamed "Chevrons" to "Patches"
Polish Localization
src/i18n/pl/common/plCommon.js
src/i18n/server/pl/deliveryAndPayment/plDeliveryAndPayment.ts
Updated delivery details to remove Ukrposhta from abroad shipping
Ukrainian Localization
src/i18n/uk/common/ukCommon.js
src/i18n/server/uk/deliveryAndPayment/ukDeliveryAndPayment.ts
Updated delivery details to remove Ukrposhta; renamed "Шеврони" to "Патчі" (Chevrons to Patches)
Product Metadata & Translations
src/i18n/server/meta/metaData.js
src/i18n/server/products/productsData.js
Removed small-tool-seatbag and tactical-stembag entries; renamed 8 items from "Chevron" to "Patch" (donut, ghost, heart, slice, coffee, velo-cat, strava, letsgo); added foxes and leafs_on_blue translations

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

The changes involve multiple file types with a cohesive theme (Ukrposhta removal, Chevron→Patch rename) but are distributed across numerous localization files with repetitive patterns. Several API modifications affect exported products and metadata entries, requiring verification of downstream dependencies.

Possibly related PRs

Suggested reviewers

  • IhorMasechko
  • yuramax
  • Anton-88

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title Check ❓ Inconclusive The title "5 remove products" is ambiguous and only partially captures the scope of this changeset. While product removal is indeed a real aspect of the changes (4 products removed from products.ts: smallToolSeatbag, tacticalStembag, hamsterCorduraNavyBlueFoxes, barrelBagWithEmbroideryYellow), the "5" reference is unclear and doesn't align with the PR description which mentions only 2 products by name. Additionally, the PR includes substantial non-product-related changes: a significant terminology shift from "Chevrons" to "Patches" across multiple files, removal of Ukrposhta from delivery options, addition of new fabric prints, and a GitHub Actions workflow update. The title fails to convey these other meaningful changes and relies on ambiguous terminology that doesn't clearly communicate the changeset's full intent. Consider revising the title to more clearly reflect the primary changes. If product removal is the main focus, clarify what "5" refers to or specify the actual number of removed products. Alternatively, if the terminology shift from Chevrons to Patches is equally significant, incorporate that into the title. A more descriptive title like "Remove products and update terminology from Chevrons to Patches" or "Remove tactical seatbag and stembag products" would better represent the changeset's scope.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 5-remove-products

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
src/data/data/products.ts (2)

510-601: Remove dead code for discontinued products.

The functions smallToolSeatbag and tacticalStembag are defined but not included in the Products array or export list. Since these products are being removed per the PR objectives, these function definitions should be deleted entirely to avoid confusion and maintain code cleanliness.

Apply this diff to remove the dead code:

-const smallToolSeatbag = () => ({
-  id: 'small-tool-seatbag',
-  name: 'SmallToolSeatbag',
-  volume: '0.8',
-  size: `21 x 5-7 x 11`,
-  weight: null,
-  material: null,
-  description: {
-    short: null,
-    main: 'SmallToolSeatbagDescription',
-    conclusion: 'SmallToolSeatbagConclusion',
-  },
-  gallery: 4,
-  price: {
-    cordura: { UAH: 1250, EUR: 35 },
-    xpac: { UAH: 1550, EUR: 44 },
-  },
-  fabrics: [{ fabric: Cordura }, { fabric: Xpac }],
-  embedVideo: null,
-  category: BICYCLE_EQUIPMENT,
-  subcategory: SUBCATEGORIES_BICYCLE_EQUIPMENT.SeatBags,
-  productKit: null,
-  createdAt: '2022-10-13',
-});
-
-const barrelBagMini = () => ({
-const tacticalStembag = () => ({
-  id: 'tactical-stembag',
-  name: 'TacticalStembag',
-  volume: '1.0',
-  size: '22 x 9 x 10',
-  weight: [
-    {
-      fabric: 'Cordura',
-      weight: 170,
-    },
-    {
-      fabric: 'Xpac',
-      weight: 120,
-    },
-  ],
-  material: null,
-  description: {
-    short: null,
-    main: 'TacticalStembagDescription',
-    conclusion: 'TacticalStembagConclusion',
-  },
-  price: {
-    cordura: { UAH: 1400, EUR: 40 },
-    xpac: { UAH: 1600, EUR: 45 },
-  },
-  gallery: 6,
-  fabrics: [{ fabric: Cordura }, { fabric: Xpac }],
-  embedVideo: null,
-  category: BICYCLE_EQUIPMENT,
-  subcategory: SUBCATEGORIES_BICYCLE_EQUIPMENT.HandlebarBags,
-  productKit: null,
-  createdAt: '2023-07-04',
-});
-
-const loopHandlebarBag = () => ({

762-788: Fix inconsistent product state.

The hamsterCorduraNavyBlueFoxes function is exported (line 1198) but not included in the Products array. This creates an inconsistency where the product is exposed in the module's public API but won't appear in the application's product list.

Resolution: Based on the PR objective to remove products, this export should be removed. If the product should remain available, add it to the Products array.

Apply this diff to remove the inconsistent export:

   // hamsterXpacWithoutPockets,
-  hamsterCorduraNavyBlueFoxes,
   hamsterCorduraBlackEmbroidery,

Also applies to: 1198-1198

🧹 Nitpick comments (1)
.github/workflows/deploy.yaml (1)

15-15: Consider separating unrelated changes into distinct PRs.

The addition of SENTRY_AUTH_TOKEN is functionally correct, but it's unrelated to the PR's stated objectives (removing products and updating delivery information). For better change tracking and easier rollback if needed, consider moving infrastructure/tooling updates like this into a separate PR.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3d76b61 and f793898.

⛔ Files ignored due to path filters (7)
  • package-lock.json is excluded by !**/package-lock.json
  • public/img/prints/foxes_100x100@3x.png is excluded by !**/*.png
  • public/img/prints/foxes_385x355@3x.png is excluded by !**/*.png
  • public/img/prints/leafs_on_blue_100x100@3x.png is excluded by !**/*.png
  • public/img/prints/leafs_on_blue_385x355@3x.png is excluded by !**/*.png
  • public/products/seat-bag-3l/seat-bag-3l_5_115x120@3x.png is excluded by !**/*.png
  • public/products/seat-bag-3l/seat-bag-3l_5_460x580@3x.png is excluded by !**/*.png
📒 Files selected for processing (12)
  • .github/workflows/deploy.yaml (1 hunks)
  • src/components/deliveryPaymentPage/deliveryAndPayment/DeliveryAndPayment.tsx (1 hunks)
  • src/data/data/fabrics/fabricsData.js (1 hunks)
  • src/data/data/products.ts (1 hunks)
  • src/i18n/en/common/enCommon.js (2 hunks)
  • src/i18n/pl/common/plCommon.js (1 hunks)
  • src/i18n/server/en/deliveryAndPayment/enDeliveryAndPayment.ts (1 hunks)
  • src/i18n/server/meta/metaData.js (8 hunks)
  • src/i18n/server/pl/deliveryAndPayment/plDeliveryAndPayment.ts (1 hunks)
  • src/i18n/server/products/productsData.js (5 hunks)
  • src/i18n/server/uk/deliveryAndPayment/ukDeliveryAndPayment.ts (1 hunks)
  • src/i18n/uk/common/ukCommon.js (2 hunks)
🔇 Additional comments (13)
src/i18n/pl/common/plCommon.js (1)

192-192: LGTM! Delivery text updated consistently.

The removal of Ukrposhta from the international delivery options is consistent with the broader changes across all language files in this PR.

src/i18n/server/en/deliveryAndPayment/enDeliveryAndPayment.ts (1)

14-14: LGTM! English delivery text updated consistently.

The removal of Ukrposhta reference aligns with the parallel updates in Ukrainian and Polish translations.

src/i18n/server/uk/deliveryAndPayment/ukDeliveryAndPayment.ts (1)

13-13: LGTM! Ukrainian delivery text updated consistently.

The update aligns with the corresponding changes in English and Polish translations, maintaining consistency across all supported languages.

src/components/deliveryPaymentPage/deliveryAndPayment/DeliveryAndPayment.tsx (1)

47-47: LGTM! Logo sizing adjusted for visual consistency.

The width adjustment from 150 to 115 maintains visual consistency with other delivery partner logos in the UI, especially given the removal of the Ukrposhta International logo block mentioned in the summary.

src/i18n/server/pl/deliveryAndPayment/plDeliveryAndPayment.ts (1)

14-14: LGTM! Polish delivery text updated consistently.

This completes the consistent update across all three language translations (UK, EN, PL) for the international delivery partner information.

src/i18n/uk/common/ukCommon.js (1)

238-238: LGTM! UI label updated from Chevrons to Patches.

The terminology change aligns with the broader renaming effort across the codebase.

src/data/data/fabrics/fabricsData.js (1)

60-61: Verification complete: Image assets confirmed for both new fabric prints.

The image assets for 'foxes' and 'leafs_on_blue' are present in the expected location (public/img/prints/):

  • foxes_100x100@3x.png and foxes_385x355@3x.png
  • leafs_on_blue_100x100@3x.png and leafs_on_blue_385x355@3x.png

Translations are properly defined in productsData.js, and all code references are consistent. The changes are ready.

src/i18n/en/common/enCommon.js (2)

192-192: LGTM! Delivery partner list updated correctly.

The removal of Ukrposhta from the delivery details is clean and consistent with the PR objectives.


224-224: LGTM! Terminology updated consistently.

The change from "Chevrons" to "Patches" aligns with the broader terminology shift across the codebase.

src/data/data/products.ts (2)

902-928: Clarify product availability status.

The barrelBagWithEmbroideryYellow function is exported (line 1203) but not included in the Products array. This might be intentional if it's handled separately as an "in stock" item, but the inconsistency should be clarified.

Please verify: Should this product be:

  1. Added to the Products array (if it should appear in the general product catalog), or
  2. Removed from exports (if it's being discontinued), or
  3. Left as-is (if there's a separate mechanism for handling in-stock variants)

Also applies to: 1203-1203


183-183: Gallery count change verified as correct.

The gallery value reduction from 5 to 4 is intentional and properly documented in commit e8d0bbd ("remove seatbag image"). Current assets contain exactly 4 gallery images for seatBag3L, confirming the corresponding image was removed as expected.

src/i18n/server/products/productsData.js (1)

353-356: LGTM! Translation updates are consistent and complete.

The terminology changes from "Chevron/Шеврон" to "Patch/Патч" are properly implemented across all languages (Ukrainian, English, Polish). The addition of new fabric prints (foxes and leafs_on_blue) is well-structured with complete translations for all three languages.

Also applies to: 403-405, 432-511, 892-921

src/i18n/server/meta/metaData.js (1)

365-497: LGTM! Metadata terminology updates are thorough and consistent.

All patch-related metadata entries have been properly updated from "Chevron/Шеврон" to "Patch/Патч" across Ukrainian, English, and Polish translations. The descriptions have also been updated to consistently reference the new "patch" terminology.

Comment thread src/i18n/uk/common/ukCommon.js
@sonarqubecloud

Copy link
Copy Markdown

@killev killev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Approved

@jlowapik
jlowapik merged commit 044f770 into main Oct 18, 2025
38 of 44 checks passed
@jlowapik
jlowapik deleted the 5-remove-products branch October 18, 2025 17:53
@coderabbitai coderabbitai Bot mentioned this pull request Oct 19, 2025
@coderabbitai coderabbitai Bot mentioned this pull request Mar 12, 2026
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