Skip to content

feat: configurable "My Contributions" tab in generic-list-view via ContentConfiguration #162

Description

@SimonBurmer

Add support for a configurable "My Contributions" tab in the generic-list-view that filters resources to only those where the current user has a relation (e.g. contributor, owner).

Motivation

The generic-list-view currently fetches all resources via the Kubernetes/GraphQL API and has no concept of per-user filtering. Teams want to give users a quick way to see only the resources they created or contribute to — the same UX pattern already present in the organization-ui workspace listing.

Technical requirements

This feature needs the search-operator, in order to filter for resources based on a defined relation.

Proposed ContentConfiguration API

Extend tabel-card with an optional tabs array:

{
  "ui": {
    "listView": {
      "tabs": [
        {
          "label": "All Components",
          "default": true
        },
        {
          "label": "My Contributions",
          "filterByCurrentUserRelation": "contributor"
        }
      ],
      "fields": [ ... ]
    }
  }
}

When filterByCurrentUserRelation is set, the tab switches the data source from the K8s/GraphQL API to the search API and applies a permissions filter for the current user + the given relation.

Example:

Image

Metadata

Metadata

Assignees

Labels

Fields

No fields configured for Feature.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions