Skip to content

web: instance groups: add list view - #9626

Merged
taylorsilva merged 7 commits into
concourse:masterfrom
bcersows:group-list-view
Jul 20, 2026
Merged

taylorsilva merged 7 commits into
concourse:masterfrom
bcersows:group-list-view

Conversation

@bcersows

@bcersows bcersows commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

This commit adds a list view capability to the web frontend. It's available only for instance groups with a toggle similar to the HD one. Related to that, the former HD route was replaced with a session-stored one, so its setting along with the new list view one are restored on reload and independent of the route flow.

Changes proposed by this PR

closes https://github.com/orgs/concourse/discussions/9608 (#9608)

Make sure to follow all PR requirements.

  • new list view capability for instance groups
    • can be toggled
    • still allows for dragging, etc
    • fully responsive
  • the HD route was removed and warped into a session-stored value along with the new list view toggle status
    • main pro: is being restored now even after switching to details view and back

Screenshot (same as in the ticket)

Notes to reviewer

Not sure, if the comments in Dashboard.elm regarding loading from localStorage are required, but as I removed loading them from the route, it made sense to me.

Tried to follow the existing formatting, hope it's alright. And got a bit bigger due to the list view and especially its drag-drop handling; had to do it manually, as going the card view way and calculating every card's location felt wrong when a plain HTML way can achieve the same.

@bcersows
bcersows requested a review from a team July 3, 2026 10:22
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: bcersows / name: bcersows (d5e8120)

@taylorsilva

Copy link
Copy Markdown
Member

In the root of the repo there are few other things you can run, which are failing in the concourse/unit check right now:

yarn analyse is failing with:

Found 11 message(s)

Messages:
- src/Dashboard/Drag.elm
  > `Nothing` mapped to `Nothing` in case expression, but instead you can use `Maybe.map` or `Maybe.andThen`. At ((28,9),(29,20))
- src/Dashboard/Group.elm
  > Unused variable `highDensity` inside pattern at ((286,81),(286,92))
  > Unused variable `now` inside pattern at ((286,94),(286,97))
  > Unused variable `hovered` at ((286,130),(286,137))
  > Unused variable `ps` inside pattern at ((544,37),(544,39))
  > Unused variable `pipelines` inside pattern at ((597,36),(597,45))
- src/Dashboard/InstanceGroup.elm
  > Duplicate import for module `Dashboard.Group.Models`` at [ ((7,1),(7,50)) | ((26,1),(26,50)) ]
- src/Dashboard/Pipeline.elm
  > Duplicate import for module `Dashboard.Group.Models`` at [ ((20,1),(20,50)) | ((38,1),(38,50)) ]
  > Unused imported variable `on` at ((37,67),(37,69))
  > Unused imported variable `preventDefaultOn` at ((37,71),(37,87))
  > Unused imported variable `stopPropagationOn` at ((37,89),(37,106))

yarn test is failing with:

-- NAMING ERROR - /Users/taylor/workspace/concourse/concourse/web/elm/tests/DashboardArchiveTests.elm

I cannot find a `Routes.HighDensity` variant:

157|                                         { searchType = Routes.HighDensity
                                                            ^^^^^^^^^^^^^^^^^^
The `Routes` module does not expose a `HighDensity` variant. These names seem
close though:

    Routes.Causality
    Routes.HighlightLine
    Routes.Pipeline
    Routes.Transition

Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import`
declarations work in Elm.

                                                    DashboardArchiveTests  ↑
====o======================================================================o====
    ↓  RoutesTests


-- NAMING ERROR - /Users/taylor/workspace/concourse/concourse/web/elm/tests/RoutesTests.elm

I cannot find a `Routes.HighDensity` variant:

99|                                 { searchType = Routes.HighDensity
                                                   ^^^^^^^^^^^^^^^^^^
The `Routes` module does not expose a `HighDensity` variant. These names seem
close though:

    Routes.Causality
    Routes.HighlightLine
    Routes.Pipeline
    Routes.Transition

Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import`
declarations work in Elm.

-- NAMING ERROR - /Users/taylor/workspace/concourse/concourse/web/elm/tests/RoutesTests.elm

I cannot find a `Routes.HighDensity` variant:

117|                                 { searchType = Routes.HighDensity
                                                    ^^^^^^^^^^^^^^^^^^
The `Routes` module does not expose a `HighDensity` variant. These names seem
close though:

    Routes.Causality
    Routes.HighlightLine
    Routes.Pipeline
    Routes.Transition

Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import`
declarations work in Elm.

                                                              RoutesTests  ↑
====o======================================================================o====
    ↓  DashboardTests


-- NAMING ERROR - /Users/taylor/workspace/concourse/concourse/web/elm/tests/DashboardTests.elm

I cannot find a `Routes.HighDensity` variant:

1972|                             Routes.HighDensity
                                  ^^^^^^^^^^^^^^^^^^
The `Routes` module does not expose a `HighDensity` variant. These names seem
close though:

    Routes.Causality
    Routes.HighlightLine
    Routes.Pipeline
    Routes.Transition

Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import`
declarations work in Elm.


`elm make` failed with exit code 1.

@taylorsilva

Copy link
Copy Markdown
Member

yarn build does work so played around with the UI and I like it! Fits in well with the existing design. Drag-and-drop works perfectly.

Really nice that the view selection you pick (default, HD, listview) persists now too!

For any curious, this is what it looks like.

Screen.Recording.2026-07-03.at.4.20.32.PM.mov

Only suggestion I could think, and this is non-blocking, is it would be nice if the instanced pipelines that are starred were pinned to the top like they are in the default dashboard view. You can see what I mean in the video after I pin two and then flip between default and list view.

Non-blocking though, would be very happy to see this shipped as-is (once the tests are passing 😁).

@bcersows

bcersows commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback, @taylorsilva , and happy you like it. I'll fix those yarn complaints as soon as I can. :)

As for the favorites, I kind of stayed in the same lane the HD view does, but can see the appeal. How would you imagine that? A separate list on top that is not draggable and just displays the favs? Or having them in the same list, but on top? How would sorting come into play then, would it be possible to sort a fav down into the "regular" rows? Or separate sorting between the favs and the regulars?
But I'm open to dive into that after merging as well, whatever you prefer. :)

@taylorsilva taylorsilva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was doing some more testing looking at ways to break the UI. When there are too many instance vars it never line breaks:
Image

There is some line breaking going when I shrink the window size:

Image

Here's a fly command with all the instance vars:

fly -t l sp -p test -c test.yml \
    -i v1=v1 \
    -i name=alpha \
    -i color=blue \
    -i size=medium \
    -i status=active \
    -i region=north \
    -i mode=debug \
    -i level=high \
    -i type=widget \
    -i env=staging \
    -i owner=team7 \
    -i priority=urgent \
    -i category=tools \
    -i version=beta \
    -i format=json \
    -i theme=dark \
    -i lang=english \
    -i tier=premium \
    -i zone=east \
    -i state=pending \
    -i group=admin \
    -i tag=release \
    -i source=manual \
    -i target=prod \
    -i flag=enabled \
    -i label=archive

@taylorsilva

Copy link
Copy Markdown
Member

We can ignore the favouriting stuff for now like I said. Can do it in another PR if you're motivated to do it or someone else is.

@taylorsilva

Copy link
Copy Markdown
Member

I've also tested that the search bar works on the list. Everything looks good there.

@taylorsilva

Copy link
Copy Markdown
Member

FYI, I pushed a commit that does some refactoring. I didn't attempt to fix the issues I pointed out.

I think this will be good to merge once the overflowing style issue is resolved.

@taylorsilva

Copy link
Copy Markdown
Member

Just noticed that the HD view is draggable now too! Did notice that dragging to the start/end isn't possible though:

Screen.Recording.2026-07-07.at.3.10.05.PM.mov

Not considering this a blocker to merging, but would be nice to fix before merging.

@taylorsilva taylorsilva moved this from Todo to Waiting on Contributor in Pull Requests Jul 7, 2026
@taylorsilva

Copy link
Copy Markdown
Member

very strange, unit check is failing but for unrelated reasons so don't worry about it. it's happening on main too so I'll figure it out there. Sorry for the noise!

@taylorsilva

Copy link
Copy Markdown
Member

Figured out the unit tests problem, so that check will pass now.

Last review is the only outstanding item now from merging: #9626 (review)

@taylorsilva taylorsilva left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just happened across this by accident because I had last compiled the frontend locally from this branch. The "welcome to concourse!" box doesn't fill the width of the screen:

Image

Should look like:

Image

I used git bisect to verify this appears in the first commit in this PR.

@taylorsilva

Copy link
Copy Markdown
Member

oh wow I really stumbled upon an edge-case here! So that weird view only appears if you have no pipelines to view AND your dashboard is set to high-density mode. It was probably like this before but no one ever encountered this because they'd only see if if they were on the /hd view and logged out.

I only happened across this because I happened to have high-density turned on, persisting in my browsers local storage.

Will push a fix in a bit.

@taylorsilva

Copy link
Copy Markdown
Member

Figured out a CSS fix for the overflowing issue in the list view.
image

bcersows and others added 6 commits July 17, 2026 17:47
This commit adds a list view capability to the web frontend. It's available only for instance groups with a toggle similar to the HD one.
Related to that, the former HD route was replaced with a session-stored one, so its setting along with the new list view one are restored on reload and independent of the route flow.

Signed-off-by: bcersows <[email protected]>
Fixed some Elm tests and analysis. Also ran `yarn format` (which touched some files I did not).

Signed-off-by: bcersows <[email protected]>
- Big one is adding the cardPipeline helper, consolidating all the
three-way branch logic into one func that others call.
- Moved a bunch of CSS into Styles.elm

Signed-off-by: Taylor Silva <[email protected]>
allows users to interact with the button using their keyboard

Signed-off-by: Taylor Silva <[email protected]>
by not going into highDensity at all and just displaying the regular
view

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva

taylorsilva commented Jul 17, 2026 •

Copy link
Copy Markdown
Member

I rebased onto master just so I could locally ensure I was using the latest Elm verison.

If you can't tell, I'm very excited to have this feature in Concourse! That's why I went ahead and fixed the outstanding items I found.

Assuming nothing else pops up, I'll merge this once the checks pass on the latest commit. Thank you VERY much for your work on this!

@taylorsilva
taylorsilva merged commit be45540 into concourse:master Jul 20, 2026
11 checks passed
@github-project-automation github-project-automation Bot moved this from Waiting on Contributor to Done in Pull Requests Jul 20, 2026
@bcersows

Copy link
Copy Markdown
Contributor Author

@taylorsilva , sorry, I've been on vacation for a couple days. But thanks a lot for taking matters into your own hands, happy I could help. :)

What's still open now? The fav stuff? If so, do you have any design for it in mind? Separate list above?

@taylorsilva

Copy link
Copy Markdown
Member

No worries, hope it was a good vacation!

I think the favourites is the only outstanding thing now. Separate list above is what I imagined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants