Skip to content

Conversation

@halocline
Copy link
Collaborator

Deploy Preview

What does this PR do?

Where should the reviewer start?

What testing has been done on this PR?

In addition to the feature you are implementing, have you checked the following:

General UX Checks

  • Small, medium, and large screen sizes
  • Cross-browsers (FireFox, Chrome, and Safari)
  • Light & dark modes
  • All hyperlinks route properly

Accessibility Checks

  • Keyboard interactions
  • Screen reader experience
  • Run WAVE accessibility plugin (Chrome)

Code Quality Checks

  • Console is free of warnings and errors
  • Passes E2E commit checks
  • Visual snapshots are reasonable

How should this be manually tested?

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Should this PR be mentioned in Design System updates?

Is this change backwards compatible or is it a breaking change?

@changeset-bot
Copy link

changeset-bot bot commented May 7, 2025

⚠️ No Changeset found

Latest commit: 05b460f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@halocline halocline changed the base branch from master to theme-v2 May 7, 2025 21:33
@halocline halocline requested a review from Copilot May 7, 2025 21:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces the "Theme v2 insider" feature by adding a new Insider page and its corresponding submodules including story components and a hero section to enhance the layouts. Key changes include:

  • Addition of the Insider export and new routing for the Insider page in the layouts index.
  • Creation of multiple new components for Insider stories (e.g., StoryCard, various story components, and the Hero component).
  • Update of the development script in package.json to build design tokens before starting the dev server.

Reviewed Changes

Copilot reviewed 25 out of 25 changed files in this pull request and generated 1 comment.

File Description
sandbox/grommet-app/src/pages/layouts/kinds/index.ts Added export for the new Insider module.
sandbox/grommet-app/src/pages/layouts/kinds/Insider/** New files and folders created to house the Insider page, stories, and hero components.
sandbox/grommet-app/src/pages/layouts/index.tsx Updated routes and imports to include the Insider page.
sandbox/grommet-app/package.json Updated dev script to build design tokens prior to starting Vite.

const { colors } = global;
const { background } = colors;

console.log('v2 theme - theme', theme)
Copy link

Copilot AI May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider removing or replacing the debug console.log with an appropriate logging mechanism before production deployment.

Copilot uses AI. Check for mistakes.
@halocline halocline changed the title Theme v2 insider DRAFT - Theme v2 Insider layout test May 7, 2025
@halocline halocline marked this pull request as draft May 7, 2025 21:35
@netlify
Copy link

netlify bot commented May 7, 2025

Deploy Preview for hpe-theme-preview ready!

Name Link
🔨 Latest commit 05b460f
🔍 Latest deploy log https://app.netlify.com/sites/hpe-theme-preview/deploys/681bd1db3ee14a0008f9e602
😎 Deploy Preview https://deploy-preview-5147--hpe-theme-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented May 7, 2025

Deploy Preview for unrivaled-bublanina-3a9bae ready!

Name Link
🔨 Latest commit 124b8e6
🔍 Latest deploy log https://app.netlify.com/sites/unrivaled-bublanina-3a9bae/deploys/681bd17e043418000891a9a0
😎 Deploy Preview https://deploy-preview-5147--unrivaled-bublanina-3a9bae.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

size="xxlarge"
margin="none"
>
It starts with ambition.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like we need a heading flavor for the "condensed" display heading. Also, design wants this all caps. Should we align to start the discussion?

}
},
edgeSize: {
'4xlarge': '96px',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed for a responsive reason? 3xlarge is already 96px/

export const HPEDiscover = ({...rest}) => {
return (
<StoryCard
level={3}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design calls for these headings to render as 48px (3rem) but they're rendering as 32px (2rem)

return (
<StoryCard
level={3}
size={undefined}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Design calls for this section's headings to render as 24px (1.5rem) but these are rendering as 18px (1.125rem)

// console.log('v2 theme - global', global)
// console.log('v2 theme - colors', colors)

const adjustedTheme = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was running into an issue with the theme on primary buttons, where it seemed like grommet was trying to be too "smart" about the dark vs light choice of text/icon color.

I did a workaround for the text color via button.extend in my PR, but clearly missed covering the icon case:

Screenshot 2025-05-07 at 2 44 22 PM

Regardless, something I need to just investigate a little further.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason it only happens for the rest state, but then "hover" it gets fixed.

@halocline halocline changed the base branch from theme-v2 to master May 19, 2025 20:07
@halocline halocline changed the base branch from master to theme-v2 May 19, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants