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

Update/zesty docs content #2305

Merged
merged 18 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18, 20, 21]
node-version: [20]
runs-on: ${{ matrix.os }}
needs: install-dependencies

Expand All @@ -64,7 +64,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18,20,21]
node-version: [20]
runs-on: ${{ matrix.os }}
needs: install-dependencies

Expand All @@ -91,7 +91,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18,20,21]
node-version: [20]
runs-on: ${{ matrix.os }}
needs: install-dependencies

Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pr_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

name: Zesty Website CI Dev

on:
pull_request:
types: [opened, synchronize,edited]
branches: [stage, accounts, production, dev]
workflow_dispatch:


jobs:
pr_lint:
name: Check PR Title
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
validateSingleCommit: true
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "zesty-website",
"author": "Zesty.io Platform Inc.",
"email": "[email protected]",
"version": "1.0.3",
"version": "1.0.5",
"private": true,
"scripts": {
"dev": "NODE_OPTIONS='--inspect' next dev",
Expand Down
7 changes: 5 additions & 2 deletions src/components/accounts/ui/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Grid, Stack, Typography } from '@mui/material';
import HelpOutlineIcon from '@mui/icons-material/HelpOutline';

const Index = ({ title, description, children }) => {
const Index = ({ title, description, info, children }) => {
return (
<Grid item xs={12} px={4} py={3}>
<Stack direction={{ xs: 'column', md: 'row' }}>
Expand All @@ -11,7 +11,10 @@ const Index = ({ title, description, children }) => {
<Typography variant="h4" data-testid={title}>
{title}
</Typography>
<HelpOutlineIcon color="disabled" titleAccess={description} />
<HelpOutlineIcon
color="disabled"
titleAccess={info || description}
/>
</Stack>
<Stack>
<Typography variant="body2" color="text.secondary">
Expand Down
12 changes: 12 additions & 0 deletions src/lib/ga/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@ export const event = ({ action, params }) => {
console.log('fire gtag', action, params);
//window.gtag('event', action, params)
};

export function pushDataLayer(data) {
if (typeof window.dataLayer !== 'undefined') {
window.dataLayer.push({
event: 'btn_click',
buttonText: data?.buttonText,
currentPage: window?.location.pathname,
targetPage: data?.path,
...data,
});
}
}
4 changes: 3 additions & 1 deletion src/pages/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const DocsPage = (props) => {
borderBottom: `1px solid ${theme.palette.zesty.whiteGray}`,
gap: 2,
position: 'relative',
zIndex: 1,
}}
>
<Box
Expand All @@ -72,6 +73,7 @@ const DocsPage = (props) => {
bottom: 10,
right: -10,
opacity: 0.2,
zIndex: -1,
}}
/>
<Typography
Expand Down Expand Up @@ -103,7 +105,7 @@ const DocsPage = (props) => {
<Box>
<Grid container spacing={2}>
{cardData.map((item, index) => (
<Grid item sm={12} md={4} key={index}>
<Grid item sm={12} md={4} width="100%" key={index}>
<Card
variant="outlined"
sx={{
Expand Down
1 change: 1 addition & 0 deletions src/pages/instances/[zuid]/domains.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default function Domains() {
const headerProps = {
title: 'Domain',
description: `Manage your Domains`,
info: 'This page allows you to perform several actions related to your desired domains, such as deleting them, managing their settings, and controlling the settings that can impact your selected instance.',
};
const domainListingProps = {
liveDomains,
Expand Down
1 change: 1 addition & 0 deletions src/pages/instances/[zuid]/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ export default function Locales() {
const headerProps = {
title: 'Locales',
description: 'Manage your languages',
info: 'When a Zesty.io Content Instance is created, it uses English as the default language. It is possible to add more languages to a Zesty.io Content Instance. Multi-lang content is premium feature of Zesty.io, reach out to your account manager to learn more.',
};
return (
<InstanceContainer>
Expand Down
1 change: 1 addition & 0 deletions src/views/accounts/instances/Apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ export const Apis = ({
const headerProps = {
title: 'Apis',
description: `Manage your API's`,
info: `The API of Zesty.io is a set of tools and protocols that allow developers to easily integrate Zesty.io's content management and delivery capabilities into their own applications and websites.`,
};

return (
Expand Down
1 change: 1 addition & 0 deletions src/views/accounts/instances/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ export const Settings = ({
const headerProps = {
title: 'Settings',
description: `Manage your Settings`,
info: 'On this page, you can perform searches, export data, and execute actions to configure certain settings related to your instance that can impact its overall functionality.',
};

return (
Expand Down
1 change: 1 addition & 0 deletions src/views/accounts/instances/Teams.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ const Main = ({
const headerProps = {
title: 'Teams',
description: `Manage your Teams`,
info: 'This page allows you to oversee your teams in this table if you possess the necessary authorization to do so.',
};

const Nodata = () => {
Expand Down
1 change: 1 addition & 0 deletions src/views/accounts/instances/Usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ const Main = ({ zuid, usage, loading }) => {
const headerProps = {
title: 'Usage',
description: `View your usage`,
info: 'This page allows you to view the total number of requests you have made and the amount of data transferred, known as bandwidth. Additionally, you have the option to export this report for your team to review.',
};
const tableProps = {
zuid,
Expand Down
1 change: 1 addition & 0 deletions src/views/accounts/instances/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ const Index = ({
const headerProps = {
title: 'Users',
description: 'Manage your users and their permissions',
info: 'This page allows you to oversee and manage your users in the provided table if you have the necessary authorization, and you can view a list of all users in your instance.',
};

return (
Expand Down
7 changes: 7 additions & 0 deletions src/views/zesty/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import revampTheme from 'theme/revampTheme';
import ArrowForwardRoundedIcon from '@mui/icons-material/ArrowForwardRounded';
import Link from 'next/link';
import { G2Awards, Logos } from 'revamp/ui/GetDemoSection';
import { pushDataLayer } from 'lib/ga';

const Demo = ({ content }) => {
const theme = useTheme();
Expand Down Expand Up @@ -90,6 +91,12 @@ function EngageTypeCards({ cardData }) {
<Grid
key={item}
component={Link}
onClick={() =>
pushDataLayer({
buttonText: item?.button_text || '',
targetPage: item.button_link || '#',
})
}
href={item.button_link || '#'}
sx={{ textDecoration: 'none' }}
item
Expand Down
6 changes: 3 additions & 3 deletions src/views/zesty/ZestyDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const ZestyDoc = (props) => {
}

p img {
width: 100%;
max-width: 100%;
}

`;
Expand Down Expand Up @@ -206,9 +206,9 @@ const ZestyDoc = (props) => {
</Typography>
</Stack>
<Stack width={1} height={1}>
<div
<Box
dangerouslySetInnerHTML={{ __html: content?.content }}
></div>
></Box>
</Stack>
</Stack>
</Grid>
Expand Down
Loading