Skip to content

Improve copying asset URLs in devstack deployments #2463

@samuelallan72

Description

@samuelallan72

This issue was also raised at https://discuss.openedx.org/t/unable-to-copy-studio-or-web-url-in-frontend-app-authoring-teak-sumac-release/16980

Background: the web Clipboard API is only available in a secure context - ie. over https or served from localhost. For anything non-localhost domain served over http, the clipboard API is not available.

The trouble is that a standard Tutor devstack is served over http, from the local.openedx.io domain. This is fine for development, but the Clipboard API is not available.

Currently, frontend-app-authoring crashes in this case, where the Clipboard API is not available. It would be nice if it had a graceful fallback (eg. a notification that clipboard api is not available, or simply not displaying the "copy to clipboard" buttons).

Also it would be good if the full urls were shown somewhere; currently they are cut off with ellipsis, which currently makes it impossible to manually copy the url if the clipboard api is not available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions