Ivy-Interactive / Ivy-Interactive/Rusty-Framework

[Hooks] Implement Layout, Routing, and Session Lifecycle Hooks (use_breakpoint, use_navigation_beacon, use_refresh_token, use_webhook)

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Problem Statement

Rusty-Framework is missing four key reactive hooks present in Ivy-Framework:

  1. use_breakpoint (responsive viewport breakpoint listener)
  2. use_navigation_beacon (view navigation history and routing state tracking)
  3. use_refresh_token (silent background authentication token renewal)
  4. use_webhook (listening to server push event webhooks)

Proposed Architecture & Design

  • Implement use_breakpoint evaluating viewport width breakpoints (sm, md, lg, xl, 2xl).
  • Implement use_navigation_beacon tracking route changes, referrers, and view history state.
  • Implement use_refresh_token with background timer for renewing JWT sessions before expiration.
  • Implement use_webhook listening to server-sent event push channels.

Acceptance Criteria

  • use_breakpoint reactively updates when window or container dimensions change.
  • use_navigation_beacon records route state history accurately.
  • use_refresh_token fires silent renewal requests before token expiry.
  • use_webhook receives push event payloads from rusty-server.

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

No files, tests, or entry points are named. Start by comparing the corresponding hooks in Ivy-Framework and tracing how rusty-server exposes push events and token renewal. Done means all four hooks satisfy their listed acceptance criteria, including reactive updates, route history, pre-expiry renewal, and webhook payload delivery.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, authentication, full-stack
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.