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

Configuration of plugin options also through admin #23

Open
4 tasks
Tracked by #1
sargreal opened this issue Oct 27, 2022 · 1 comment
Open
4 tasks
Tracked by #1

Configuration of plugin options also through admin #23

sargreal opened this issue Oct 27, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@sargreal
Copy link
Member

sargreal commented Oct 27, 2022

The current way to configure the API Token and if the free or paid API is used can only be configured in the config file or through environment variables.
Since there is no other way to set these, the application setup is currently cancelled if these are not set.

It would be very useful, to allow configuration through the admin panel, since then also not so techy people can set it up.

Inspiration: https://github.com/meilisearch/strapi-plugin-meilisearch#-add-credentials-

  • Allow api token and free api configurations to be empty
  • Configure a router, controller and service to set and retrieve settings from the plugin store
    • Do not allow changing the settings if the values were set through the plugin configuration / environment variables
    • Use values from plugin configuration if they are set
  • Create configuration page to set/update these values
    • Grey out fields if values from plugin configuration are present
  • Show meaningful error messages when the credentials are not set up yet
@sargreal sargreal mentioned this issue Oct 27, 2022
15 tasks
@sargreal sargreal added enhancement New feature or request good first issue Good for newcomers labels Oct 27, 2022
@sargreal sargreal added this to the v1.0 milestone Oct 28, 2022
@sargreal
Copy link
Member Author

Since this option will now be tied to the provider system, this should probably be implemented with #27

@sargreal sargreal modified the milestones: v1.0, v1.1 Nov 11, 2022
@sargreal sargreal modified the milestones: v1.1, v1.2 Feb 10, 2023
@sargreal sargreal changed the title Configuration of free Api and token also through admin Configuration of plugin options also through admin Mar 14, 2023
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
Development

No branches or pull requests

1 participant