salvo-flash

Set and display one-time flash messages across Salvo redirects.

1|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/tdcare/genies --skill salvo-flash
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: salvo-flash
Source: https://github.com/tdcare/genies/tree/main/.qoder/skills/salvo-flash
Command: npx skills add https://github.com/tdcare/genies --skill salvo-flash

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Salvo flash messages skill provides a straightforward mechanism to display one-time feedback to users across redirects in Salvo applications, avoiding repeated messages and improving UX.

Core Features & Use Cases

  • Writes outgoing flash messages to be shown on the next page.
  • Reads incoming flash messages to render user-visible feedback.
  • Use cases include success/failure notices after form submissions, and confirmations following redirects.

Quick Start

Start by creating routes that set a flash message and redirect to a page that displays it.

Frequently Asked Questions about salvo-flash

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I show one-time flash messages after a redirect in Salvo?▼

Flash messages in Salvo are displayed by writing outgoing feedback before a redirect and reading incoming messages on the next page. This mechanism ensures one-time notices prevent repeated messages and improve user experience.

What's the best way to display success or failure notices in a Rust web app after form submissions?▼

Display success or failure notices by integrating flash messages into your Salvo application flow. The skill sets post-action feedback and renders it on the redirected page, satisfying common form submission confirmation requirements.

Can I use CookieStore or SessionStore backends for flash messages in Salvo?▼

Yes, flash messages in Salvo support both CookieStore and SessionStore backends. The integration works within Salvo's Depot and Redirect utilities to persist feedback data across the redirect request-response cycle.

How does the flash message mechanism work across redirects in Rust web frameworks?▼

The flash message mechanism stores feedback data in a session or cookie store during the outgoing redirect response. The subsequent incoming request reads and clears this one-time message, ensuring it displays only once to the user.

Does this Salvo flash messaging skill work without external dependencies?▼

Yes, the Salvo flash messaging skill operates without external dependencies. It integrates directly with Salvo's Depot and Redirect utilities to manage one-time message storage and retrieval across request boundaries.