Product documentationbeginner10 minutes

Add an action

Add a user-triggered action to a Jotsu application with validated input, server-side authorization, clear results, and useful error feedback.

Describe what starts the action, which records it may change, and the result users should see.

Add an Approve action to pending requests.

Only show it for pending requests. Require a reviewer note, set the status to approved,
record the approval time, and show a confirmation. Reject invalid transitions on the server.

Ask Codex to handle authorization, validation, persistence, and errors on the server. The interface must not be the only place enforcing the rule.

Verify one successful action and one invalid attempt. Confirm both outcomes appear in the dev logs.