-
Notifications
You must be signed in to change notification settings - Fork 9
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
PRO-2111- Config Changes #65
Conversation
Deploying with Cloudflare Pages
|
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.
LGTM
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.
Thanks for the changes so far, some reminders and replies below:
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.
A few things still outstanding but much better than before:
- In the admin_frontend code indentation still isn't aligned with the rest of the repo (tabs vs spaces)
- About new lines: https://thoughtbot.com/blog/no-newline-at-end-of-file, i didn't see a .editorconfig file committed
- The routes file is becoming huge, this should be split out into controllers in the future
- Consider a defacto logger like Winston in the future, i saw some custom logging function but wasn't sure what it's using behind the scenes
@@ -85,9 +106,10 @@ const ApiKeysPage = () => { | |||
toast.error("Could not save"); |
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.
Can you give extra instructions to what the user should do next?
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.
have to see the logs on backend on what's causing the 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.
should I give that on the toast?
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.
Toast is okay, but for now you can just ask them to check their details and try again, or contact the support team.
'getKeys': '/getKeys', | ||
'saveKey' : '/saveKey', | ||
'deleteKey': '/deleteKey', | ||
} |
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.
New line missing - did you add this to your editor config?
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.
yes on the other PR and when I changed the branch it got deleted
/.ponder/ | ||
|
||
package-lock.json | ||
|
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.
Missing new line, this can be done automatically with editorconfig
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.
line 21 is a new line
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] as const; |
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.
Still not comfortable with a JSON file being cast as s JS object and exported in a TS file... it's just a JSON file
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.
yes but the import through assertion, the ponder does not take it and moreover the ponder docs have the same type
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.
Nearly there...
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.
LGTM 🎉
Description
Types of changes
What types of changes does your code introduce?
Further comments (optional)