[go: nahoru, domu]

Page MenuHomePhabricator

Introduce a generic unsupported format error message within Citoid UI
Open, Needs TriagePublic

Description

This task involves the work of introducing a generic error message within Citoid that informs people that Citoid is NOT able to generate a citation for the content-type (e.g. PDF) they have entered.

For context, this task is meant to serve as an intermediate step between now and when:

  1. We have the ability to detect and log the specific content type someone is attempting to cite, and subsequently, show them a tailored error message in response. See T365583 for more context about the "now" state.
  2. We offer people a simpler/easier way for them to cite PDFS in way(s) that align with Wikipedia project policies/conventions. See T214038 and T368980.

Story

As someone who is attempting to use Citoid to generate a citation for the PDF I'm wanting to cite in the Wikipedia article I'm editing...

I need to...So that...
Know what content-types the tool I'm using (Citoid) does supportSo that I do not waste my time continuing to try to use the tool for a purpose it does not support
Know this tool (Citoid) does NOT support the content-type I'm trying to cite" "
How else I can generate a citation for the source I'm trying to citeSo that I can complete the edit I'm attempting to make
NOTE: the error message/user experience this ticket is describing needs to cohere with/compliment the experience T364595 implements.

Requirements

MockupCopy
image.png (197×220 px, 33 KB)
We couldn’t create a citation for you.<br>[[LINK NEEDED|Learn more]] about the formats we support
or create one manually below.

Event Timeline

We can do this now but not with the specified content-type, as we are returning 415 but not with a specific rejected content type.

So for now I would return something like "Unable to cite unsupported media types such as pdfs, image and movie files."

dchan renamed this task from Introduce a generic unsupported format error within Citoid to Introduce a generic unsupported format error within Citoid UI.Mon, Jul 22, 5:22 PM
dchan renamed this task from Introduce a generic unsupported format error within Citoid UI to Introduce a generic unsupported format error message within Citoid UI.

Proposal:
We would have the following message with the first sentence in bold red-error color token with the appropriate error icon, followed by the description in base-black color and a link to documentation on Citoid's supported formats.

We couldn’t create a citation for you.
Learn more about the formats we support
or create one manually below.

Mockup:

citoid-formats.png (1×1 px, 770 KB)

nayoub subscribed.
ppelberg updated the task description. (Show Details)
ppelberg updated the task description. (Show Details)