Skip to content

Commit

Permalink
Remove new home page ff and old codebase (#5289)
Browse files Browse the repository at this point in the history
* Remove ff

* Remove old home

* Add changeset

* Extract messages
  • Loading branch information
poulch committed Nov 29, 2024
1 parent 13f63c2 commit 6990b1e
Show file tree
Hide file tree
Showing 28 changed files with 11 additions and 1,305 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-spoons-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

New home page with onboarding is now enabled, old home page code has been removed
18 changes: 4 additions & 14 deletions .featureFlags/generated.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// @ts-nocheck

import X97611 from "./images/discounts-list.png"
import B19783 from "./images/improved_refunds.png"
import V24493 from "./images/discounts-list.png"
import J49162 from "./images/improved_refunds.png"

const discounts_rules = () => (<><p><img src={X97611} alt="Discount rules"/></p>
const discounts_rules = () => (<><p><img src={V24493} alt="Discount rules"/></p>
<p>Apply the new discounts rules to narrow your promotions audience.
Set up conditions and channels that must be fulfilled to apply defined reward.</p>
</>)
const improved_refunds = () => (<><p><img src={B19783} alt="Improved refunds"/></p>
const improved_refunds = () => (<><p><img src={J49162} alt="Improved refunds"/></p>
<h3 id="enable-the-enhanced-refund-feature-to-streamline-your-refund-process">Enable the enhanced refund feature to streamline your refund process:</h3>
<ul>
<li><p>• Choose between automatic calculations based on selected items or enter refund amounts directly for overcharges and custom adjustments.</p>
Expand All @@ -17,7 +17,6 @@ const improved_refunds = () => (<><p><img src={B19783} alt="Improved refunds"/><
</ul>

</>)
const new_home_page = () => (<></>)

export const AVAILABLE_FLAGS = [{
name: "discounts_rules",
Expand All @@ -37,13 +36,4 @@ export const AVAILABLE_FLAGS = [{
enabled: true,
payload: "default",
}
},{
name: "new_home_page",
displayName: "New home page",
component: new_home_page,
visible: false,
content: {
enabled: false,
payload: "default",
}
}] as const;
7 changes: 0 additions & 7 deletions .featureFlags/new-home-page.md

This file was deleted.

27 changes: 0 additions & 27 deletions locale/defaultMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@
"context": "section description",
"string": "Strategy defines the preference of warehouses for stock allocations and reservations."
},
"/Fa+RP": {
"string": "Couldn't load top products"
},
"/H9LeU": {
"string": "Explore Saleor App Store"
},
Expand Down Expand Up @@ -2080,10 +2077,6 @@
"BvGp1I": {
"string": "between"
},
"By5ZBp": {
"context": "header",
"string": "Hello there, {userName}"
},
"ByYtFB": {
"string": "Invalid or expired token. Please check your token in URL"
},
Expand Down Expand Up @@ -3299,10 +3292,6 @@
"context": "link",
"string": "View Orders"
},
"J5R1SI": {
"context": "home get in touch card title",
"string": "Need technical help?"
},
"J7mFhU": {
"context": "currency code select",
"string": "{code} - {countries}"
Expand Down Expand Up @@ -5953,10 +5942,6 @@
"context": "warehouse",
"string": "Name"
},
"aCX8rl": {
"context": "subheader",
"string": "Here is some information we gathered about your store"
},
"aEc9Ar": {
"context": "gift card history message",
"string": "Gift card balance was reset by {resetBy}"
Expand Down Expand Up @@ -6508,10 +6493,6 @@
"context": "current balance filter label",
"string": "Current balance"
},
"e08xWz": {
"context": "header",
"string": "Top products"
},
"e0RKe+": {
"context": "generate invoice button",
"string": "Generate"
Expand Down Expand Up @@ -7886,10 +7867,6 @@
"context": "order history message",
"string": "Fulfilled {quantity} items"
},
"nII/qB": {
"context": "number of ordered products",
"string": "{amount, plural,one {One ordered}other {{amount} ordered}}"
},
"nIrjSR": {
"context": "section header",
"string": "Ongoing Installations"
Expand Down Expand Up @@ -8824,10 +8801,6 @@
"u0V06N": {
"string": "Max. Order Weight"
},
"u0hKaa": {
"context": "home get in touch card description",
"string": "Save hours of evaluating Saleor on your own by speaking with our solution engineer."
},
"u24Ppd": {
"string": "This attribute cannot be assigned to this product type"
},
Expand Down
104 changes: 0 additions & 104 deletions src/home/components/HomeActivityCard/HomeActivityCard.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions src/home/components/HomeActivityCard/activityMessages.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/home/components/HomeActivityCard/index.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/home/components/HomeAnalyticsCard/HomeAnalyticsCard.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/home/components/HomeAnalyticsCard/index.ts

This file was deleted.

37 changes: 0 additions & 37 deletions src/home/components/HomeHeader/HomeHeader.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/home/components/HomeHeader/index.ts

This file was deleted.

Loading

0 comments on commit 6990b1e

Please sign in to comment.