Skip to content

Commit

Permalink
Merge branch 'layer5io:master' into sticky
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay-singh1 authored Dec 15, 2024
2 parents f7cb1cf + b3b6908 commit bc5e0bb
Show file tree
Hide file tree
Showing 33 changed files with 955 additions and 5,452 deletions.
60 changes: 30 additions & 30 deletions .github/build/features-to-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const headers = [
"Function",
"Feature",
"Subscription Tier",
"Free Tier",
"TeamDesigner Tier",
"TeamOperator Tier",
"Enterprise Tier",
"Pricing Page?",
"Free",
"Team Designer",
"Team Operator",
"Enterprise",
"Exclude",
"Docs",
];

Expand All @@ -36,34 +36,34 @@ async function processCSV() {

const filteredData = rows.map(row => {
try {
const pricingPage = row["Pricing Page?"]?.toLowerCase() || "";
const exclude = row["Exclude"]?.toLowerCase();
const hasXTier = [
"Free Tier",
"TeamDesigner Tier",
"TeamOperator Tier",
"Enterprise Tier"]
"Free",
"Team Designer",
"Team Operator",
"Enterprise"]
.some(tier => row[tier]?.trim().toLowerCase() === "x");
const includeRow = hasXTier || (pricingPage && ["x", "X"].includes(pricingPage.toLowerCase()));
// const includeRow = hasXTier && !(exclude && ["x", "X"].includes(exclude.toLowerCase()));

if (!includeRow) return null;

return {
theme: row["Theme"],
categoryOrder: row["Category Order"],
category: row["Category"],
functionOrder: row["Function Order"],
function: row["Function"],
feature: row["Feature"],
subscription_tier: row["Subscription Tier"],
comparison_tiers: {
free: row["Free Tier"],
teamDesigner: row["TeamDesigner Tier"],
teamOperator: row["TeamOperator Tier"],
enterprise: row["Enterprise Tier"],
},
pricing_page: row["Pricing Page?"],
docs: row["Docs"]
};
// if (!includeRow) return null;
if (!exclude) {
return {
theme: row["Theme"],
categoryOrder: row["Category Order"],
category: row["Category"],
functionOrder: row["Function Order"],
function: row["Function"],
feature: row["Feature"],
subscription_tier: row["Subscription Tier"],
comparison_tiers: {
free: row["Free"],
teamDesigner: row["Team Designer"],
teamOperator: row["Team Operator"],
enterprise: row["Enterprise"],
},
docs: row["Docs"]
};
}
} catch (error) {
console.error("Error processing row:", row, error);
return null;
Expand Down
5 changes: 0 additions & 5 deletions src/assets/images/pricing/docs.svg

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bc5e0bb

Please sign in to comment.