Skip to content

Show project name on dashboard stack lists only in all-project scope#2281

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/show-project-name-column
Draft

Show project name on dashboard stack lists only in all-project scope#2281
Copilot wants to merge 2 commits into
mainfrom
copilot/show-project-name-column

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 31, 2026

Dashboard stack lists (New, Frequent, Users) did not identify which project a row belonged to when viewing all projects, creating ambiguity. This change adds project context in all-project views while keeping single-project dashboards unchanged.

  • UI: conditional Project column for stack dashboard tables

    • Updated stacks-directive.tpl.html to render a Project column and stack.project_name cell only when enabled by settings.
    • Kept table layout correct by making empty-state colspan conditional on whether the project column is shown.
  • Controller wiring: show only outside project-scoped routes

    • Added showProjectName: !$stateParams.projectId to stack dashboard settings in:
      • new-controller.js
      • frequent-controller.js
      • users-controller.js
    • This ensures:
      • all-project dashboards show project name
      • project-filtered dashboards hide it
  • Contract coverage for required payload fields

    • Added GetEvents_StackFrequentMode_IncludesProjectNameFields in EventControllerTests.cs to assert stack summary payloads include non-empty project_id and project_name.
vm.mostFrequent = {
  header: "Most Frequent",
  get: eventService.getAll,
  options: { limit: 15, mode: "stack_frequent" },
  showProjectName: !$stateParams.projectId,
  source: vm._source + ".Events",
};

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI linked an issue Jun 1, 2026 that may be closed by this pull request
Co-authored-by: niemyjski <1020579+niemyjski@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Project Name column to dashboards Show project name on dashboard stack lists only in all-project scope Jun 1, 2026
Copilot AI requested a review from niemyjski June 1, 2026 00:31
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.

Show Project Name column on dashboards

3 participants