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

Add Example Repository Button or Prefill Dropdown to Interface #20

Open
nkkko opened this issue Sep 26, 2024 · 6 comments · May be fixed by #32
Open

Add Example Repository Button or Prefill Dropdown to Interface #20

nkkko opened this issue Sep 26, 2024 · 6 comments · May be fixed by #32

Comments

@nkkko
Copy link
Member

nkkko commented Sep 26, 2024

Is your feature request related to a problem? Please describe.
New users may struggle to understand how the tool works without having an example repository to test. Providing a prefilled dropdown or a button with example repositories will make it easier for users to get started and understand the generation process without needing their own repository URL initially.

Describe the solution you'd like

  • Add a button or dropdown to the interface that pre-fills the GitHub repository URL input with example repositories.
  • This should allow users to click "Generate" without pasting their own URL, providing a quick way to see the tool in action.
  • Ensure these example repositories are relevant and showcase the capabilities of the tool effectively.

Describe alternatives you've considered

  • Providing extensive documentation on how to get started, but this may not be as engaging or immediately useful as an interactive example.
  • Relying solely on user input, which could frustrate users who just want to see a quick demo.

Additional context
Include relevant example repositories that cover a range of common use cases. Make sure to test the functionality to ensure it's seamless and provides a good user experience. This feature will enhance onboarding and user engagement by making it easier to see the tool in action.

@nkkko
Copy link
Member Author

nkkko commented Oct 9, 2024

/bounty $10

Copy link

algora-pbc bot commented Oct 9, 2024

💎 $10 bounty • Daytona

Steps to solve:

  1. Start working: Comment /attempt #20 with your implementation plan
  2. Submit work: Create a pull request including /claim #20 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.

Please respect others by working on PRs that you are allowed to submit attempts to.

e.g. If you reached the limit of active attempts, please wait for the ability to do so before submitting a new PR.

If you can not submit an attempt, you will not receive your payout.

Thank you for contributing to daytonaio/devcontainer-generator!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @mobley-trent Oct 10, 2024, 5:30:06 AM #32

@mobley-trent
Copy link

mobley-trent commented Oct 10, 2024

/attempt #20

Algora profile Completed bounties Tech Active attempts Options
@mobley-trent    3 daytonaio bounties
+ 7 bounties from 4 projects
Python, Rust,
Jupyter Notebook
Cancel attempt

@mobley-trent
Copy link

Hello @nkkko I'm currently getting this error while attempting to run Generate for any repo:

Traceback (most recent call last):
  File "/workspaces/devcontainer-generator/main.py", line 112, in post
    exists, existing_record = check_url_exists(repo_url)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspaces/devcontainer-generator/helpers/github_helpers.py", line 148, in check_url_exists
    existing = supabase.table("devcontainers").select("*").eq("url", url).order("created_at", desc=True).limit(1).execute()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.local/lib/python3.12/site-packages/postgrest/_sync/request_builder.py", line 78, in execute
    raise APIError(r.json())
postgrest.exceptions.APIError: {'code': '42P01', 'details': None, 'hint': None, 'message': 'relation "public.devcontainers" does not exist'}

From my understanding the program is checking for values in a supabase db, but I didn't see any instructions for configuring supabase.

@nkkko
Copy link
Member Author

nkkko commented Oct 10, 2024

Yes, readme needs to be updated, check .env example you should be able to test it with your supabase account, you just need to set it up.

Copy link

algora-pbc bot commented Oct 10, 2024

💡 @mobley-trent submitted a pull request that claims the bounty. You can visit your bounty board to reward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants