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

Migrate FDC3 Workbench to Vite #894

Closed
wants to merge 14 commits into from

Conversation

mattjamieson
Copy link
Contributor

Initial work to migrate FDC3 Workbench to Vite

Builds on top of #859

@netlify
Copy link

netlify bot commented Jan 16, 2023

Deploy Preview for lambent-kulfi-cf51a7 ready!

Name Link
🔨 Latest commit 6b5e4c4
🔍 Latest deploy log https://app.netlify.com/sites/lambent-kulfi-cf51a7/deploys/63fcba8a17578f0008dd37da
😎 Deploy Preview https://deploy-preview-894--lambent-kulfi-cf51a7.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 settings.

@mattjamieson mattjamieson requested a review from kriswest January 16, 2023 15:31
@mattjamieson mattjamieson marked this pull request as draft January 16, 2023 17:45
@mattjamieson mattjamieson marked this pull request as ready for review January 16, 2023 17:45
@kriswest
Copy link
Contributor

Looks good to me! Passing npm audit and is generally working.

Title bar image is broken when there's no trailing slash on the URL, got a fix for that in another PR.

Needs main merging into PR. Also es-lint plugins need updating for TypeScript version. Looks like you can also remove the overrides section from package.json without failing npm audit now.

@mattjamieson mattjamieson force-pushed the fdc3-workbench-vitejs branch from 8e3dca6 to 9641ae0 Compare January 19, 2023 14:35
Copy link
Contributor

@julianna-ciq julianna-ciq left a comment

Choose a reason for hiding this comment

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

lgtm

@mattjamieson mattjamieson changed the title [WIP] Migrate FDC3 Workbench to Vite Migrate FDC3 Workbench to Vite Jan 19, 2023
Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

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

This works great for me - a few questions on asset paths that I'm still looking into

@@ -2,19 +2,20 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="/favicon.ico" />
Copy link
Contributor

Choose a reason for hiding this comment

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

this willresolve to https://fdc3.finos.org/ when deployed which is not right, think it might need to be:

Suggested change
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="favicon.ico" />

Copy link
Contributor

Choose a reason for hiding this comment

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

but then it appears to be fine in the preview at https://deploy-preview-894--lambent-kulfi-cf51a7.netlify.app/toolbox/fdc3-workbench/

where it requests it from: https://deploy-preview-894--lambent-kulfi-cf51a7.netlify.app/toolbox/fdc3-workbench/favicon.ico correctly.

I am however having trouble with a stylesheet import:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment on lines +12 to +13
<link rel="apple-touch-icon" href="/fdc3-icon-192.png" />
<link rel="manifest" href="/manifest.json" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<link rel="apple-touch-icon" href="/fdc3-icon-192.png" />
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="fdc3-icon-192.png" />
<link rel="manifest" href="manifest.json" />

See previous comment

<title>FDC3 Workbench</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about this oath either... remove the preceding / ?

@@ -79,7 +79,7 @@ export const Header = (props: { fdc3Available: boolean }) => {
<Toolbar className={classes.toolbar}>
<div>
<Typography variant="h3" color="inherit" className={classes.fdc3}>
<img src="./fdc3-logo.svg" className={classes.headerCube} />
<img src={`${import.meta.env.BASE_URL}/fdc3-logo.svg`} className={classes.headerCube} />
Copy link
Contributor

Choose a reason for hiding this comment

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

might get away with just fdc3-logo.svg here... although that requires the URL used to access to have a trailing / - I've got another hacky fix that just puts that / on in the index page if its not there...

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

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

Definitely something off with the CSS in the preview build:
image
which is odd as the build definitely produced the file.

A local build works fine for me (both direct and through website build) so I'm going to assume this is a netlify issue and go-ahead and approve!

@mattjamieson
Copy link
Contributor Author

Definitely something off with the CSS in the preview build: image which is odd as the build definitely produced the file.

A local build works fine for me (both direct and through website build) so I'm going to assume this is a netlify issue and go-ahead and approve!

Yeah definitely something weird going on - the styling is off vs. the live version. I'll take a quick look before I merge.

@robmoffat
Copy link
Member

robmoffat commented Mar 9, 2023

I created a new version of this PR:

And got this preview: https://deploy-preview-923--fdc3.netlify.app/toolbox/fdc3-workbench/

..which looks correct to my untrained eye? wdyt?

@kriswest
Copy link
Contributor

kriswest commented Mar 9, 2023

...which looks correct to my untrained eye? wdyt?

LGTM 👏

@kriswest
Copy link
Contributor

kriswest commented Mar 9, 2023

Superseded by #923

@kriswest kriswest closed this Mar 9, 2023
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.

4 participants