kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Attendance tracking

Open rtibbles opened this issue 11 months ago • 2 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

[General guidance: When drafting a feature project, the goal is to create a reference for project scope and context. Write for our core product team. The issue should not be overly technical, and should be be comprehensible and a useful reference to devs, designers, and QA team, to build a shared source of understanding. Anyone at LE should be able to read this and more or less understand the project. If there is relevant information or context that is for the internal team only, please add that in a notion page and link it, rather than adding directly to these issues.]

Overview

Requirements

The requirements define the scope and success-criteria of the project. They should not be adjusted without logging decisions and notifying stakeholders.

What problem are we solving?

Currently within Kolibri, “attendance” tracking is entirely associated with activity on learner accounts. Whether LODs or a server-client setup, identifying what learns are attending class, and are active, at what times, requires the learner interacting with Kolibri on a device, while logged in.

For a variety of implementation models, this method of “deriving attendance from learner activity” is insufficient. Some examples or situations where this model does not work:

  • For group learning on a shared device where learners completing an activity together on the device at the same time. (This is different from the rotational model where learners may move from station to station and use the device individually.)
  • For the projector model, where there is a single device that the coach is using to share lesson resources

Another consideration is that in schools/programs where there are higher absence rates, it can be difficult to review the coach dashboard and notifications and properly understand the connections/impact between student absence and progress, if any, over time.

Why this? Why now?

  • A longstanding need that has been reported repeatedly over the years
  • Would help a variety of Kolibri implementation types
  • Good working relationship with Village Enterprise (who uses the projector model for vocational training) would allow us a potential user research/needs collaboration partner for feedback and validation on a shorter timeframe
  • Efficient attendance tracking from Coach login/device is one of the Key Results for the Strategic Pathway 2: Learning Partnerships

Framing questions

  • What would this experience/workflow be like if you are doing it for 1 user? for 10 users? for 50 users? for > 100 users?
  • How many ways does an administrator need to be able to do the thing?
  • What happens when you refresh the page?
  • What happens when there are (too) many things?
  • How do we handle errors?
  • Where do we redirect to and why?

Outcomes

Specific needs that are being addressed, and how we will know when the project is done

User workflows that will be supported:

  • A coach can take attendance for a “learning session”, given the existing Kolibri Class of learners, to indicate presence for the learning session
    • Class coaches can only take attendance and edit attendance for their own class. Facility Coaches and Admins can take attendance and edit attendance for any classes
    • attendance date defaults to “today” (and automatically updates for additional sessions on the same date, without extra work on the part of the coach)
      • For example, when the coach “takes attendance” on 1 Jan 2026, the “session” should be 1-Jan-2026 Session 1 (or something equivalent)
      • If the coach “takes attendance” a second time on 1 Jan 2026, the “session” should be 1-Jan-2026 Session 2 (or something equivalent)~~, without the~~
    • For now, the attendance UX should be as simple as possible, with as many “sensible defaults” as we can use, and make it possible for the coach to quickly take attendance. Our target is that for a class size of 30-40, attendance can be taken in less than 5 minutes, with the main aspect of time being taken being actually calling (or looking for)
      • Display full names (not user name) unless we hear otherwise from Village Enterprise
    • A coach or admin can edit attendance for a previous session after taking attendance, for the current date or previous dates.
      • Safeguards around this are TBD — perhaps starting with a confirmation modal prompt for any editing of previous dates and iterating from there
    • attendance should be easily to find, with minimal clicks “away” from where the coach would naturally be to start a class or lesson.
      • The option to take attendance should be in context, and with an easy “close out” and return to where the coach was, is important. Multiple entry points (such as on both the class landing page, and on the learners page) may be helpful
  • ~~A coach or admin can export attendance logs for a given date range, on a per class basis (multi-select) or for entire facility~~ (out of scope)
  • A coach can preview within the UI the recent attendance for a class for a narrower date range (note: having this just be “the last week” might not make sene in many Kolibri use cases, when Kolibri is not used daily. Perhaps we should have a “last X instances of Kolibri use” more than it strictly tied to a calendar)
  • on tablet+ screens, the “current week” should be shown with navigation back to previous weeks (or potentially a dropdown menu to skip further)
    • This should fit on the screen entirely with no need for horizontal scroll on tablet.
    • On mobile, we should JUST display the current day and the name
  • “Future attendance” should not be editable by anyone
  • Marcella to consult with Radina regarding semantic structuring if we are using a table-ish pattern and a11y considerations

Constraints

Budgets, deadlines, technical limitations, and other constraints

Design/Dev iterative timeline: Q1 focused team!

Out of scope

  • For the MVP, “group participation” as such will not be tracked in attendance. Attendance will only mean presence in the class.
    • for example: a shared device scenario, where learners are using Kolibri simultaneously. In the MVP we will not include a way to dynamically capture those groups within the attendance logs
  • Relatedly, multi-user accounts are not part of this work (although also important! but we need to do more user research first)
  • Learners able to view their own attendance via the Learn plugin
  • Learners are not able to mark their own attendance
  • Keyboard shortcuts for desktop users
  • Audit trail showing who edited attendance and when
  • Bulk selection operations

Context

Relevant background information including Notion opportunities, Google docs, clearinghouse entries, slack conversations, Github issues, or any other relevant background information

Clearinghouse document user stories

  • No in-app way to track attendance for a project-model Kolibri implementation

    Village Enterprise will be using Kolibri to deliver their training modules to a group of 30-35 entrepeneurs at a time, who will gather together over the course of a week and engage with materials via a projector model.

    Participants will not be individually logging into Koibri because it will be one device connected to a projector, but VE does want to track who is showing up to the training.

  • Separate attendance and progress tracking makes it challenging for coaches to evaluate the impact of learner absences on progress over time and distinguish real-time information in coach notifications and reports

    I wanted to explore if LE is planning to have Child attendance and Learning progress tracking on LE platform? Having this together can help us analyze application usage vs learning progress. i-Saksham, a hardware grantee

    From a very experienced Nalanda teacher:

    The coach made heavy use of real-time coach tools during class. Having absent students reflected in coach reports made it more difficult for her to accurately assess the progress of the in-class students.

  • Other LMS options have attendance tracking, and community members and potential users see this as a gap in Kolibri

    • listed by Jude Asogwa in a community outreach call done June 2025 with the design team
    • Similar request came up in [a call that Laura did with RMI Public Schools](https://www.notion.so/Intro-call-with-RMI-Public-School-Systems-0372f3f615d7438883d6bac7160482e0?pvs=21)
  • Not having a difference between “learner activity” and “learner attendance” can mean that learner attendance is not tracked when Kolibri is not used daily

Contributors

[Fill this out as people are assigned]

  • Technical lead: [github handle]
  • Individual contributors: [list all github handles]
  • Designer: [if a specific designer is leading]
  • Other relevant LE team members: [optional, i.e. imps point person]

Goals

  • Who is this feature for? Outline user stories below, but also mention if there is a specific partner and/or deployment
  • How do we know this feature is successful?

User Stories or Requirements

[Break down the main workflows thematically, but still at a high level. How are the goals of the project realized in the UI? If there isn't a UI portion of this project, what are the key outcomes or improvements? There should probably only be a few of these per project]

Target Quarter and Due date

Due 16th March

Target branch: release-v0.19.x

Product Stories

Description Screen(s)
A new section for Class Attendance is added to the Class home page. The section features a prominent "mark attendance" button. The section is first on the top left on browser, and first on the stacked grid on medium and small breakpoints. Image
When the coach clicks on the "mark attendance" button, it opens a new page for the current attendance session. At the top of the attendance taking view, an H1 includes the date and the time of the session. Coaches mark attendance in a table view with two columns: the learners full name and a KSwitch to indicate presence or absence. There are no visible headers in the UI, but there should be visibility-hidden headers, and the table should be semantically accurate as a table. The table should be paginated with 50 learners per page. The learners should be sorted alphabetically by the first letter of their full name. The default state of all KSwitch should be false. Image
When the KSwitch state is True, the row is annotated with "present" immediately to the left of the KSwitch, and has a primary_100 background color. The bottom bar displays the number of present and absent learners. Image
The attendance history provides a overview of previous sessions, which are links to open the page for the attendance from that session. Past sessions are editable. Image
On the attendance history page, a date range filter should be implemented with a KDropdown menu containing the following options: Past 7 days, past 30 days, past 365 days, custom. "Past 30 days" is the default. If a user selects custom, a KDateRange should open, allowing the user to make a custom selection. Image
When editing a session, the user is prompted with a KModal to confirm the changes for any edits Image
When marking all learners as present, the user is prompted with a KModal to confirm the changes for any edits Image
If the user navigates away from the page before choosing "Submit attendance" or "Cancel", the should be prompted with a KModal "Are you sure you want to leave this page?" with the options "Continue" or "Cancel"

rtibbles avatar Dec 18 '25 22:12 rtibbles

I think I have a plan: Add attendance tracking with Django models (AttendanceSession/AttendanceRecord), REST API with bulk submit, and coach plugin frontend (mark attendance page with KSwitch toggles, history page with date range filter, attendance block on class home page) using Composition API composables

rtibblesbot avatar Feb 11 '26 23:02 rtibblesbot

Successfully implemented and released in 0.19.3

akolson avatar Mar 24 '26 16:03 akolson