An open API service indexing awesome lists of open source software.

https://github.com/0xadafang/smart_hub

All-in-one HR desktop app built with Rust, React & Tauri. Features an interactive dashboard, leave requests, HR indicators, sales tracking, training modules and a local AI assistant. Offline-first.
https://github.com/0xadafang/smart_hub

ai crud desktop from-scratch offline-capable postgresql react rust tailwindcss tauri tauri-app tauri-apps tauri-rust typescript ui

Last synced: about 2 months ago
JSON representation

All-in-one HR desktop app built with Rust, React & Tauri. Features an interactive dashboard, leave requests, HR indicators, sales tracking, training modules and a local AI assistant. Offline-first.

Awesome Lists containing this project

README

          

# 🧠 Smart Hub

**Smart Hub** is a modern, high-performance, and functional desktop application developed with **Tauri**, **TypeScript**, **Rust**, and **React**. It's designed to centralize HR management, sales, training, and customer support in an ergonomic and responsive environment.

> ⚠️ *Please note: The application is in French to reflect its localized context.*

> ⚠️ *This project contains only dummy data for demonstration purposes.
No real company information is included.*

---

## 🎨 Visual Overview

### 🌞 Light Theme
![Dashboard Light](./images/1.jpg)

### πŸŒ™ Dark Theme
![Dashboard Dark](./images/2.jpg)

---

## πŸš€ Key Features

### πŸ” Secure Authentication
- Login system with role management (admin / user).
- Automatic redirection to the appropriate dashboard after login.

### 🧭 Interactive Dashboard
- Personalized overview based on user role.
- Dynamic widgets: alerts, remaining vacation days, reminders, HR indicators to process.

### πŸ“Š HR Indicators
- Employee visualization and evaluation (1–10 rating scales).
- Role-based access restrictions.
- Dynamic filters for quick navigation.

### 🌴 Vacation Management
- Request and approval system.
- Remaining days counter.
- Synchronized interactive calendar.

### πŸ₯¦ Food Directory
- Quick access to a food product database.
- Detailed descriptions useful for customer calls.

### πŸ“ž Telesales
- Quick entry form with progress gauge.
- Detailed sales view per user.
- Statistics & unlockable achievements.
- Admin view: comparison, filters, PDF export.

### πŸŽ“ Training
- Interactive training modules (Acomba, orders, routes, calls, etc.).
- Integrated validation quizzes.
- Progress tracking visible to admins.

### πŸ‘€ Account Management
- User creation/modification (admin only).
- Dynamically assigned roles.

### πŸ‘₯ Role-Based Interface
- Personalized user interface.
- Admins have access to HR management, training, sales, account creation, etc.

### πŸ“† Events
- Add reminders to the integrated calendar.
- Clear visualization of scheduled events.

### βœ… Todo List
- Simple daily task management.
- Integrated into the dashboard.

### 🚨 Alert Widget
- Dynamic notifications based on context (sales to make, customers to call back, etc.).

### πŸ€– Local AI Assistant (offline)
- Embedded local chatbot (Rust - Concept: Regex, Intent, StaticWords, HashMap).
- Capable of answering business questions (remaining vacation days, product info, etc.).
- Intent intelligence with semantic recognition.

---

## πŸ”Œ Offline Mode

The application includes an **offline-first** system:
- Actions (e.g., vacation requests) are stored locally if the connection fails.
- Automatic synchronization as soon as the connection is restored.

---

## πŸ› οΈ Tech Stack

| Frontend | Backend / Software |
|-------------------|---------------------|
| TypeScript | Rust (Tauri) |
| React | SQLx + PostgreSQL |
| Tailwind CSS | |
| Framer Motion | |

---

## 🧠 Learning Objectives

This project allowed me to:

- Deepen my knowledge of Rust in a concrete application context.
- Create a modern design with React + Tailwind.
- Experiment with offline-first architectures.
- Integrate a local AI with intent logic.
- Manage a complete frontend + backend project.

---

## πŸ“Έ Credits & Acknowledgments

- πŸ’‘ Interface inspired by the [`tauri-ui`](https://github.com/agmmnn) project by [@agmmnn](https://github.com/agmmnn)
- 🎨 Color palette: **Marble** (`#F2F8DC`) & **Dark Blue** (`#0F172A`)
- πŸ–Ό Icons: [Lucide](https://lucide.dev/)
- πŸ“Š Charts: [Recharts](https://recharts.org/)

---

## πŸ’Ό Author

πŸ‘¨β€πŸ’» **0xAdafang - TΓ©rence**
πŸ“« [adafang@proton.me]
πŸ‡¨πŸ‡¦ Project completed in Montreal/Quebec as part of an end-of-studies internship. The application will be deployed and used by the company that hired me for this internship.

---

## πŸ“¦ Installation (dev mode)

```bash
git clone https://github.com/your-username/smart-hub
cd hn-smart-hub

psql -U postgres -c "CREATE DATABASE hn_smart_bdd_demo;"
psql -U postgres -d hn_smart_bdd_demo -f sql/hn_smart_bdd_demo.sql

⚠️ This project contains only dummy data for demonstration purposes.
No real company information is included.

create or modify .env file

DATABASE_URL=postgres://postgres:motdepasse@localhost:5432/hn_smart_bdd_demo (example)

npm install
npm run tauri dev

```