Skip to content

feat(playground): project selector with auto token loading #38

Description

@carlosatta

Feature Request

Proposed by @EdisAganovic in #36 (comment)

Description

In the playground, allow the user to select a project from a dropdown. Once selected, the corresponding API token should be loaded automatically in the background (without being visible), so the user can test immediately without manually copying and pasting the token.

Motivation

Currently the user has to:

  1. Go to the project settings to find/copy the token
  2. Paste it manually in the playground

This is especially cumbersome when running Routerly self-hosted over HTTP (Docker via IP), where the clipboard API is blocked.

Proposed UX

  • Add a project selector (dropdown) at the top of the playground
  • When a project is selected, its token is loaded silently in the request headers
  • The token value is not shown to the user in the UI

Status

Under discussion — needs evaluation before implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Fields

    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