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

Implement the Settings page in the Svelte Web UI #3

Closed
mufeedvh opened this issue Mar 21, 2024 · 7 comments
Closed

Implement the Settings page in the Svelte Web UI #3

mufeedvh opened this issue Mar 21, 2024 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mufeedvh
Copy link
Member

mufeedvh commented Mar 21, 2024

In the main UI, the Settings page is not implemented yet. Here's how to implement it:

API

Set Settings

Endpoint: /api/set-settings
Method: POST
JSON Request Body:

{
  "STORAGE": {
    "SQLITE_DB": "db/devika.db",
    "SCREENSHOTS_DIR": "screenshots",
    "PDFS_DIR": "pdfs",
    "PROJECTS_DIR": "projects",
    "LOGS_DIR": "logs",
    "REPOS_DIR": "repos"
  },
  "API_KEYS": {
    "BING": "<YOUR_BING_API_KEY>",
    "CLAUDE": "<YOUR_CLAUDE_API_KEY>",
    "NETLIFY": "<YOUR_NETLIFY_API_KEY>",
    "OPENAI": "<YOUR_OPENAI_API_KEY>"
  },
  "API_ENDPOINTS": {
    "BING": "https://api.bing.microsoft.com/v7.0/search"
  }
}

Get Settings

Endpoint: /api/get-settings
Method: GET

{
  "STORAGE": {
    "SQLITE_DB": "db/devika.db",
    "SCREENSHOTS_DIR": "screenshots",
    "PDFS_DIR": "pdfs",
    "PROJECTS_DIR": "projects",
    "LOGS_DIR": "logs",
    "REPOS_DIR": "repos"
  },
  "API_KEYS": {
    "BING": "<YOUR_BING_API_KEY>",
    "CLAUDE": "<YOUR_CLAUDE_API_KEY>",
    "NETLIFY": "<YOUR_NETLIFY_API_KEY>",
    "OPENAI": "<YOUR_OPENAI_API_KEY>"
  },
  "API_ENDPOINTS": {
    "BING": "https://api.bing.microsoft.com/v7.0/search"
  }
}

UI

Add the required form widgets for each of these configuration values.

@mufeedvh mufeedvh added enhancement New feature or request good first issue Good for newcomers labels Mar 21, 2024
@Haimantika
Copy link

Hi @mufeedvh I can take this one up, but please provide more details on how you want it to look like and what details to be added.

@mufeedvh
Copy link
Member Author

Hey @Haimantika, just updated the Issue with the everything required to implement this! If you need any more information/details on this, feel free to ask! Thanks! 🙌❤️

@Chenthan
Copy link

Chenthan commented Mar 24, 2024

Hi @mufeedvh I also want to take part in this. Can you provide UI wireframe for this feature

@Haimantika
Copy link

@Chenthan I am will be out of office until next week, so you can take it up if you want. If you can’t solve until then, I can help :)

@Chenthan
Copy link

@Haimantika Fine. I can take this.

@manish-9245
Copy link

Hi I can take this up and implement it! Happy to contribute

@rgsk
Copy link
Contributor

rgsk commented Mar 25, 2024

#110

@Chenthan @manish-9245 this is almost complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants