Professor and staff desktop app for the Accomplishment Report and Information System, built with Tauri, React, TypeScript, and Vite. The administrator website is maintained separately in Aris-Web.
npm install
npm run desktopCopy .env.example to .env to configure the data source. The default VITE_DATA_MODE=api connects to the ARIS server at http://localhost:3000. Set VITE_DATA_MODE=demo to use the seeded records and persist demo changes in local storage.
Desktop professor sign-in opens Google in the system browser. Add http://127.0.0.1:8765 as an authorized redirect URI for the Google OAuth client, then set the same client ID in VITE_GOOGLE_CLIENT_ID here and WEB_GOOGLE_CLIENT_ID in the ARIS server.
Create a desktop installer with npm run desktop:package.
| Role | Password | |
|---|---|---|
| Professor | professor@ucc.edu.ph |
Professor123 |
| Staff | staff@ucc.edu.ph |
Staff12345 |
Sign-in sends POST /auth/signin with { "email": "...", "password": "..." }. The server returns { "user": { "id": "...", "email": "...", "name": "...", "role": "admin" | "professor" | "staff" }, "token": "..." }; { "ok": true, "data": ... } envelopes are also accepted. The desktop maps the server's admin role to administrator. The bearer token and server cookie are attached to later requests.
Page resources are isolated in src/services/dataSource.ts and use these routes relative to VITE_API_BASE_URL:
| Resource | Method and path |
|---|---|
| Admin dashboard | GET /dashboard |
| Professors, staff, announcements | GET /professors, GET /staff, GET /announcements |
| Payroll, AI insights, performance | GET /payroll, GET /analytics/insights, GET /performance |
| Approvals, audit, system logs | GET /approvals, GET /audit, GET /system/logs |
| Database backups, checks, restores | GET /system/database/backups, /system/database/health-checks, /system/database/restore-logs |
| Curriculum, monitoring | GET /curriculum, GET /system/monitoring |
| System settings, preferences | GET/PUT /system/settings, GET/PUT /users/me/preferences |
| Professor dashboard, submissions, meetings | GET /professor/dashboard, /professor/submissions, /professor/submissions/latest, /professor/meeting-summaries |
| Support FAQs | GET /support/faqs |
| Create professor, staff, reminder, submission | POST /professors, /staff, /announcements, /professor/submissions |
Resource responses may be raw JSON or wrapped as { "ok": true, "data": ... }. Shared page UI components, including Card, StatCard, and StatGrid, live in src/components/ui.tsx. Administrator pages are under src/pages/Admin; professor pages are under src/pages/Professor.
npm run lint
npm run test
npm run build