glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.59k stars 299 forks source link

[Feature Request] Widget groups #169

Closed VeryEvilHumna closed 2 months ago

VeryEvilHumna commented 4 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

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