Skip to content

feat(container): support sorting by creation time - #14141

Open
woolsen wants to merge 1 commit into
1Panel-dev:dev-v2from
woolsen:feat/container-created-at-sort
Open

woolsen wants to merge 1 commit into
1Panel-dev:dev-v2from
woolsen:feat/container-created-at-sort

Conversation

@woolsen

@woolsen woolsen commented Oct 20, 2026 •

Copy link
Copy Markdown

What this PR does / why we need it?

The container list can only be sorted by name. Add a creation time column so containers can also be ordered by when they were created, without changing the default sort (name ascending).

Depends on #14140: the third click (cleared state) restores the default order only after that PR is merged.

Summary of your change

  • Add a sortable "Created" column. It displays the existing createTime value and uses the backend createdAt order field directly through the column prop.
  • Use the standard three-state cycle, starting with newest first: descending → ascending → cleared (default name ascending).

Verification

  • npm run build:dev passes.
  • Playwright run against the built frontend with mocked API responses:
    • click 1: request orderBy=createdAt, order=descending;
    • click 2: request orderBy=createdAt, order=ascending;
    • click 3: created indicator cleared and request returns to orderBy=name, order=ascending (with fix(container): reset sort to default when cleared #14140);
    • the cells display the existing createTime values.
  • The repository has no component/Playwright test setup, so the harness is not committed.

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@woolsen
woolsen force-pushed the feat/container-created-at-sort branch from ce9eb1f to fcb795c Compare October 20, 2026 13:36
@woolsen
woolsen force-pushed the feat/container-created-at-sort branch 2 times, most recently from a2a564b to a9c72b2 Compare October 20, 2026 13:38
Add a creation time column to the container list. The column uses the backend createdAt order field and displays the existing createTime value. It follows the standard three-state sort cycle, starting with newest first.
@woolsen
woolsen force-pushed the feat/container-created-at-sort branch from a9c72b2 to 281789e Compare October 20, 2026 13:50
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.

1 participant