Starred items > Determine title + icon based on item type

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Requirements

  • The icon and title of starred items should reflect the underlying record whenever possible
  • They should change dynamically to reflect the latest state of the record
    • For example, if an issue title is updated, the starred item should show the most recent title
  • The first iteration should only cover the MVC mappings listed below. We can prioritize additional mappings based on usage data.

MVC mappings

Item type Icon Title
Issue work-item-issue The title of the issue
Merge request merge-request The title of the MR
Project project The name of the project
Group group The name of the group
Issue board work-item-issue The name of the saved board view
Anything else link The page title of the bookmarked link

Dev note (@thutterer)

This is not the first time that we want/have a mapping like this ☝️ We do already map issues, epics and MRs to icons in the "Recently viewed" widget, and we do something similar for the target_types of Todos. And I bet we are not the only team doing this... we should aim for a shared solution longterm.

Designs

See the complete (long-term) icon mapping table in figma

Edited by Thomas Hutterer