Skip to content

Commit aa672a9

Browse files
authored
Update titles of the products (#1827)
1 parent c9040bb commit aa672a9

File tree

4 files changed

+49
-13
lines changed

4 files changed

+49
-13
lines changed

.changeset/unlucky-hornets-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@theguild/components": patch
3+
---
4+
5+
Update titles of the products

packages/components/src/components/hive-footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const DEVELOPER: ILink[] = [
149149
},
150150
{
151151
children: 'Hive Updates',
152-
title: 'Read most recent developments from GraphQL Hive',
152+
title: 'Read most recent developments from Hive',
153153
href: 'https://the-guild.dev/graphql/hive/product-updates',
154154
},
155155
{

packages/components/src/components/hive-navigation/index.tsx

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ export interface HiveNavigationProps {
5050
productName: string;
5151
logo?: ReactNode;
5252
navLinks?: { href: string; children: ReactNode }[];
53-
developerMenu?: { href: string; icon: React.FC<{ className?: string }>; children: ReactNode }[];
53+
developerMenu?: {
54+
href: string;
55+
title?: string;
56+
icon: React.FC<{ className?: string }>;
57+
children: ReactNode;
58+
}[];
5459
}
5560
/**
5661
*
@@ -213,11 +218,12 @@ export const ProductsMenu = React.forwardRef<HTMLDivElement, ProductsMenuProps>(
213218
Hive
214219
</p>
215220
<p className="mt-1 text-sm leading-5 text-green-800 dark:text-neutral-400">
216-
GraphQL Management Platform & Decision-making Engine
221+
GraphQL Federation Platform with Schema Registry and Analytics
217222
</p>
218223
</NavigationMenuLink>
219224
<Anchor
220225
href="https://app.graphql-hive.com/"
226+
title="Discover the Hive platform"
221227
className="hive-focus -my-2 ml-2 flex items-center gap-2 rounded-lg p-2 font-medium text-green-800 transition-colors hover:bg-beige-100 hover:text-green-1000 dark:text-neutral-400 dark:hover:bg-neutral-800/50 dark:hover:text-neutral-200"
222228
>
223229
<span>Get started</span> <ArrowIcon />
@@ -228,7 +234,7 @@ export const ProductsMenu = React.forwardRef<HTMLDivElement, ProductsMenuProps>(
228234
<ul>
229235
{(
230236
[
231-
[PRODUCTS.HIVE_GATEWAY, 'Federation Gateway'],
237+
[PRODUCTS.HIVE_GATEWAY, 'GraphQL Federation Gateway'],
232238
[PRODUCTS.MESH, 'Anything to GraphQL'],
233239
[PRODUCTS.YOGA, 'GraphQL Server & Subgraph'],
234240
] as const
@@ -238,6 +244,7 @@ export const ProductsMenu = React.forwardRef<HTMLDivElement, ProductsMenuProps>(
238244
<li key={product.name}>
239245
<NavigationMenuLink
240246
href={bidirectionalProductLink(product)}
247+
title={product.title}
241248
className="flex flex-row items-center gap-4 p-4"
242249
>
243250
<div className="size-12 rounded-lg bg-blue-400 p-2.5">
@@ -323,7 +330,12 @@ interface DeveloperMenuProps extends React.HTMLAttributes<HTMLDivElement> {
323330
isHive: boolean;
324331
developerMenu:
325332
| undefined
326-
| { href: string; icon: React.FC<{ className?: string }>; children: ReactNode }[];
333+
| {
334+
href: string;
335+
title?: string;
336+
icon: React.FC<{ className?: string }>;
337+
children: ReactNode;
338+
}[];
327339
}
328340
/**
329341
* @internal
@@ -334,17 +346,32 @@ export const DeveloperMenu = React.forwardRef<HTMLDivElement, DeveloperMenuProps
334346
{
335347
href: isHive ? '/docs' : 'https://the-guild.dev/graphql/hive/docs',
336348
icon: PaperIcon,
349+
title: 'Visit the documentation',
337350
children: 'Documentation',
338351
},
339-
{ href: 'https://status.graphql-hive.com/', icon: TargetIcon, children: 'Status' },
352+
{
353+
href: 'https://status.graphql-hive.com/',
354+
title: 'Check Hive status',
355+
icon: TargetIcon,
356+
children: 'Status',
357+
},
340358
{
341359
href: isHive ? '/product-updates' : 'https://the-guild.dev/graphql/hive/product-updates',
360+
title: 'Read most recent developments from Hive',
342361
icon: RightCornerIcon,
343362
children: 'Product Updates',
344363
},
345-
{ href: 'https://the-guild.dev/blog', icon: PencilIcon, children: 'Blog' },
346364
{
347-
href: 'https://github.com/dotansimha/graphql-code-generator',
365+
href: 'https://the-guild.dev/blog',
366+
title: 'Read our blog post',
367+
icon: PencilIcon,
368+
children: 'Blog',
369+
},
370+
{
371+
href: isHive
372+
? 'https://github.com/graphql-hive/console'
373+
: 'https://github.com/dotansimha/graphql-code-generator',
374+
title: 'Give us a star',
348375
icon: GitHubIcon,
349376
children: 'GitHub',
350377
},
@@ -355,8 +382,8 @@ export const DeveloperMenu = React.forwardRef<HTMLDivElement, DeveloperMenuProps
355382
<div>
356383
<ColumnLabel>Developer</ColumnLabel>
357384
<ul>
358-
{developerMenu.map(({ href, icon, children }, i) => (
359-
<MenuColumnListItem key={i} href={href} icon={icon}>
385+
{developerMenu.map(({ href, title, icon, children }, i) => (
386+
<MenuColumnListItem key={i} title={title} href={href} icon={icon}>
360387
{children}
361388
</MenuColumnListItem>
362389
))}
@@ -392,16 +419,19 @@ DeveloperMenu.displayName = 'DeveloperMenu';
392419
function MenuColumnListItem({
393420
children,
394421
href,
422+
title,
395423
icon: Icon,
396424
}: {
397425
children: ReactNode;
398426
href: string;
427+
title?: string;
399428
icon: React.FC<{ className?: string }>;
400429
}) {
401430
return (
402431
<li>
403432
<NavigationMenuLink
404433
href={href}
434+
title={title}
405435
className="flex flex-row items-center gap-3 text-nowrap px-4 py-2"
406436
arrow
407437
>

packages/components/src/products.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,22 @@ export interface ProductInfo {
5959
export const PRODUCTS: Record<ProductType, ProductInfo> = {
6060
HIVE: {
6161
name: 'Hive',
62-
title: 'Schema registry for your GraphQL workflows',
62+
title: 'Open Source GraphQL Federation Platform (Schema Registry, Gateway, Analytics) ',
6363
href: 'https://the-guild.dev/graphql/hive',
6464
logo: HiveIcon,
6565
primaryColor: '#ffb21d',
6666
},
6767
HIVE_GATEWAY: {
6868
name: 'Hive Gateway',
69-
title: 'A fully-featured GraphQL gateway framework',
69+
title:
70+
'GraphQL Gateway (Router) for federated GraphQL with Subscriptions support and built-in security features',
7071
href: 'https://the-guild.dev/graphql/hive/docs/gateway',
7172
logo: HiveGatewayIcon,
7273
primaryColor: '#ffb21d',
7374
},
7475
MESH: {
7576
name: 'Mesh',
76-
title: 'A fully-featured GraphQL gateway framework',
77+
title: 'A fully-featured GraphQL federation framework',
7778
href: 'https://the-guild.dev/graphql/mesh',
7879
logo: MeshIcon,
7980
primaryColor: '#1bcbe2',

0 commit comments

Comments
 (0)