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

Admin/recipes gui #26243

Merged
merged 71 commits into from
Aug 28, 2020
Merged

Admin/recipes gui #26243

merged 71 commits into from
Aug 28, 2020

Conversation

laurieontech
Copy link
Contributor

@laurieontech laurieontech commented Aug 5, 2020

Move recipes GUI into admin and refactor it to remove tech debt and client-side weight. Make use of new service lock metadata to grab project root.

Things out of scope:

  • typing gui.js

Not ready for merge: CLI bug needs fixing

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Aug 5, 2020
@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 5, 2020

Gatsby Cloud Build Report

client-only-paths

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 18s

Performance

Lighthouse report

Metric Score
Performance 💚 100
Accessibility 🔶 85
Best Practices 💚 100
SEO 🔶 70

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 5, 2020

Gatsby Cloud Build Report

using-styled-components

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 18s

Performance

Lighthouse report

Metric Score
Performance 💚 100
Accessibility 💚 90
Best Practices 💚 100
SEO 💚 90

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 5, 2020

Gatsby Cloud Build Report

using-reach-skip-nav

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 20s

Performance

Lighthouse report

Metric Score
Performance 💚 100
Accessibility 💚 100
Best Practices 💚 100
SEO 🔶 82

🔗 View full report

@gatsby-cloud-staging
Copy link

gatsby-cloud-staging bot commented Aug 5, 2020

Gatsby Cloud Build Report

gatsby-master

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 1m

Performance

Lighthouse report

Metric Score
Performance 💚 95
Accessibility 🔶 87
Best Practices 💚 93
SEO 🔶 73

🔗 View full report

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 5, 2020

Gatsby Cloud Build Report

gatsby

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 23m

@gatsby-cloud-staging
Copy link

gatsby-cloud-staging bot commented Aug 5, 2020

Gatsby Cloud Build Report

gatsby

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 35m

Performance

Lighthouse report

Metric Score
Performance 💚 93
Accessibility 💚 100
Best Practices 💚 100
SEO 🔶 76

🔗 View full report

@pieh pieh added topic: recipes and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Aug 6, 2020
@laurieontech laurieontech marked this pull request as ready for review August 21, 2020 14:51
jxnblk
jxnblk previously approved these changes Aug 21, 2020
Copy link
Contributor

@jxnblk jxnblk left a comment

Choose a reason for hiding this comment

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

:shipit:

packages/gatsby-admin/src/components/recipes-gui/index.js Outdated Show resolved Hide resolved
packages/gatsby-admin/src/components/recipes-gui/index.js Outdated Show resolved Hide resolved

return (
<>
<Styled.p>{` `}</Styled.p>
Copy link
Contributor

Choose a reason for hiding this comment

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

NB: I don't think a <p> is needed here, a <div> with margin could create visual space

Copy link
Contributor

Choose a reason for hiding this comment

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

There is also a <Spacer /> component in gatsby-interface that I use for these kinds of purposes!

/** @jsx jsx */
/* eslint-disable */
import React from "react"
import { MdRefresh, MdBrightness1 } from "react-icons/md"
Copy link
Contributor

Choose a reason for hiding this comment

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

NB: I think the react-icons library has been updated since I've used it, but I assume this doesn't include the entire set of MD icons in the bundle

packages/gatsby-recipes/src/components/step-renderer.js Outdated Show resolved Hide resolved
packages/gatsby-recipes/src/validate-steps.js Show resolved Hide resolved
@laurieontech laurieontech marked this pull request as draft August 21, 2020 19:52
mxstbr
mxstbr previously approved these changes Aug 25, 2020
Copy link
Contributor

@mxstbr mxstbr left a comment

Choose a reason for hiding this comment

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

Some minor nitpicks inline, but overall this looks very good! Can't wait to land this 😍

if (state.value === `applyingPlan` && resource.isDone) {
icon = <SuccessIcon />
} else if (state.value === `applyingPlan`) {
const keyframe = keyframes`
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: I don't know how emotion works, but I do know that in styled-components we recommend moving keyframes declarations out of the render method. There is no need for this to be re-created every render! 👍

@@ -1,3 +1,4 @@
/* eslint-disable */
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a particular reason we disable eslint for this file? 🤔

@@ -8,10 +9,12 @@ import { SubscriptionClient } from "subscriptions-transport-ws"

interface ICreateUrqlClientOptions {
port: number
connectionCallback: any
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: no need for this any!

import { SubscriptionClient, ClientOptions } from "subscriptions-transport-ws"

interface ICreateUrqlClientOptions {
  port: number
  connectionCallback: ClientOptions["connectionCallback"]
}

packages/gatsby-recipes/components.js Show resolved Hide resolved
packages/gatsby-recipes/src/recipes-list.js Show resolved Hide resolved
@laurieontech laurieontech marked this pull request as ready for review August 28, 2020 01:26
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.

None yet

5 participants