NASA-AMMOS / NASA-AMMOS/AIT-GUI
Update GUI static file configuration parameters
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 31
- Forks
- 15
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
The HTMLRoot state object currently pulls config from gui.html.directory. This used to be under the section where we customized the GUI. With the current plugin configuration this ends up as a stranded awkward chunk of configuration.
We should move this into the plugin configuration and update this object as needed in the GUI plugin __init__
class HTMLRoot:
Static = pkg_resources.resource_filename('ait.gui', 'static/')
User = ait.config.get('gui.html.directory', Static)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the GUI plugin init and locate the HTMLRoot state object that reads gui.html.directory. Trace the current plugin configuration and static-file path handling, then move the setting into the plugin configuration and update HTMLRoot as needed. Done means the GUI still resolves its default and user static directories from the new location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100