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

feat: first with boilerplate #1

Merged
merged 49 commits into from
Feb 6, 2024
Merged

Conversation

truemiller
Copy link
Collaborator

first commit, with boilerplate code for nextjs/electron app

@oaksprout oaksprout requested a review from mohandast52 February 6, 2024 10:53
Copy link
Collaborator

@mohandast52 mohandast52 left a 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:

  1. Would be great to prettify files (format document) - for consistent tabbing and spacing.
  2. Let's avoid using the "any" type; we have eslint rule "@typescript-eslint/no-explicit-any".
  3. Noticed eslint errors; it would be great to address them.
  4. Consider utilizing antd components such as Typography (title, paragraph, text), Image, etc to be consistent

frontend/.eslintrc.json Outdated Show resolved Hide resolved
frontend/README.md Outdated Show resolved Hide resolved
frontend/components/Layout/Layout.test.tsx Outdated Show resolved Hide resolved
frontend/components/Marketplace/MarketplaceItem.tsx Outdated Show resolved Hide resolved
frontend/components/Marketplace/MarketplaceItem.tsx Outdated Show resolved Hide resolved
win.setMenuBarVisibility(false);


win.loadURL("http://localhost:3000");
Copy link
Collaborator

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/electron/main.js Outdated Show resolved Hide resolved
frontend/electron/loading.html Outdated Show resolved Hide resolved

useEffect(() => {
if (error) return console.log(error);
setAgents(data);
Copy link
Collaborator

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?

frontend/components/YourAgents/YourAgents.tsx Outdated Show resolved Hide resolved
public/vercel.svg Outdated Show resolved Hide resolved
public/next.svg Outdated Show resolved Hide resolved
Copy link
Collaborator

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?

Copy link
Collaborator

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.

electron/loading.html Outdated Show resolved Hide resolved
electron/loading.html Outdated Show resolved Hide resolved
Copy link
Collaborator

@oaksprout oaksprout left a 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 🤝

@truemiller truemiller merged commit e083352 into main Feb 6, 2024
@truemiller truemiller deleted the feature/frontend-boilerplate branch February 6, 2024 23:24
0xArdi added a commit that referenced this pull request Oct 17, 2024
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.

3 participants