Skip to content

Add "(Archived)" label to archived sites in site selectors #34496

@Neehakethi

Description

@Neehakethi

Problem Statement

Add visual distinction to indicate archived sites in site selectors. Currently, archived sites appear in content selectors (which is fine), but there's no visual cue to differentiate them from active sites, which can cause confusion for users.

Steps to Reproduce

  1. Archive a site in dotCMS
  2. Navigate to create a new persona (or any content type with site selection)
  3. Open the site selector dropdown
  4. Observe that archived sites appear in the list (no visual distinction)
  5. Select an archived site and save the content

Acceptance Criteria

-Add "(Archived)" in parentheses after the host name

  • Dropdown width should grow to accommodate the label
  • Truncate super long host names if needed to keep the "(Archived)" tag visible
  • Use text label (not icon) for accessibility and usability

dotCMS Version

latest evergreen

Severity

Low - Minor issue or cosmetic

Links

https://helpdesk.dotcms.com/a/tickets/35345

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions