Skip to content

Migrate attendance to the IIIT Kottayam portal - #27

Open
Noelithub77 wants to merge 11 commits into
masterfrom
migrate-to-new-attendance-portal
Open

Migrate attendance to the IIIT Kottayam portal#27
Noelithub77 wants to merge 11 commits into
masterfrom
migrate-to-new-attendance-portal

Conversation

@Noelithub77

@Noelithub77 Noelithub77 commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Migrates attendance from Moodle scraping to the IIIT Kottayam attendance portal while keeping Moodle responsible for assignments, announcements, resources, faculty, and dashboard events.

Included

  • Separate typed Moodle and attendance authentication with SecureStore credentials/tokens.
  • Attendance portal refresh handling, stale-token recovery, response validation, and cached SQLite-backed state.
  • Existing LMS users without portal credentials see the attendance setup sheet immediately; SecureStore read failures also fail open to that setup UI.
  • Attendance notifications merged into the notices inbox with deduplication and seven-day retention.
  • Term-aware course/session linking, timetable inference, bunk calculations, and no visible DS-B4 fallback text.
  • Moodle course IDs remain separate from attendance course IDs so assignments and announcements continue to route through Moodle.
  • Version bumped to 1.3.16.

Validation

  • bun test
  • bunx tsc --noEmit
  • targeted ESLint
  • Android JS export
  • live attendance portal integration checks with secrets redacted
  • expo-doctor (18/18 checks)

Build note

This PR is open against master and has not been merged. The preview Android workflow was run from this branch, but its native CMake/autolinking step failed because several generated codegen directories were missing. The same failure reproduces on master, so it predates this PR and no APK or Play Store release was produced.

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 118 files, which is 18 over the limit of 100.

To get a review, narrow the scope:
• coderabbit review --committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d57fc785-45ce-4f5e-8eb4-72658435795a

📥 Commits

Reviewing files that changed from the base of the PR and between 8a58db9 and 6fdefa0.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (118)
  • .env.example
  • .github/workflows/android-preview-release.yml
  • .gitignore
  • AGENTS.md
  • CONTRIBUTING.md
  • README.md
  • app.config.ts
  • package.json
  • plan/attendance-portal-migration/file-structure.md
  • plan/attendance-portal-migration/summary.md
  • scripts/actions/configure-gradle-properties.sh
  • src/app/(tabs)/index.tsx
  • src/app/_layout.tsx
  • src/app/course/[courseid].tsx
  • src/app/faculty/[id].tsx
  • src/app/login.tsx
  • src/app/settings.tsx
  • src/background/dashboard-background.ts
  • src/background/wifix-background.ts
  • src/components/attendance/attendance-card.tsx
  • src/components/attendance/course-edit-modal.tsx
  • src/components/attendance/sub_tabs/courses-content.tsx
  • src/components/attendance/swipeable-attendance-slot.tsx
  • src/components/attendance/swipeable-bunk-item.tsx
  • src/components/attendance/unified-course-card.tsx
  • src/components/auth/attendance-setup-sheet.tsx
  • src/components/auth/login-credentials-step.tsx
  • src/components/auth/portal-challenge-step.tsx
  • src/components/dashboard/event-card.tsx
  • src/components/dashboard/notices-modal.tsx
  • src/components/dashboard/notification-inbox-controls.tsx
  • src/components/dashboard/notification-list-item.tsx
  • src/components/dashboard/popup/notice-popup.tsx
  • src/components/faculty/faculty-image-viewer.native.tsx
  • src/components/faculty/faculty-image-viewer.tsx
  • src/components/faculty/faculty-image-viewer.types.ts
  • src/components/faculty/faculty-image-viewer.web.tsx
  • src/components/settings/account-settings-section.tsx
  • src/components/settings/course-link-settings-section.tsx
  • src/components/settings/developer-settings-section.tsx
  • src/components/sync/app-sync-controller.tsx
  • src/data/popups.ts
  • src/screens/wifix-screen.tsx
  • src/scripts/test-timetable-logic.mjs
  • src/services/api.ts
  • src/services/archive/moodle-attendance.ts
  • src/services/assignment.ts
  • src/services/attendance/attendance-api.ts
  • src/services/attendance/attendance-schemas.ts
  • src/services/attendance/attendance-sync.ts
  • src/services/attendance/course-matcher.ts
  • src/services/attendance/portal-notification-sync.ts
  • src/services/auth/attendance-auth.ts
  • src/services/auth/lms-auth.ts
  • src/services/auth/login.ts
  • src/services/auth/secure-auth-storage.ts
  • src/services/cookie-store.ts
  • src/services/dashboard-notifications.ts
  • src/services/dashboard-sync.ts
  • src/services/feedback-autofill.ts
  • src/services/lms-courses.ts
  • src/services/lms-download.ts
  • src/services/sync/app-sync.ts
  • src/stores/academic-calendar-store.ts
  • src/stores/assignment-store.ts
  • src/stores/attendance-store.ts
  • src/stores/auth-store.ts
  • src/stores/bunk-store-helpers.ts
  • src/stores/bunk-store.ts
  • src/stores/course-link-store.ts
  • src/stores/dashboard-store.ts
  • src/stores/faculty-store.ts
  • src/stores/feedback-autofill-store.ts
  • src/stores/gpa-store.ts
  • src/stores/lms-resources-store.ts
  • src/stores/popup-store.ts
  • src/stores/portal-notification-store.ts
  • src/stores/settings-store.ts
  • src/stores/storage.ts
  • src/stores/timetable-store-helpers.ts
  • src/stores/timetable-store-types.ts
  • src/stores/timetable-store.ts
  • src/stores/wifix-log-store.ts
  • src/stores/wifix-store.ts
  • src/types/attendance-portal.ts
  • src/types/attendance.ts
  • src/types/auth.ts
  • src/types/bunk.ts
  • src/types/common.ts
  • src/types/course-link.ts
  • src/types/index.ts
  • src/types/notification.ts
  • src/utils/course-name.ts
  • src/utils/debug.ts
  • src/utils/notification-inbox.ts
  • src/utils/notifications.ts
  • src/utils/semester-course-filter.ts
  • src/utils/timetable-inference.ts
  • tests/e2e/lms/debug-courses-playwright.ts
  • tests/e2e/lms/inspect-feedback-page-playwright.ts
  • tests/e2e/lms/test-assignment-opened-playwright.ts
  • tests/e2e/lms/test-feedback-autofill-playwright.ts
  • tests/helpers/attendance-session.ts
  • tests/helpers/lms-session.ts
  • tests/integration/attendance-portal/test-attendance-portal.ts
  • tests/integration/lms/test-assignment-scraper.ts
  • tests/integration/lms/test-assignment-submit.ts
  • tests/integration/lms/test-dashboard.ts
  • tests/integration/lms/test-lms-download.ts
  • tests/integration/lms/test-resources-scraper.ts
  • tests/integration/lms/test-scraper.ts
  • tests/integration/lms/timeline-response.json
  • tests/unit/services/attendance/attendance-schemas.test.ts
  • tests/unit/services/attendance/course-matcher.test.ts
  • tests/unit/utils/course-name.test.ts
  • tests/unit/utils/semester-course-filter.test.ts
  • tests/unit/utils/timetable-inference.test.ts
  • tsconfig.json

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Noelithub77 Noelithub77 changed the title Attendance portal startup and timetable fixes Migrate attendance to the IIIT Kottayam portal Aug 1, 2026
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.

1 participant