Skip to content

Conversation

@enryH
Copy link
Collaborator

@enryH enryH commented Apr 28, 2025

  • default still on subsection level (level=2)
  • could consider to make subsubsections instead of adding components to subsections

Caveats:

  • Level 1 cannot be specified yet, but that is ok.
  • Descriptions in lower level folders will be ignored

enryH added 14 commits April 23, 2025 12:26
- writing of imports + component code (write python file)
- component - fct map for generation
- building list of components
- first section is home section recording it's compents
- needs to be treated separately
- add overview page for each section showing components in main section folder
- Section could be used everywhere, Subsection is not really necessary. If a Section has subsections, the logic changes. Else nothing changes.
- set based on report type, and this is set on init
- avoid to pass on variable to all functions.
- same as for streamlit_report to prepare refactoring
  of components parsing.
- very similar to _combine_components in streamlit_report
- imports has to be a list of list -> figure this out
- added debug message for skipping components in
  static reports-> should maybe be a warining?
- default still on subsection level
- could consider to make subsubsections instead of adding components to subsection
@enryH enryH linked an issue Apr 28, 2025 that may be closed by this pull request
@enryH enryH marked this pull request as ready for review April 30, 2025 13:34
Base automatically changed from more_flexible_folder_structure to main May 2, 2025 09:17
@enryH enryH requested review from Copilot and sayalaruano May 5, 2025 11:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new command‐line argument and UI control for setting a maximum recursive depth when scanning directories for report components. Key changes include adding a --max_depth argument in the CLI, propagating the max_depth value through report generation (including updates to ConfigManager and report_generator), and adding a slider in the GUI to allow users to adjust this value.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vuegen/utils/init.py Added a new CLI argument for maximum recursion depth.
src/vuegen/streamlit_reportview.py Minor removal of redundant variable assignments for section names.
src/vuegen/report_generator.py Propagated max_depth into report generation and config manager usage.
src/vuegen/config_manager.py Updated initialization and directory parsing to respect max_depth.
src/vuegen/main.py, gui/app.py Updated main function and GUI to pass and enforce max_depth values.

@sayalaruano sayalaruano merged commit c0c7a22 into main May 5, 2025
16 checks passed
@sayalaruano sayalaruano deleted the recursive_subsections branch May 5, 2025 12:16
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.

Add output folder as parameter

3 participants