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

Update @blueprintjs/core version #876

Merged
merged 2 commits into from
Aug 1, 2022
Merged

Update @blueprintjs/core version #876

merged 2 commits into from
Aug 1, 2022

Conversation

pringshia
Copy link
Contributor

@pringshia pringshia commented Aug 1, 2022

Fixes #827

Upgrades the @blueprintjs/core dependency for cra-template-mephisto-review

Update: Includes a capitalization file import fix as well

Testing

Built a new review app using the updated template. The following was run from the Mephisto root directory:

npx clear-npx-cache # had to do this first in my case: https://stackoverflow.com/a/70358238
npx create-react-app --template file:packages/cra-template-mephisto-review template-test
cd template-test
npm start

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 1, 2022
@pringshia pringshia requested review from Etesam913 and JackUrb August 1, 2022 17:01
@Etesam913
Copy link
Contributor

Etesam913 commented Aug 1, 2022

Built a new review app using the updated template
npx clear-npx-cache # had to do this first in my case: https://stackoverflow.com/a/70358238
npx create-react-app --template file:packages/cra-template-mephisto-review template-test
cd template-test
npm start

In what directory did you run this in?

You might want to add it to the testing section of your pr as well

@Etesam913
Copy link
Contributor

Etesam913 commented Aug 1, 2022

I ran it in my root Mephisto directory and got this:

In browser

Screen Shot 2022-08-01 at 1 14 30 PM

In terminal

Screen Shot 2022-08-01 at 1 14 37 PM

@pringshia
Copy link
Contributor Author

In what directory did you run this in?

You might want to add it to the testing section of your pr as well

Good call out. Updated. It was from the Mephisto root directory

@pringshia pringshia closed this Aug 1, 2022
@pringshia pringshia reopened this Aug 1, 2022
@pringshia
Copy link
Contributor Author

I ran it in my root Mephisto directory and got this:

Hmm, I'm unable to reproduce this. Tried again and seems to works on my end 🤔

@Etesam913
Copy link
Contributor

Etesam913 commented Aug 1, 2022

In CollectionView.jsx this folder name should be capitalized in the path. Weird, I feel like that should create an error for you as well ...
Screen Shot 2022-08-01 at 1 21 57 PM

@Etesam913
Copy link
Contributor

Is is supposed to have this red banner at the bottom?
Screenshot 2022-08-01 at 13-24-09 Mephisto Review

@pringshia
Copy link
Contributor Author

In CollectionView.jsx this folder name should be capitalized in the path. Weird, I feel like that should create an error for you as well ...

Why would it need to be capitalized? If it's lowercase in both the source code as well as the file system, shouldn't it just work?

The red banner is expected, but not ideal. It could probably be a little bit more informational rather than the generic error handling we have in place here. The reason is that the interface is meant to be loaded with data through the mephisto review command. When you just do npm start you don't invoke it with any data piped in.

@Etesam913
Copy link
Contributor

Etesam913 commented Aug 1, 2022

Mine is capitalized. I deleted the template-test and installed it again and it the Pagination folder is still capitalized.
Screen Shot 2022-08-01 at 1 30 48 PM

Maybe @JackUrb should act as the tiebreaker here 😆

@Etesam913
Copy link
Contributor

@pringshia
Copy link
Contributor Author

Yep, since the folder is capitalized on Github that should be the source of truth. I'm not sure why my local Mephisto repo didn't have it as such and was out of sync (git diff also doesn't seem to notify for these cases). I've updated the import to reflect the capitalized folder name.

Copy link
Contributor

@Etesam913 Etesam913 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@pringshia pringshia merged commit e6d2fbc into main Aug 1, 2022
@pringshia pringshia deleted the blueprint-core-upgrade branch August 1, 2022 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade @blueprintjs/core version to allow for React 18 compatibility
3 participants