AOSSIE-Org / AOSSIE-Org/InPactAI

[UX/ENHANCEMENT] : Implement Centralized Loading States and Empty State Components

未關閉
#269 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
102
分支
144
PR 合併指標
30 天內沒有已合併 PR

描述

## Overview
As InPactAI scales, many of our features (Dashboard analytics, AI insights, and Sponsorship feeds) rely on asynchronous data fetching. Currently, the application lacks a consistent strategy for handling "Empty" or "Loading" states, often leading to blank screens or sudden layout shifts (CLSR).

## Proposed Solution
I propose creating two reusable UI components to standardize the user experience across the platform:

1. **Skeleton Loader System:** Instead of blank screens or simple spinners, implement CSS-based skeleton pulses that mirror the layout of the incoming data.
2. **Empty State Component:** A standardized component that handles scenarios where no data is found, including:
- An illustrative icon.
- A clear "Why" (e.g., "You haven't applied for any sponsorships yet").
- A Call to Action (CTA) button to guide the user's next step.

## Areas to Update
- **Creator Dashboard:** Analytics cards.
- **Sponsorship Feed:** List views.
- **AI Insights:** Text generation containers.

## Visual Example (Mental Model)
- **Loading:** Pulsing gray blocks mimicking the card structure.
- **Empty:** "No Sponsorships Found" + [Find Sponsorships] button.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。