Skip to content

Dev to Prod for April Release #176

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

Merged
merged 4 commits into from
Apr 17, 2025
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
12 changes: 10 additions & 2 deletions build/footerDev.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
"label": "enterprise",
"ariaLabel": "Read more about Postman enterprise"
},
{
"title": "Spec Hub",
"url": "https://www.postman.com/product/spec-hub/",
"category": "global-footer",
"label": "Spec Hub",
"ariaLabel": "Read more about Postman Spec Hub",
"badge": "new"
},
{
"title": "Flows",
"url": "https://www.postman.com/product/flows/",
Expand All @@ -39,14 +47,14 @@
},
{
"title": "VS Code extension",
"url": "https://www.postman.com/downloads/#postman-vs-code-extension",
"url": "https://www.postman.com/downloads/#other-downloads",
"category": "global-footer",
"label": "vs-extension",
"ariaLabel": "Read more about Postman VS Code extension"
},
{
"title": "Postman CLI",
"url": "https://www.postman.com/downloads/#postman-cli/",
"url": "https://www.postman.com/downloads/#work-from-the-command-line",
"category": "global-footer",
"label": "postman-cli",
"ariaLabel": "Read more about Postman cli."
Expand Down
23 changes: 16 additions & 7 deletions build/navbarDev.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,29 @@
]
},
{
"title": "API Platform Features",
"title": "Features",
"subItemsCol": [
{
"title": "AI Agent Builder",
"url": "https://www.postman.com/product/ai-agent-builder/"
"title": "Platform Overview",
"url": "https://www.postman.com/product/platform/"
},
{
"title": "Spec Hub",
"url": "https://www.postman.com/product/spec-hub/",
"badge": "new"
},
{
"title": "Collections",
"url": "https://www.postman.com/collection/"
"url": "https://www.postman.com/product/collections/"
},
{
"title": "Workspaces",
"url": "https://www.postman.com/product/workspaces/"
},
{
"title": "API Client",
"url": "https://www.postman.com/product/api-client/"
},
{
"title": "Partner Workspaces",
"url": "https://www.postman.com/product/partner-workspaces/"
Expand All @@ -51,11 +60,11 @@
"url": "https://www.postman.com/product/postbot/"
},
{
"title": "API Client",
"url": "https://www.postman.com/product/api-client/"
"title": "AI Agent Builder",
"url": "https://www.postman.com/product/ai-agent-builder/"
},
{
"title": "Browse API Tools",
"title": "More Resources",
"url": "https://www.postman.com/product/tools/"
}
]
Expand Down
25 changes: 20 additions & 5 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ const Footer = () => {
triggerGA(link.category, link.label)
}}
>
{link.title}
<span>{link.title}</span>
{link.badge && (
<span className="badge">{link.badge}</span>
)}
</FooterLinkStyles>
</ColumnRow>
))) ||
Expand Down Expand Up @@ -222,7 +225,10 @@ const Footer = () => {
triggerGA(link.category, link.label)
}}
>
{link.title}
<span>{link.title}</span>
{link.badge && (
<span className="badge">{link.badge}</span>
)}
</FooterLinkStyles>
</ColumnRow>
))) ||
Expand Down Expand Up @@ -256,7 +262,10 @@ const Footer = () => {
triggerGA(link.category, link.label)
}}
>
{link.title}
<span>{link.title}</span>
{link.badge && (
<span className="badge">{link.badge}</span>
)}
</FooterLinkStyles>
</ColumnRow>
))) ||
Expand Down Expand Up @@ -286,7 +295,10 @@ const Footer = () => {
triggerGA(link.category, link.label)
}}
>
{link.title}
<span>{link.title}</span>
{link.badge && (
<span className="badge">{link.badge}</span>
)}
</FooterLinkStyles>
</ColumnRow>
))) ||
Expand Down Expand Up @@ -315,7 +327,10 @@ const Footer = () => {
triggerGA(link.category, link.label)
}}
>
{link.title}
<span>{link.title}</span>
{link.badge && (
<span className="badge">{link.badge}</span>
)}
</FooterLinkStyles>
</ColumnRow>
))) ||
Expand Down
9 changes: 6 additions & 3 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const Header = (props) => {
const [beta, setBeta] = useState('');
const [cookie, setCookie] = useState('');
const [hidden, setHidden] = useState(true);
const [data, setData] = useState(navbarData);
const [data, setData] = useState(navbarDataLocal);
const [dataDropdown, setDataDropdown] = useState(navbarData);
const [visibleHelloBar] = useState();

Expand All @@ -115,7 +115,7 @@ const Header = (props) => {
const navtopicsdropdownKeys = ['items', 'type']

if (navbarKeys.every(key => Object.keys(navbarData).includes(key))) {
setData(navbarData)
setData(navbarDataLocal)
} else {
setData(navbarDataLocal)
}
Expand Down Expand Up @@ -334,7 +334,10 @@ const Header = (props) => {
href={link.url}
key={link.title}
>
{link.title}
<span>{link.title}</span>
{link.badge && (
<span className="badge">{link.badge}</span>
)}
</a>
))}
</div>
Expand Down
13 changes: 13 additions & 0 deletions styles/globalStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,18 @@ small,
font-size: 14px;
line-height: 1.5714285714; /* 22px */
}

.badge {
margin-left: 0.8rem; /* ml-2 */
border-radius: 0.5rem; /* rounded */
border: 1px solid #6f2cba; /* border border-[#e4d8f6] */
padding: 3px 9px; /* px-1 */
font-size: 10px; /* text-[10px] */
text-transform: uppercase; /* uppercase */
color: #6f2cba; /* grey-50 */
font-weight: 400;
font-size: 12px;
line-height: 18px;
}
`
export default GlobalStyle;
Loading