Page MenuHomePhabricator

Design behavior when importing an uncategorized file
Closed, ResolvedPublic

Description

We need to decide what to do when FileImporter is used to import an uncategorized file. Currently, the code will do nothing special, and will happily import the file.

Some behaviors we might want to adopt:

  1. Show a warning box on the preview page when importing, saying "Please consider adding categories after import".
  2. More humble warning stating the above, but without an infobox.
  3. Add a configurable snippet of wikitext to the file info during preview, and during actual import. This could default to empty, but would probably be set to {{subst:unc}} on commonswiki.
  4. Ask for confirmation when importing an uncategorized file, in an additional step.

If we want to replicate UploadWizard functionality, I believe it does (3) and (4).

Event Timeline

I see two problems here:

  • The file-info sections contain many templates making it hard to spot any additions, warnings etc. (one can always 1-up this with popups etc., but it is just escalating the problems)
  • category editing is is, according to experienced editors best done with special tools or gadgets rather than via manual addition in Wikitext. So we could say: "Your file lacks categories" but could not offer a good way to add them (except we want to invest in a upload-wizard-like GUI implementation)

One possibility I see is having a rather humble pointer to it:

image.png (133×722 px, 9 KB)

However, if the file has categories, they would also need to appear there. Currently, they don't:

image.png (83×635 px, 6 KB)

One possibility I see is having a rather humble pointer to it:

Thanks, I'll add that option to the task description.

However, if the file has categories, they would also need to appear there. Currently, they don't:

FYI, this functionality is pending merge of rEFLI0ac06a4da052.

After adding categories manually the warning/hint is still shown.

grafik.png (395×688 px, 16 KB)

The last bit of this should be fixed with T228992: Ask users to add a (non hidden) category, if there are only hidden ones. Closing since the design work is complete.