How snorose/snorose-front-admin works
Snowrose Admin is an operations console for the Snowrose community. Staff sign in, enter protected management pages, and complete domain workflows for members, posts and comments, points, exam reviews, inquiries/reports, alerts, and site operations. Pages coordinate domain components and hooks; API modules provide the server-facing boundary, while shared authentication, routing, and UI support those workflows. The README documents the product capabilities and source structure; sampled code confirms routing, comment actions, bulk point adjustment, and exam-review coordination. Other domain-level links reflect documented capabilities, not inspected call sites.
Main entry points: App.tsx Protected app routes · useCommentTableState.ts Comment moderation · ExamReviewPage.tsx Exam review workflow · AuthProvider.tsx Auth session
Components 20
App shell
- Protected app routes
src/App.tsx - Auth session
src/shared/contexts/AuthProvider.tsx - Shared admin shell
src/shared/components/AppSidebar.tsx - HTTP client
src/shared/axios/instance.ts - Token storage and refresh
src/shared/utils/token-manager.ts
Community moderation
- Comment moderation
src/domains/Comments/hooks/useCommentTableState.ts - Post management
src/domains/Posts/hooks/usePostTableState.ts - Inquiry and report handling
src/domains/InquiryReport
Member operations
- Member directory and detail
src/domains/MemberInfo/hooks/useMemberDetailState.ts - Member penalties
src/domains/MemberInfo/components/MemberPenaltyHistoryDialog.tsx
Points and reviews
- Point administration
src/pages/points/AdjustAllMemberPointPage.tsx - Points API
src/apis/points.ts - Exam review workflow
src/pages/reviews/ExamReviewPage.tsx - Review detail interface
src/domains/Reviews/components/ExamReviewDetailInfoSection.tsx - Reviews API
src/apis/reviews.ts
Operations and support
- Push notifications
src/pages/alerts/PushNotificationPage.tsx - Popup and maintenance
src/domains/Operation/components/MaintenanceScheduleForm.tsx - Inquiry API
src/apis/inquiries.ts
Other components
- Admin staff
- Snowrose service API
Connections 23
- Admin staff → Protected app routes: uses
README.md - Protected app routes → Auth session: provides session
src/App.tsx - Protected app routes → Shared admin shell: renders protected routes
src/App.tsx - Protected app routes → Comment moderation: routes to
src/App.tsx - Protected app routes → Post management: routes to
src/App.tsx - Protected app routes → Inquiry and report handling: routes to
src/App.tsx - Protected app routes → Member directory and detail: routes to
src/App.tsx - Protected app routes → Point administration: routes to
src/App.tsx - Protected app routes → Exam review workflow: routes to
src/App.tsx - Protected app routes → Push notifications: routes to
src/App.tsx - Protected app routes → Popup and maintenance: routes to
src/App.tsx - Comment moderation → Inquiry API: calls comment APIs
- Point administration → Points API: submits adjustment
src/pages/points/AdjustAllMemberPointPage.tsx - Exam review workflow → Review detail interface: renders details
src/pages/reviews/ExamReviewPage.tsx - Exam review workflow → Reviews API: loads review data
src/pages/reviews/ExamReviewPage.tsx - Auth session → Token storage and refresh: uses token storage
- HTTP client → Token storage and refresh: refreshes credentials
- Points API → Snowrose service API: sends requests
- Reviews API → Snowrose service API: sends requests
- Inquiry API → Snowrose service API: sends requests
- Post management → Snowrose service API: manages content
- Comment moderation → Snowrose service API: moderates comments
- Member directory and detail → Member penalties: supports penalty review