Skip to content

Updated Solution.tsx #1

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

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Conversation

gamidirohan
Copy link

Updated Solution.tsx to accept Explanation in string format instead of an array.
Code and Complexities are parsed through perfectly with a custom backend.

@gamidirohan
Copy link
Author

gamidirohan commented Mar 14, 2025

It seems like this doesn't create any input for the API key

In this, all the API keys were given from the ".env" files itself, in the backend.

@gamidirohan
Copy link
Author

Thanks I realised that soon after I made that comment haha. I tried running the application again but this time with the API key in a .env file(verified the API key works prior to this) - but I've encountering the following error:

API Error Details: {
status: undefined,
data: undefined,
message: '',
code: 'ECONNREFUSED'
}
Processing error details: {
message: 'Server error. Please try again.',
code: undefined,
response: undefined,
retryCount: 0
}
Processing failed: Server error. Please try again.

Seems like it can't establish a connection with the API endpoint, any ideas what might be causing this issue?

Hey, I've actually made a seperate backend for this fronend app. I'm so sorry u haven't informed it clearly. Run those on the same device simultaneously and it should work. Took a few days but I was able to complete it somehow. Works with basic functionalities but it doesn't seem to get the right answer everytime, works perfectly with the test image in my repo tho. Maybe look into the prompts given, I'll try working on it too when free.
The backend repo is in my github account.
Please do star and fork it, maybe improve it if possible. Thanks

This commit adds:
1. A new CopyButton component that allows users to easily copy code with proper indentation
2. Integration of the copy button in all code sections in both Solutions and Debug pages
3. Styling that matches the dark theme with translucent background

Known issues that still need to be addressed:
- Window resizing not working correctly - the application window doesn't properly resize to match content
- Need to investigate how content dimensions are communicated to the main process
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.

1 participant