Skip to content

[Feature Request]: ENABLED_SERVICES allow restricting individual note types (text/password/code/sshkey) #71

Description

@CallMeLeon167

SkySend Version

v2.12.0

Instance Type

Self-hosted instance

Component

Web UI

Bug Description

ENABLED_SERVICES is documented as controlling which services are active ("Set to file for file sharing only, note for notes only, or file,note for both"). I expected this to also let me restrict which note sub-types (Text, Password, Code, SSH Key) are offered in the upload UI — specifically, I only want to offer "File" and "Text", without the Password/Code/SSH Key tabs.

In practice, with ENABLED_SERVICES=file,note the web UI still shows all four note sub-types (Text, Password, Code, SSH Key). Looking at the source code, this is by design: in apps/web/src/pages/Upload.tsx the available tabs are hard-coded:

const availableTabs: Tab[] = [
  ...(fileEnabled ? ["file" as const] : []),
  ...(noteEnabled ? (["text", "password", "code", "sshkey"] as const) : []),
];

Steps to Reproduce

  1. Self-host SkySend with ENABLED_SERVICES=file,note
  2. Open the web UI
  3. In the upload section, besides "File", all four note tabs are visible: Text, Password, Code, SSH Key
  4. Expected a way to enable only specific note types (e.g. only Text)

Expected Behavior

Setting ENABLED_SERVICES (or a similar config option) should make the corresponding tabs disappear from the upload UI.

Logs / Error Output

-

Screenshots

Environment

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions