As an avid news publisher, I want descriptive error messages, so that I can understand what went wrong

Open
#199 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript

Research direction

Start by tracing the news upload request through the backend response and the frontend toast handling; the issue does not name specific files or tests. Done means the backend error description reaches the frontend and the toast displays it, or reveals it when the user interacts with the toast.

Written by the indexing model from the issue text.

Description

suggestion
📝 Description

While publishing news today I noticed that it can be incredibly hard understanding what went wrong with a news upload, as of now, the page logs in portainer what went wrong, but for the graphical user it is annoying or impossible to access these messages, and quite frustrating figuring out why something fails.

The text given to the user right now is always something similar to "Something went wrong", and if inspecting the request, a cryptive text is sent from the backend ( in my case this: C83xQyOEPhn9Ysssr9rgS).

Displaying the error message to the user will make the application more user friendly, and decrease the number of questions digIT receives regarding "why do I get an error when posting this".

✅ Acceptance Criteria
  • Send the description of the error message to the frontend
  • Display the description in the toast, alternatively show the description when a user interacts with the toast
💡 Additional context

No response

Dominant language
TypeScript
Stars
6
Forks
5
Avg merge
3d 17h
Merged PRs (30d)
3

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cthit/chalmers.it

All issues in cthit/chalmers.it

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.