How mal-xa/result_downloader works
The repository combines a results-downloader app with student-data administration. Its main workflow is to enter an individual or batch of student identifiers, invoke native Android result actions, preview the returned HTML, and save or export results. The app also retains recent searches and saved results, and provides Excel-based student-data management. Some native and Python implementation details are unsampled, so their internal connections are omitted rather than inferred.
Main entry points: App.tsx App routes · Index.tsx Search and batch · PreviewCard.tsx Result preview · DataManagerPage.tsx Data manager
Components 23
App and navigation
- App routes
src/App.tsx - Recent-search page
src/pages/RecentSearches.tsx - Saved-results pages
src/pages/SavedResults.tsx - Saved-result detail
src/pages/SavedResultDetail.tsx
Result workflow
- Search and batch
src/pages/Index.tsx - Result preview
src/components/PreviewCard.tsx - Preview formatting
src/lib/previewHtml.ts - Export actions
src/components/ExportCard.tsx - Recent searches
src/hooks/useRecentSearches.ts - Saved results
src/hooks/useSavedResults.ts
Android and Python
- Result bridge
src/lib/resultBridge.ts - Android bridge plugin
android/app/src/main/java/com/result/downloader/ResultBridgePlugin.java - Native preview
android/app/src/main/java/com/result/downloader/NativePreviewActivity.java - MBSE fetcher
android/app/src/main/python/mbse_fetcher.py - Result extraction
android/app/src/main/python/extract.py - Python downloader
result.py - Android activity
android/app/src/main/java/com/result/downloader/MainActivity.java
Student administration
- Admin panel
src/pages/AdminPanelPage.tsx - Data manager
src/pages/DataManagerPage.tsx - Excel parser
src/utils/excelParser.ts - Student list
src/pages/StudentListPage.tsx - Student dataset store
src/utils/storage.ts
Other components
- App user
Connections 24
- App user → App routes: opens
src/App.tsx - App routes → Search and batch: routes to
src/App.tsx - App routes → Recent-search page: routes to
src/App.tsx - App routes → Saved-results pages: routes to
src/App.tsx - App routes → Saved-result detail: routes to
src/App.tsx - App routes → Admin panel: routes to
src/App.tsx - App routes → Data manager: routes to
src/App.tsx - App routes → Student list: routes to
src/App.tsx - Search and batch → Result bridge: invokes
src/pages/Index.tsx - Search and batch → Result preview: renders
src/pages/Index.tsx - Result preview → Preview formatting: formats
src/components/PreviewCard.tsx - Result preview → Native preview: opens
- Search and batch → Export actions: renders
src/pages/Index.tsx - Search and batch → Recent searches: uses
src/pages/Index.tsx - Search and batch → Saved results: uses
src/pages/Index.tsx - Recent-search page → Recent searches: uses
src/pages/RecentSearches.tsx - Saved-results pages → Saved results: uses
src/pages/SavedResults.tsx - Saved-result detail → Saved results: uses
src/pages/SavedResultDetail.tsx - Android activity → Android bridge plugin: registers
android/app/src/main/java/com/result/downloader/MainActivity.java - Result bridge → Android bridge plugin: dispatches
- Data manager → Excel parser: parses
src/pages/DataManagerPage.tsx - Data manager → Student dataset store: loads and saves
src/pages/DataManagerPage.tsx - Student list → Student dataset store: reads
src/pages/StudentListPage.tsx - App user → Python downloader: may run