-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
Chore/nx migration #3715
Chore/nx migration #3715
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The routes unit tests are too complex and go beyond the responsibility of routes. Can't just comment them out of course. If user engagement (e.g. clicking something) is needed to get to a routes expectation, that's a smell.
Need to sure what the routes tests are covering is tested somewhere.
"import/newline-after-import": "error", | ||
"import/no-named-as-default": "off", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove these?
@@ -40,15 +38,6 @@ | |||
"accessorPairPositioning": "getThenSet" | |||
} | |||
], | |||
"import/no-duplicates": "error", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the import plugin was preventing nx from running. (maybe due to commonjs?)
"plugin:import/recommended", | ||
"plugin:import/typescript", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why remove these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the import plugin was preventing nx from running. (maybe due to commonjs?)
.eslintrc.base.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reasoning for this being a seperate file?
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>Precious Plastic Community</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be generic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have a script that replaces this before serving, but it's something to confirm.
href="https://firebasestorage.googleapis.com" | ||
crossorigin | ||
/> | ||
<noscript><link rel="stylesheet" href="path/to/stylesheet.css" /></noscript> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path/to/stylesheet.css
?
<meta property="og:title" content="Community Platform" /> | ||
<meta | ||
property="og:description" | ||
content="A series of tools for the Precious Plastic community to collaborate around the world. Connect, share and meet each other to tackle plastic waste." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be generic
content="A series of tools for the Precious Plastic community to collaborate around the world. Connect, share and meet each other to tackle plastic waste." | ||
/> | ||
<meta property="og:image" content="./social-image.jpg" /> | ||
<meta property="og:url" content="https://community.preciousplastic.com" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be generic
<meta name="twitter:title" content="Community Platform" /> | ||
<meta | ||
name="twitter:description" | ||
content="A series of tools for the Precious Plastic community to collaborate around the world. Connect, share and meet each other to tackle plastic waste." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be generic
import { trackEvent } from '../../../../common/Analytics' | ||
import { useCommonStores } from '../../../../common/hooks/useCommonStores' | ||
import { Breadcrumbs } from '../../../../pages/common/Breadcrumbs/Breadcrumbs' | ||
import { seoTagsUpdate } from '../../../../utils/seo' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General point, just picking this as an example. The depth of these relative paths is annoying. No other option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed by splitting up the code in libraries. ex:
import { Breadcrumbs } from '@onearmy.apps/shared'
2e6bf53
to
4f028ca
Compare
thanks @benfurber will consider all your comments on the next try. Important info from discord:
Abandoning this PR as I found a few components that are coupling things up too much:
fixing them first before proceeding with the migration (as fixing them means changing code, not just moving things around) |
PR Checklist
PR Type
Description
What this PR does
Git Issues
Closes #
Screenshots/Videos
If useful, provide screenshot or capture to highlight main changes
What happens next?
Thanks for the contribution! We try to make sure all PRs are reviewed ahead of our monthly maintainers call (first Monday of the month)
If the PR is working as intended it'll be merged and included in the next platform release, if not changes will be requested and re-reviewed once updated.
If you need more immediate feedback you can try reaching out on Discord in the Community Platform
development
channel.