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] Widget groups #169

Closed
VeryEvilHumna opened this issue Jul 14, 2024 · 4 comments
Closed

[Feature Request] Widget groups #169

VeryEvilHumna opened this issue Jul 14, 2024 · 4 comments
Labels
work completed Work for this has been completed but it may not yet be merged / released
Milestone

Comments

@VeryEvilHumna
Copy link

Ability to group multiple widgets in one place and use tabs to switch between them would be very useful! + shared config between grouped widgets, to keep things DRY

A fast example of idea

News group

# glance.yml

pages:
  - name: Home
    columns:
      - size: full
        widgets:
          - type: group
            shared-props:
              limit: 15
              collapse-after: 5
            widgets:
              - type: lobsters
                sort-by: hot
              - type: hacker-news
              - type: reddit
                subreddit: selfhosted
              - type: rss
                title: RSS Feed

image

Reddit group

# glance.yml

pages:
  - name: Home
    columns:
      - size: full
        widgets:
          - type: group
            shared-props:
              limit: 15
              collapse-after: 5
              sort-by: top
              top-period: week
            widgets:
              - type: reddit
                subreddit: selfhosted
              - type: reddit
                subreddit: unixporn
              - type: reddit
                subreddit: web_design
                top-period: month # <= will override shared props

image

@vishalkadam47
Copy link

vishalkadam47 commented Jul 30, 2024

would it be possible to group iframes also, with multi-tasking feature something like this one https://vishops.vercel.app a side panel feature would be useful in some cases
this was my first opensource project https://github.com/vishalkadam47/vops-workspace
Thanks for the glance dashboard with more features, I loved it
now i can switch glance

@VeryEvilHumna
Copy link
Author

would it be possible to group iframes also

I think if groups would be implemented, then iframes would be supported by default without any additions. Glance has iframe widget already, so you
can just group multiple iframe widgets

@VeryEvilHumna
Copy link
Author

a side panel feature would be useful in some cases

There is a question about responsiveness of this tab style. It would be ok on wide desktop, but on tablets and mobile there might be some troubles.

@vishalkadam47
Copy link

vishalkadam47 commented Jul 30, 2024

then how about a feature to switch between desktop and mobile only for iframes, when in mobile view automatically switch to the usual iframe, I mean without group

@svilenmarkov svilenmarkov added the work completed Work for this has been completed but it may not yet be merged / released label Aug 4, 2024
@svilenmarkov svilenmarkov added this to the v0.6.0 milestone Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work completed Work for this has been completed but it may not yet be merged / released
Projects
None yet
Development

No branches or pull requests

3 participants