Skip to content

AI page and app modularization #46

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

Conversation

evenmatencio
Copy link
Contributor

The creation of the AI page motivated the app modularization.

Main features:

  • app modularization based on dash_extensions.enrich.DashBlueprint:
    • four modules: Form, Results, Import-Export and Methodology
    • blueprints communicate with each other through intermediate variables stored in dcc.Store
  • creation of the AI page
    • a training and an inference form
    • help tabs
    • both detailed and aggregated results

Llannelongue and others added 30 commits April 11, 2023 19:52
# Conflicts:
#	app.py
#	html_layout.py
- all tooltip icons are pushed towards right hand side column of the form
- leading to layout reorganisation of the radio rows and server input
…tooltip element (including the icon), not relatively to the browser window
- improved tooltip icon location for large screen
- additional and improved textual content
…s should be indicated beforehand when the app is instantiated. Does not work because dash version is lower than 2.14 (2.9.2 currently). A possible workaround is to instantiate the arguments in the html.py file directly.
…in a more suitable way. URL querry strings are now properly caught by the layout but not handled yet
The layout function from Dash pages automatically collects query strings from url, one juste has to parse them.
Does not require any lirary update.
Now url query string are not handled in callbacks anymore but when initiating the html layout.
…ult values:

checking if possible to remove all Input(url_content, search) from callbacks
documenting the solutions see callback set_server_value and set_serverContinents_value
refacto: renaming an few additional comments
…ult values:

checking if possible to remove all Input(url_content, search) from callbacks
documenting the solutions see callback set_server_value and set_serverContinents_value
refacto: renaming an few additional comments
- moving the graphic components from the app file as they are mostly static
- a simple utils file containing miscellaneous utilities
- both functionalities work
- TODO: flush input content properly and check cicrcular callback behaviour
- TODO: add sanity checks when receiving inputs from csv
…s to let the user fill in the same csv again after modifying the form
@Llannelongue
Copy link
Collaborator

In hindsight, I think we should include the methodology boxes (get_green_algo_methodology_layout) under the AI tab as well, if that's not too difficult.

@Llannelongue
Copy link
Collaborator

I'm not sure about the role of the reporting-row class (also TODO: add top padding to it)

@evenmatencio evenmatencio mentioned this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants