Kvrt
✦ ✦ ✦
Case study · Nº 03 · Education

Horas

Complementary activities, extension and internship in one place, with the course rules applied: students log what they did with the certificate, and the system adds it up, applies caps and minimums and shows what is left.

I · The problem

Three targets, rules spread over eleven documents.

To graduate in Information Systems at UTFPR Francisco Beltrão, a student needs 70 points of complementary activities, 300 hours of community extension and 450 hours of internship. The rules are scattered across resolutions, normative instructions and the course plan.

Who suffers · 1student

Students don’t know what’s left

Each certificate falls under an item with its own cap, each group has a 20-point minimum, and surplus in one group cannot cover another. Doing that maths by hand goes wrong.

Who suffers · 2faculty

Faculty get a pile

The faculty in charge (PRAC, PRAExt and PRAE) receive loose certificates and have to check the item, points, dates and whether the same paper was already used elsewhere.

Who suffers · 3course

The rules have gaps

Some repealed norms are still cited, and some questions no document answers. Everyone reads them differently.

Where it came from: it is my own course. I started by reading the norms and recording the source of every number (document, article and page). Anything without an official source went into a gaps file, marked as an assumption.

II · What I built

The regulations became a system.

A modular Laravel API and a React dashboard. It was the first system I built from scratch with Trilho, my kit of conventions for coding agents.

Track Apoints

Complementary activities

  • The course catalogue: 3 groups and 39 items, each with scoring variants and a cap
  • A scoreboard that applies item caps and group minimums and maximums, and shows wasted surplus
  • Submission package: a zip with one folder per group plus the PDF form
Tracks B and Chours

Extension and internship

  • Extension: courses with extension credit ticked by the student, plus flexible hours from certificates
  • Internship: company, supervisor, advisor, hours and documents with deadlines
  • Deadline alerts and a final grade of at least 6.0 for the mandatory internship
For everyonemodes

Self-managed or validated

  • With no faculty registered for the course, the student works alone and entries count as self-assessed
  • With faculty, the student submits and the professor approves, asks for changes or rejects with a reason
  • The scoreboard keeps official (validated) apart from projected
Underneathcare

Certificates and data

  • Private certificates with a SHA-256 hash, downloaded through a signed link that lasts 10 minutes
  • Each certificate has a single destination: activities, extension or internship
  • Privacy law (LGPD): terms at signup, export your data, delete your account
Fig. 1 · Public page: the three tracks on a clock, with the course numbers.
Fig. 2 · Student dashboard: the journey and what is left in each track. Demo data.
Fig. 3 · The same student as seen by the professor in charge. Demo data.
Fig. 4 · The professor’s validation queue, filtered by status. Demo data.
III · Architecture decisions

Course rules as data, not code.

The system starts with one course, but it is built so others can join without new code.

  1. Decision 01

    The regulations are course configuration

    Why

    Groups, items, caps, deadlines and internship parameters live in the database, with the source of each number. Every gap in the norms becomes a setting with a default and the notice “interpretation adopted; confirm with the coordinator”.

    The trade-off

    More settings screens and notices the student can see. In return, a new course is just data.

  2. Decision 02

    Students own their entries; validation is a stamp

    Why

    Students can use the system even when the course has no faculty registered. They edit and delete their own entries in any state.

    The trade-off

    Editing something already validated removes the stamp and sends the entry back to the professor’s queue.

  3. Decision 03

    Hashed certificates, single destination, short links

    Why

    The rules forbid using one certificate in two tracks. The SHA-256 hash spots duplicate files, a lock ties each certificate to one entry, and downloads go through a signed link that expires in 10 minutes.

    The trade-off

    Every download goes through the API to mint a new link. There is no permanent file URL.

  4. Decision 04

    The submission package is built in a queue

    Why

    Building the zip with per-group folders and the PDF is slow. The API answers 202 right away and a job builds the package.

    The trade-off

    A database-backed queue, no Redis, with the worker and scheduler as Docker Compose services.

  5. Decision 05

    Executable rules from the first commit

    Why

    Built on the modular template with Trilho: tested module boundaries, automatic per-course filtering, auditing through observers. An architecture test fails if a controller queries the database.

    The trade-off

    More structure before the first screen. The first version of the API and the dashboard still shipped in three days.

IV · What went wrong

Fix requests that became rules.

These came from my own review, looking at the running system. The most useful move was turning each fix into something that stops the bug from coming back.

Case 01interface

Modal tabs scrolled sideways

Symptom
In the detail modal and the step guide, the tabs grew a horizontal scrollbar, and on phones the last ones disappeared.
Cause
The tabs sat inside the scrolling area, and some styles used overflow: auto on tab selectors.
Fix
Tabs moved outside the scrolling area and wrap instead of scrolling. A script runs before every build and fails if a tab or guide has scrolling overflow. The rule also went into Trilho.

LessonA visual fix that relies on memory comes back. It became a build check.

Case 02notifications

Notices cluttered every screen

Symptom
Deadline alerts and reminders showed up everywhere and buried what mattered.
Cause
They were all on by default and had no category, so every screen showed everything.
Fix
Preferences under “My account”, all off by default. Each alert has a category and each screen filters its own.

LessonNotifications are opt-in. On by default turns into noise.

Case 03data

Orphan certificates

Symptom
Some uploaded certificates belonged to no entry, like a separate pile of files.
Cause
Uploading a file was a step apart from creating the entry, and nothing forced the two together.
Fix
A certificate now only exists inside an entry. Orphans are soft-deleted after 48 hours by a scheduled command.

LessonIf a record only makes sense next to another, the system should not let it exist alone.

Case 04identity

A train that made no sense

Symptom
The entry screen had a clock with a train and tracks. On review, the image told students nothing.
Cause
The metaphor was decoration: it showed neither the three tracks nor progress. In the same pass, the branding side of the login had poor contrast.
Fix
The clock stayed, with one arc per track (activities, extension, internship) and the real time drawn in CSS. The journey became plain bars. The login got light text on the teal background.

LessonAn illustration has to explain the product. If it needs a caption, replace it.

V · Numbers

What you can check.

Counts from the code, the test run and the documented rules. No student data.

115API tests, all passingPest · 1,099 assertions · run on Dec 2, 2026
9modules in the APIAPI CLAUDE.md
3daysfrom first commit to a live dashboardgit log · Nov 30 to Dec 2, 2026
39commits: 22 API, 17 dashboardgit log
11normative sources read and citeddocs/regras/README.md
39activity items in 3 groupsBSI-FB catalogue seed
10minlifetime of a certificate linkconfig/horas.php
48hbefore an orphan certificate is deletedconfig/horas.php

Horas is an independent, free project, not an official UTFPR system. The official record stays with the faculty in charge.