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

[FEATURE_REQUEST] Save sections in a separate file #1785

Open
ZzenlD opened this issue Jan 8, 2025 · 0 comments
Open

[FEATURE_REQUEST] Save sections in a separate file #1785

ZzenlD opened this issue Jan 8, 2025 · 0 comments
Assignees
Labels
🦄 Feature Request [ISSUE] Suggestion for new feature, update or change

Comments

@ZzenlD
Copy link

ZzenlD commented Jan 8, 2025

Is your feature request related to a problem? If so, please describe.

It would be good if you could outsource the configuration sections to separate files:

  • Configuration file becomes shorter/simpler/clearer
  • Entire sections could simply be commented out
  • Easier debugging in case of syntax errors

Describe the solution you'd like

The main configuration file could then look like this:

pageInfo:
  title: <title>

appConfig:
  defaultOpeningMethod: modal
  hideComponents:
    hideHeading: true
    hideNav: true
    hideSettings: true
    hideFooter: true
  enableMultiTasking: true
  disableConfiguration: true
  disableUpdateChecks: true

sections:
  - name: Favorites
    icon: star.svg
    items:
      - title: <Service_1>
        url: https://service_1
        target: workspace
      - [...]
 
{{- $file := glob "/config/*.yml" }}
{{- fileContent | toYaml | expandenv | nindent 2 }}
{{- end }}

An example file called example_section.yml could then have the following content:

- name: Example section
  items:
    - title: <Service_X>
      url: https://service_x
    - [...]

Priority

Medium (Would be very useful)

Is this something you would be keen to implement

None

@ZzenlD ZzenlD added the 🦄 Feature Request [ISSUE] Suggestion for new feature, update or change label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🦄 Feature Request [ISSUE] Suggestion for new feature, update or change
Projects
None yet
Development

No branches or pull requests

2 participants