-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: first with boilerplate #1
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.
Looks good overall, but few comments regarding frontend preferences and suggestions:
- Would be great to prettify files (format document) - for consistent tabbing and spacing.
- Let's avoid using the "any" type; we have eslint rule
"@typescript-eslint/no-explicit-any"
. - Noticed eslint errors; it would be great to address them.
- Consider utilizing
antd
components such as Typography (title, paragraph, text), Image, etc to be consistent
frontend/electron/main.js
Outdated
win.setMenuBarVisibility(false); | ||
|
||
|
||
win.loadURL("http://localhost:3000"); |
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.
doubt: would it still work if 3000 port is already taken?
frontend/context/AgentsProvider.tsx
Outdated
|
||
useEffect(() => { | ||
if (error) return console.log(error); | ||
setAgents(data); |
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.
Is it necessary for us to store this data? Since we are already fetching it using useSWR, it seems like we might be duplicating it. What do you think?
…olas-operate-app into feature/frontend-boilerplate
components/Layout/Navbar/Navbar.tsx
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.
Our path naming convention elsewhere is usually Navbar/index.jsx
, but I have thought for a while like this Navbar/Navbar.tsx
is easier to read when searching. Would suggest we move towards this. Thoughts @mohandast52?
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, agreed 💯 This structure is far easier to navigate compared to a bunch of index files.
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.
Few minor comments but generally looks good to go 🤝
first commit, with boilerplate code for nextjs/electron app