userstyles.world icon indicating copy to clipboard operation
userstyles.world copied to clipboard

Archive styles

Open 1280px opened this issue 2 years ago • 2 comments

Describe the change you'd like An option to hide/archive the style, like on original UserStyles

Additional context Archiving the style:

  • Removes it from the public (including the search), making it only visible for creator (available in the separate category) and anyone who has the link (or has this style already installed)
  • Does NOT delete the style itself, and anyone who has a link can still access and download it at any time

Style gets automatically unarchived after any update.

The creator can also provide a timestamped note why the style was discontinued, which would be shown above the image.

1280px avatar Oct 27 '22 13:10 1280px

Sounds good to me. Should we also disable mirroring upon archival? I'm unsure if leaving it on would be a good idea.

vednoc avatar Oct 27 '22 13:10 vednoc

Naming "Archiving" sounds wrong here in comparison to other codesharing platforms, or as a term usage. Git platforms, for example, have Repository archiving, which marks them as Archived and makes them read-only. On USw, authors Archive their styles by adding "Unmaintained" to the style name, disabling sync, and optionally adding a discontinuation notice(s) somewhere.

I see what is intended in this feature request is more like Style exclusion from public access. I propose simplifying it to Style visibility, like Content visibility on other platforms, which will have these states:

  • public
  • unlisted: hidden from search. I don't see many use cases for it.
  • limited/restricted/private: by special sharing link and/or list of allowed users. I suggest a special link because otherwise it will be too easy to find all unlisted styles by brute forcing/enumerating their IDs. If the link is not generated or disabled and there's nobody on the access list, then the style is private.

It will not hurt to try to keep this system as simple as possible. We can start by implementing basic Style visibility and then adding additional control over limited mode.

astyled avatar May 18 '23 19:05 astyled