NASA-AMMOS / NASA-AMMOS/AIT-GUI

Update GUI static file configuration parameters

Open
#138 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

refactor
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.