Skip to content

Faq m#4

Open
osctoss wants to merge 67 commits into
abhi03241:mainfrom
osctoss:FAQ-m
Open

Faq m#4
osctoss wants to merge 67 commits into
abhi03241:mainfrom
osctoss:FAQ-m

Conversation

@osctoss
Copy link
Copy Markdown
Contributor

@osctoss osctoss commented May 30, 2026

No description provided.

osctoss and others added 27 commits May 29, 2026 16:33
…tivity feed

Chunk 7 — User management:
- UserProfilePage at /users/:id (name, username, email, role, QP, join date)
- UserListPage: confirm dialogs on restrict/role-change; usernames link to profile

Chunk 8 — Search & discovery:
- GlobalSearch overlay: press '/' to search FAQs + RTQs in real-time
- RTQPage: category dropdown filter wired to /api/rtq?category=
- FAQPage: sort dropdown (Most Upvoted / Newest / Oldest) wired to server

Chunk 9 — QP wire-up:
- Nav: live QP badge with scale+color animation on QP change
- QPContext: awardQP/deductQP now sync with server (optimistic + re-fetch)
- ProfilePage: paginated QP history (20/page with Prev/Next controls)
- qp.controller: getHistory returns { data, pagination } with page+limit params

Chunk 10 — Dashboard activity feed + charts:
- server/src/routes/dashboard.routes.js: new GET /dashboard/activity endpoint
  Returns 20 most-recent RTQs/FAQs/Users/QP transactions + 7-day per-day counts
- MiniChart.jsx: SVG sparkline component (height-scaled bars per day)
- SeniorDashboard: 7-day sparklines for RTQ/FAQ/Users + activity feed panel
- StudentDashboard: same sparklines + activity feed

Also: CONTEXT.md updated (chunks 7-10 table, port 3001, new files)
…ies, fix sortDir parsing, fix dashboard status aggregation conflict
feat: integrate Sentence Transformer + Qdrant Cloud ANN, PippaQ premium branding, and auto-upvote engine
Implement role constraints on RTQ and remove redundant notification cards
Few upgrades regarding the categories and Upvote functionalitites
…ntrollers, data models, and frontend pages for tracking and managing questions
abhi03241 and others added 30 commits June 2, 2026 20:49
…l, duplicate prevention, and bidirectional traceability references
…ard hover shadows, and premium rounded mark-as-read check buttons
…FAQ conversion requests

- Rename UserListPage to Leaderboard with card-based rank display (Crown/Trophy for top 3)
- Add block/unblock functionality for admin user management
- Remove email change from profile edit (read-only after registration)
- Add FAQ conversion request flow with approve/reject actions
- Role status badges in dashboards, role guard component
- Various UX improvements and bug fixes
Implement Controlled "Add to FAQ" Review Flow & Senior Personal History
…derator request conversion and Senior controlled Add to FAQ flows
…s, shift FAQ requests to FAQ page, fix service type errors, and enable Qdrant indexing on approve
feat: Implement controlled Senior FAQ workflow, dynamic dashboard badges, and moderator operations alignment
…m rules

Public FAQ Mode:
- FAQ page accessible without login (read-only for guests)
- Login modal shown when non-auth users try to upvote
- Browse FAQ links on login/signup pages
- FAQ list/category/ranked endpoints made public on backend

QP System:
- 100 starting QP awarded on first account activation
- QP < 50 auto-restricts user from asking questions
- QP back above 50 auto-unrestricts with notification
- Student reaching 500 QP notifies admins for Moderator promotion
- Seniors excluded from promotion flow
- Negative QP still auto-restricts (separate notification)

QP History Page:
- New dedicated /qp-history page with transaction ledger
- Summary cards: Total Earned, Total Deducted, Net Change
- Fully paginated, immutable (no edit/delete)
- QP score in Nav is clickable → navigates to QP history
- QP history nav link added

Notifications:
- Delete individual notifications (Trash2 icon on read notifications)
- Delete all notifications option
- QP earned/deducted notifications stored in QP history
- New notification types: qp_earned, qp_deducted, promotion_request

Dashboard UX:
- Trending FAQs and Open Questions redesigned with category badges
- Activity charts moved below FAQ/RTQ sections
- Open questions use indigo hue for unread items
- Amber pulse indicator for unread notifications

Cleanup:
- Removed QP history from ProfilePage
- Replaced emojis with Lucide icons (AlertTriangle, Star, Search)
- Rejected RTQs no longer show status change options
…t fixes, QP ledger, and nav/route adjustments
…, role QP rules, and map branding header link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants