Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Use <optgroup>s instead of hyphens #2980

@ocket8888

Description

@ocket8888

A small enhancement to tenant drop-down selection lists in Traffic Portal would be to use the HTML5 <optgroup> tag to group tenants by their parents. I'd suggest making "root" its own parent.

Example.:

<label for="tenant">Select a tenant</label>
<select id="tenant">
    <optgroup label="root">
        <option>root</option>
        <option>tenantWithNoChildren</option>
        <option>tenentWithTwoChildren</option>
    </optgroup>
    <optgroup label="tenantWithTwoChildren">
        <option>Child1</option>
        <option>Child2</option>
    </optgroup>
</select>

Rendered (in Firefox 63):

optgroup

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Portal v1related to Traffic Portal version 1Traffic Portal v2Related to the experimental Traffic Portal version 2improvementThe functionality exists but it could be improved in some way.low difficultythe estimated level of effort to resolve this issue is lowlow impactaffects only a small portion of a CDN, and cannot itself break one

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions