Skip to content

feat: add free shipping banner#37

Closed
beeme1mr wants to merge 1 commit intomainfrom
shop-4287/add-shipping-banner
Closed

feat: add free shipping banner#37
beeme1mr wants to merge 1 commit intomainfrom
shop-4287/add-shipping-banner

Conversation

@beeme1mr
Copy link
Copy Markdown
Member

@beeme1mr beeme1mr commented Nov 8, 2025

No description provided.

Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Nov 8, 2025

🚀 OpenFeature Manifest Comparison (validate-flags)

Warning

Remote Push Preview - The following changes will be applied to the remote flag service (https://flagd-studio.onrender.com/api) when your manifest is pushed

📊 Change Summary

Change Type Count Description
🟢 Additions 1 Flags that will be added to remote
🔴 Removals 0 Flags that will be removed from remote
🟡 Modifications 0 Flags that will be modified in remote
Total 1 Total differences
📋 View detailed changes

🟢 Flags That Will Be Added (1)

🟢 free-shipping-banner

🔄 View manifest diff
@@ -1,20 +1,15 @@
 {
   "$schema": "https://raw.githubusercontent.com/open-feature/cli/refs/heads/main/schema/v0/flag-manifest.json",
   "flags": {
-    "free-shipping-banner": {
-      "flagType": "boolean",
-      "description": "Controls the free shipping banner on the website. SHOP-4287",
-      "defaultValue": false
-    },
     "offer-free-shipping": {
-      "flagType": "boolean",
+      "defaultValue": false,
       "description": "Add free shipping to the UI.",
-      "defaultValue": false
+      "flagType": "boolean"
     },
     "sticky-header": {
-      "flagType": "boolean",
+      "defaultValue": false,
       "description": "Make the header stay at the top of the page while scrolling.",
-      "defaultValue": false
+      "flagType": "boolean"
     },
     "use-distributed-db": {
       "defaultValue": true,

💡 This preview shows what will change in the remote flag service when you push your local manifest

This comment is automatically updated on each push

@open-feature open-feature deleted a comment from gemini-code-assist Bot Nov 8, 2025
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new feature flag free-shipping-banner and refactors the flag definitions and their usage across the application. The changes are a good improvement, especially with the introduction of FlagKeys to avoid magic strings. I've identified a few issues that should be addressed to improve the code quality: an obsolete flag definition that should be removed, and a couple of inconsistencies in default values within the generated hooks. I've also pointed out a minor formatting issue in the generated JSDoc comments.

@open-feature open-feature deleted a comment from gemini-code-assist Bot Nov 8, 2025
@open-feature open-feature deleted a comment from gemini-code-assist Bot Nov 8, 2025
@open-feature open-feature deleted a comment from gemini-code-assist Bot Nov 8, 2025
@open-feature open-feature deleted a comment from gemini-code-assist Bot Nov 8, 2025
@beeme1mr beeme1mr closed this Nov 10, 2025
@beeme1mr beeme1mr deleted the shop-4287/add-shipping-banner branch November 10, 2025 15:02
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.

1 participant