robius-event-action

Solid

CRITICAL: Use for Robius event and action patterns. Triggers on: custom action, MatchEvent, post_action, cx.widget_action, handle_actions, DefaultNone, widget action, event handling, 事件处理, 自���义动作

AI & Automation 40,440 stars 6528 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Robius Event and Action Patterns Skill Best practices for event handling and action patterns in Makepad applications based on Robrix and Moly codebases. **Source codebases:** - **Robrix**: Matrix chat client - MessageAction, RoomsListAction, AppStateAction - **Moly**: AI chat application - StoreAction, ChatAction, NavigationAction, Timer patterns ## When to Use Use this skill when: - Implementing custom actions in Makepad - Handling events in widgets - Centralizing action handling in App - Widget-to-widget communication - Keywords: makepad action, makepad event, widget action, handle_actions, cx.widget_action ## Custom Action Pattern ### Defining Domain-Specific Actions ```rust use makepad_widgets::*; /// Actions emitted by the Message widget #[derive(Clone, DefaultNone, Debug)] pub enum MessageAction { /// User wants to react to a message React { details: MessageDetails, reaction: String }, /// User wants to reply to a message Reply(MessageDetails), /// User wants to edit a message Edit(MessageDetails), /// User wants to delete a message Delete(MessageDetails), /// User requested to open context menu OpenContextMenu { details: MessageDetails, abs_pos: DVec2 }, /// Required default variant None, } /// Data associated with a message action #[derive(Clone, Debug)] pub struct MessageDetails { pub room_id: OwnedRoomId, pub event_id: OwnedEventId, pub content: String, pub sender_id: OwnedUserId, } ``` ### ...

Details

Author
sickn33
Repository
sickn33/antigravity-awesome-skills
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category