Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sistent Card Component #6117

Open
wants to merge 86 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
bcced6b
Initial Commit
Anand-Theertha Dec 9, 2024
6cbd96f
Card Component: Sistent
Anand-Theertha Dec 9, 2024
1b345e8
Fixed lint issues: unused variables
Anand-Theertha Dec 9, 2024
ca42a7d
Fixed lint issues: unused variables
Anand-Theertha Dec 9, 2024
0a39a84
Review Updates
Anand-Theertha Jan 5, 2025
a01c75d
made row to flex-wrap
vrushabhgawas14 Nov 3, 2024
d8df268
fix: remove 404 link
vladboisa Oct 26, 2024
56fc911
refactor: remove unused import
vladboisa Oct 26, 2024
5cbe626
Update src/collections/service-mesh-books/service-mesh-patterns/index…
leecalcote Dec 9, 2024
361ae8d
Enhance feature data processing and update JSON structure for pricing…
leecalcote Dec 9, 2024
98f764c
Remove unused theme style files from blog, classic, hosting, and mode…
leecalcote Dec 9, 2024
1fb4aa2
Refactor Kanvas banner styles for improved layout and responsiveness
leecalcote Dec 10, 2024
6772986
pricing
leecalcote Dec 10, 2024
45be214
pricing
leecalcote Dec 10, 2024
9cabd09
Clear subscription tier values in feature data JSON for pricing section
leecalcote Dec 10, 2024
5687f07
pricing
leecalcote Dec 10, 2024
7d7e7b5
Remove unused Button import in Kanvas visualize banner component
leecalcote Dec 10, 2024
87bcd97
pricing
leecalcote Dec 10, 2024
67eb426
pricing
leecalcote Dec 10, 2024
070feb2
[Docs] Generated documentation for Integration
MUzairS15 Dec 11, 2024
25ec3c2
Updated feature data from spreadsheet
l5io Dec 11, 2024
1185517
pricing
leecalcote Dec 11, 2024
d3f7308
Fix wording in pricing plan description for clarity
leecalcote Dec 11, 2024
09b4ba8
Refactor pricing and feature names for consistency and clarity
leecalcote Dec 11, 2024
a65dc83
Update feature descriptions for improved clarity and consistency
leecalcote Dec 11, 2024
1c1ffab
pricing
leecalcote Dec 11, 2024
bdf42a4
Updated feature data from spreadsheet
l5io Dec 12, 2024
88ea40d
pricing
leecalcote Dec 12, 2024
f164cb3
Update feature JSON key for consistency in naming
leecalcote Dec 12, 2024
4c365b5
pricing
leecalcote Dec 12, 2024
6437c19
pricing
leecalcote Dec 12, 2024
cdf51ae
pricing
leecalcote Dec 12, 2024
f3cd5bd
pricing
leecalcote Dec 12, 2024
84d289e
[Docs] Generated documentation for Integration
MUzairS15 Dec 13, 2024
ff4e03e
Updated feature data from spreadsheet
l5io Dec 13, 2024
9e5a140
honor some html tags in pricing features
leecalcote Dec 13, 2024
876222a
Refactor feature details rendering and update feature data for improv…
leecalcote Dec 13, 2024
cd74168
Updated feature data from spreadsheet
l5io Dec 14, 2024
fd06be7
[Docs] Generated documentation for Integration
MUzairS15 Dec 15, 2024
0674b42
Updated contributing.md for sistent documentation
Vidit-Kushwaha Dec 9, 2024
dfb3243
add general contribution and documentation guidelines for Sistent
Vidit-Kushwaha Dec 12, 2024
9c57555
sistent logos
leecalcote Dec 15, 2024
ceacd88
Refactor feature details rendering for improved clarity and organization
leecalcote Dec 15, 2024
24841c8
Replace header text with Sistent logo and enhance styling for better …
leecalcote Dec 15, 2024
069341a
Updated feature data from spreadsheet
l5io Dec 17, 2024
d4bf396
[Docs] Generated documentation for Integration
MUzairS15 Dec 18, 2024
6a88646
chore: transition member profile
vishalvivekm Dec 18, 2024
c374df5
Fix typo in member profile
Ajay-singh1 Dec 18, 2024
25cb84f
Updated feature data from spreadsheet
l5io Dec 19, 2024
48a8275
Migrate to generic language and away from service mesh specific language
leecalcote Dec 20, 2024
a51449c
Update index.mdx
leecalcote Dec 21, 2024
551578d
Removed posthog dependency from the site
aakankshabhende Dec 18, 2024
b51c3ac
Restored posthog integration folder
aakankshabhende Dec 19, 2024
c925ade
feat: sign-up form for open source program
vishalvivekm Dec 24, 2024
3d70e85
Create index.js
vishalvivekm Dec 24, 2024
9cef0b8
Create index.style.js
vishalvivekm Dec 24, 2024
c916d51
Create layer5-products-overview-dark.svg
vishalvivekm Dec 24, 2024
5945bac
Create layer5-products-overview.svg
vishalvivekm Dec 24, 2024
2f66c89
add additional fields for open-source form
vishalvivekm Dec 24, 2024
7188cde
add open-source-program page
vishalvivekm Dec 24, 2024
31b0365
Update src/sections/Community/Open-Source-Program/signup-form.js
vishalvivekm Dec 25, 2024
3eb32bc
Update src/components/CommonForm/index.js
vishalvivekm Dec 27, 2024
bd3044c
Update src/sections/Community/Open-Source-Program/signup-form.js
vishalvivekm Dec 27, 2024
41bacba
animation div sticky correction
balagowda Dec 23, 2024
74532ba
removed comments from the style
balagowda Dec 25, 2024
0c2cb23
Fix typo in workflow file
Ajay-singh1 Dec 23, 2024
d99f66c
resolve conflict issue
ShivamCoder23 Dec 29, 2024
71a90f2
add config for css conflict
ShivamCoder23 Dec 29, 2024
372680a
upgrade version
ShivamCoder23 Dec 29, 2024
4189315
fix ordering
ShivamCoder23 Dec 29, 2024
fcb0ecf
add package
ShivamCoder23 Dec 29, 2024
07edf35
Make member profile Inactive
Ajay-singh1 Jan 2, 2025
3a14f42
Update index.mdx
Ajay-singh1 Jan 2, 2025
aa9d456
[Docs] Generated documentation for Integration
MUzairS15 Jan 3, 2025
eb8acd2
added new community memeber: Ahmed Hendawy
Jan 3, 2025
ff881bc
added member profile for Vidit Kushwaha
Jan 3, 2025
4641e22
Update src/collections/members/vidit-kushwaha/index.mdx
ritik-malik Jan 3, 2025
bc7fc20
Bump eslint-plugin-react from 7.36.1 to 7.37.3
dependabot[bot] Jan 1, 2025
8698597
Bump @emotion/styled from 11.13.0 to 11.14.0
dependabot[bot] Jan 1, 2025
6a17c0c
Bump swiper from 10.3.1 to 11.1.15
dependabot[bot] Dec 30, 2024
a72f5c5
fix correct sitemap url for roboto
ShivamCoder23 Jan 5, 2025
8ff8289
fix: Ensure modal appears above iframe by adjusting z-index
FaheemOnHub Jan 4, 2025
4b42387
convert to import statement to follow esm module
ShivamCoder23 Jan 5, 2025
ebf827a
make feature file to follow esm modules
ShivamCoder23 Jan 5, 2025
8ae1c68
named import
ShivamCoder23 Jan 5, 2025
4d0db2c
reconfigure the import
ShivamCoder23 Jan 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 40 additions & 34 deletions .github/build/features-to-json.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

