ProfessionalWiki / ProfessionalWiki/Rules

Show error on UI when API save fails

Open
#43 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue
Dominant language
PHP
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Description

When updating Rules via the UI, there should be an error message if the API call fails:
https://github.com/ProfessionalWiki/Rules/blob/aa5f7f0305f1cc82c0d3faa2cb580f7f0a5a5c72/modules/ext.rules/composables/useRules.js#L69-L81

This can happen for various reasons, but as an example, if the user is logged out while editing:

https://github.com/user-attachments/assets/2c4d599f-1752-4a25-9904-1d536df36241

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Open modules/ext.rules/composables/useRules.js at lines 69-81 and trace the UI save request. Reproduce a failed API save, such as while logged out, then make sure the UI displays an error message and verify the normal save flow still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.