const fs = require("fs").promises; // Use fs.promises
const csv = require("csvtojson");
import { promises as fs } from "fs"; // Use fs.promises
import csv from "csvtojson";
const [major, minor, patch] = process.versions.node.split(".").map(Number);
console.log(`Node.js version: ${major}.${minor}.${patch}`);
console.log(`Using Node.js version: ${major}.${minor}.${patch}`);

const headers = [
"Theme",
Expand All @@ -13,18 +13,21 @@ const headers = [
"Function",
"Feature",
"Subscription Tier",
"Free Tier",
"TeamDesigner Tier",
"TeamOperator Tier",
"Enterprise Tier",
"Pricing Page?",
"Free",
"Team Designer",
"Team Operator",
"Enterprise",
"Exclude",
"Docs",
];


async function processCSV() {
try {
const csvFilePath = process.argv[2] || ".github/build/spreadsheet.csv";
if (process.argv[2]) {
console.log("Downloading features to: " + process.argv[2]);
}
const rows = await csv({
noheader: true,
headers: headers,
Expand All @@ -33,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()));

if (!includeRow) return null;
// const includeRow = hasXTier && !(exclude && ["x", "X"].includes(exclude.toLowerCase()));

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 All @@ -69,8 +72,11 @@ async function processCSV() {

// Read existing JSON data
// const featuresFile = process.env.FEATURES_FILE;
console.log("process.argv[3]: " + process.argv[3]);

const featuresFile = process.argv[3] || "src/sections/Pricing/feature_data.json";
if (process.argv[3]) {
console.log("Converting CSV to JSON in: " + process.argv[3]);
}
// const featuresFile = "src/sections/Pricing/feature_data.json";


Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-and-preview-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ jobs:
name: public-dir
path: ./public-dir.zip
retention-days: 1
- name: Triger Inner workflow
run: echo "trigering inner workflow"
- name: Trigger Inner workflow
run: echo "triggering inner workflow"
32 changes: 32 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ We are beyond excited to see that you want to contribute! We would love to accep
- [Before You Get Started](#before-you-get-started)
- [Contributing to Layer5 Projects](#contributing-to-layer5-projects)
- [Contributing to Layer5's Blogs](#contributing-to-layer5s-blogs)
- [Contributing to Layer5's Sistent](#contributing-to-layer5s-sistent)
- [How to Contribute](#how-to-contribute)
- [Prerequisites](#prerequisites)
- [Set up your Local Development Environment](#set-up-your-local-development-environment)
Expand Down Expand Up @@ -129,6 +130,37 @@ If you'd like to contribute a post to layer5.io/blog, please open an Issue and s
3. Follow the instructions included in the news template and name the new file after the title of the news article.
4. Entries will be listed in chronological order automatically.

# Contributing to Layer5's Sistent

If you'd like to contribute to Sistent, start by selecting the project/sistent label in the [#GitHub issue tracker](https://github.com/layer5io/layer5/labels/project%2Fsistent).

### General Contribution Guidelines

1. Select the [project/sistent](https://github.com/layer5io/layer5/labels/project%2Fsistent) label in the GitHub issue tracker.
1. Navigate to the relevant directory, such as:
```
src/sections/Projects/Sistent
```
> Note: For other parts of the project, the file path may vary. Ensure you're working in the correct file associated with the area you're contributing to.
1. Add or update content. The system dynamically generates pages and routes to maintain consistency.

### Adding Sistent Component

We've streamlined the process by introducing a dynamic page creation workflow, simplifying the addition of new pages and ensuring a consistent structure for all contributions.

1. Navigate to the relevant directory, such as:
```
src/sections/Projects/Sistent
```
1. To add a new page, simply update this `content.js` file with the necessary details. All content is managed in a centralized file:
```
src/sections/Projects/Sistent/components/content.js
```
1. The system will dynamically generate pages based on this content and handle routing automatically.

### Example
Refer to the [**Button component**](https://layer5.io/projects/sistent/components/button) in the Sistent Library for an example of how to structure the content.

# Common Types of Site Contributions

The following list of instructions pertains to commonplace site updates by contributors.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ lint:

## Prepare a list of features for the pricing page.
features:
#`which nvm` use 18
curl -L https://docs.google.com/spreadsheets/d/e/2PACX-1vQwzrUSKfuSRcpkp7sJTw1cSB63s4HCjYLJeGPWECsvqn222hjaaONQlN4X8auKvlaB0es3BqV5rQyz/pub\?gid\=1153419764\&single\=true\&output\=csv -o .github/build/spreadsheet.csv
node .github/build/features-to-json.js .github/build/spreadsheet.csv src/sections/Pricing/feature_data.json
rm .github/build/spreadsheet.csv

.PHONY: setup build site clean site-fast lint features
15 changes: 0 additions & 15 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import "./fonts.css";
import posthog from "posthog-js";

document.addEventListener("DOMContentLoaded", () => {
/** init gtm after 3500 seconds - this could be adjusted */
Expand Down Expand Up @@ -29,19 +28,5 @@ function initGTM() {
document.head.appendChild(script);
}

export const onClientEntry = () => {
if (process.env.NODE_ENV === "production") {
posthog.init("phc_Yynjz2lAiQDJFqTWeGT0FJrt50hl53WBx8do3eKImgX",
{
api_host: "https://us.i.posthog.com",
person_profiles: "always",
autocapture: {
url_ignorelist: ["community/newcomers", "/calendar", "/newcomers"]
}
}
);
}
};

export { wrapRootElement } from "./root-wrapper";
export { wrapPageElement } from "./page-wrapper";
3 changes: 2 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
},
trailingSlash: "never",
plugins: [
"@mediacurrent/gatsby-plugin-silence-css-order-warning",
{
resolve: "gatsby-plugin-webpack-bundle-analyser-v2",
options: {
Expand Down Expand Up @@ -545,7 +546,7 @@ module.exports = {
resolve: "gatsby-plugin-robots-txt",
options: {
host: "https://layer5.io",
sitemap: "https://layer5.io/sitemap/sitemap-index.xml",
sitemap: "https://layer5.io/sitemap-index.xml",
policy: [{ userAgent: "*", allow: "/" }],
}
},
Expand Down
25 changes: 24 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const path = require("path");
const slugify = require("./src/utils/slugify");
const { paginate } = require("gatsby-awesome-pagination");
const { createFilePath } = require("gatsby-source-filesystem");
const FilterWarningsPlugin = require("webpack-filter-warnings-plugin");
const config = require("./gatsby-config");
const {
componentsData,
Expand Down Expand Up @@ -977,7 +978,7 @@ const createSectionPage = ({ envCreatePage, node }) => {
});
};

exports.onCreateWebpackConfig = ({ actions }) => {
exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
actions.setWebpackConfig({
resolve: {
fallback: {
Expand All @@ -987,7 +988,29 @@ exports.onCreateWebpackConfig = ({ actions }) => {
},
},
});
actions.setWebpackConfig({
plugins: [
new FilterWarningsPlugin({
exclude:
/mini-css-extract-plugin[^]*Conflicting order. Following module has been added:/,
}),
],
});

if (stage === "build-javascript") {
const config = getConfig();
const miniCssExtractPlugin = config.plugins.find(
(plugin) => plugin.constructor.name === "MiniCssExtractPlugin"
);

if (miniCssExtractPlugin) {
miniCssExtractPlugin.options.ignoreOrder = true;
}

actions.replaceWebpackConfig(config);
}
};

exports.createSchemaCustomization = ({ actions }) => {
const { createTypes } = actions;
const typeDefs = `
Expand Down
Loading
Loading