Glosarium, konsol webinar, dan satu halaman publik per webinar #1

Closed
cola wants to merge 0 commits from glosarium into master
Owner

35 commit dari dua hari kerja (12–13 September), 161 berkas, +17.073/−1.610.
Cabang ini tidak ketinggalan dari master — merge-nya fast-forward.

Isinya

Glosarium — register istilah peserta yang bisa dibaca tanpa akun, bukan
sekadar daftar definisi. Penjelasannya ditulis di editor rich text dan boleh
memuat gambar. (migrasi 031–034)

Materi bacaan — materi pelatihan bisa ditulis sebagai artikel di dalam
SINAU, jadi tidak setiap bacaan harus jadi PDF yang diunggah. (migrasi 035)

Konsol webinar — penyelenggara dapat halaman sendiri, bukan satu halaman
panjang yang digulir. Formulir entri dipecah per bagian dan jendela
pelaksanaannya diturunkan dari sesi-sesinya, bukan diketik ulang. Sesi bisa
dihapus selama belum dimulai dan bisa diselesaikan lebih awal. Tanya jawab
punya moderasi. (migrasi 036)

Sertifikat dan evaluasi — sertifikat terbit otomatis. Syarat sertifikat
webinar hanya satu: mengisi kuesioner. Kuesionernya satu per webinar, terbuka
saat sesi terakhir berakhir dan menutup satu jam kemudian — jendela sempit itu
yang membuat pengisiannya jadi bukti kehadiran.

Merek dan halaman publik — logo dan nama Ruang Sinau terpasang. Sebuah
webinar sekarang punya satu halaman publik, /webinar/:id; /trainings/:id
mengalihkan ke sana. Tampilan ponsel peserta memakai bottom tab bar berlabel
sesuai docs/frontend/participant-flow.md.

Sebelum deploy

Ada 6 migrasi baru (031–036). Jalankan make migrate-up sebelum binary
baru naik — kalau tidak, internal/glossary dan internal/qna akan query
tabel yang belum ada.

Verifikasi

go test ./..., make check-layout, 104 test frontend, eslint, dan
tsc --noEmit semuanya lolos di commit teratas. gofmt -l masih menyebut 6
berkas, tapi keenamnya sudah begitu sebelum cabang ini dan tidak disentuh di
sini.

🤖 Generated with Claude Code

35 commit dari dua hari kerja (12–13 September), 161 berkas, +17.073/−1.610. Cabang ini **tidak ketinggalan** dari `master` — merge-nya fast-forward. ## Isinya **Glosarium** — register istilah peserta yang bisa dibaca tanpa akun, bukan sekadar daftar definisi. Penjelasannya ditulis di editor rich text dan boleh memuat gambar. (migrasi 031–034) **Materi bacaan** — materi pelatihan bisa ditulis sebagai artikel di dalam SINAU, jadi tidak setiap bacaan harus jadi PDF yang diunggah. (migrasi 035) **Konsol webinar** — penyelenggara dapat halaman sendiri, bukan satu halaman panjang yang digulir. Formulir entri dipecah per bagian dan jendela pelaksanaannya diturunkan dari sesi-sesinya, bukan diketik ulang. Sesi bisa dihapus selama belum dimulai dan bisa diselesaikan lebih awal. Tanya jawab punya moderasi. (migrasi 036) **Sertifikat dan evaluasi** — sertifikat terbit otomatis. Syarat sertifikat webinar hanya satu: mengisi kuesioner. Kuesionernya satu per webinar, terbuka saat sesi terakhir berakhir dan menutup satu jam kemudian — jendela sempit itu yang membuat pengisiannya jadi bukti kehadiran. **Merek dan halaman publik** — logo dan nama Ruang Sinau terpasang. Sebuah webinar sekarang punya satu halaman publik, `/webinar/:id`; `/trainings/:id` mengalihkan ke sana. Tampilan ponsel peserta memakai bottom tab bar berlabel sesuai `docs/frontend/participant-flow.md`. ## Sebelum deploy Ada **6 migrasi baru** (031–036). Jalankan `make migrate-up` sebelum binary baru naik — kalau tidak, `internal/glossary` dan `internal/qna` akan query tabel yang belum ada. ## Verifikasi `go test ./...`, `make check-layout`, 104 test frontend, eslint, dan `tsc --noEmit` semuanya lolos di commit teratas. `gofmt -l` masih menyebut 6 berkas, tapi keenamnya sudah begitu sebelum cabang ini dan tidak disentuh di sini. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cola added 35 commits 2026-09-13 14:17:16 +07:00
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Kepegawaian vocabulary turns over, so an entry now carries where it came
from, whether it is still in force, and who last checked it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Tiptap for the writing, and the ProseMirror document for the storage: the
public page renders it by walking the document rather than by trusting a
sanitiser, so no HTML string ever reaches a visitor's browser.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Uploaded to SINAU and served by id, so the document stores a path shape the
renderer can check rather than a URL it has to trust.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A PDF and an article are one type, the way an uploaded video and a YouTube
one are: same table, same place in a module, same completion. Only the source
of the words differs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Reports by default, spares recent uploads, and refuses outright when it
recognises no reference at all — the state a renamed route would put it in,
where it would otherwise call the whole store garbage.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The questionnaire cannot open before the session because it stands in for the
attendance register; the Q&A has no opening time because an early question is
the only kind the organiser can prepare for. Neither was written down, and the
missing lower bound reads as an oversight until it is.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Five tabs over the domains that already own the data, plus a pre-publication
checklist for the two rules the server could only state as a 400: a webinar
with no session, and a session outside its execution window.

Adds Q&A moderation, a meeting link that opens fifteen minutes before the
session, roster import by email or NIP, duplication, and a questionnaire
builder that says it is frozen before a save finds out.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A manager's page drops what the participant's leads with — what the entry
promises and how to earn its certificate — for a status header, the checklist,
and Rincian. The schedule is stated once, in the meta line, so the detail card
no longer repeats it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Both block publication when empty, and Rincian is where somebody looks to
check them — a row that simply disappears sends them hunting through the edit
form for something the checklist already knows.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A questionnaire is read as an ordered list, and four open editors hide that
order behind their own fields. One row expands at a time; the collapsed row
states what it asks, what kind it is, and whether it is required.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Fields first in two columns, the row's own controls at its foot behind a
rule. They sat between the question and its settings, which put three buttons
in the middle of a form and broke the reading order in half.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Peserta mendaftar sendiri, so an admin-side import is a second enrolment path
with different rules from the one the rest of SINAU enforces. The tab now
shows who registered, and sends a pending one to /enrollments where every
training is decided the same way.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Swept up when the first tab layout's CSS was removed wholesale, leaving the
banner as three stacked fragments with its button dropped mid-sentence.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
On a webinar three weeks out the locked card was the only thing on the page,
so the entry read as consisting of one shut box. "Q&A" was the one English
abbreviation left on a screen whose every other label is Indonesian.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The rail's learner branch was written for pelatihan only, so somebody enrolled
in a webinar fell through to the register button and was told they had already
registered when they pressed it. They now see what is left — attend, evaluate,
certificate — and the one action that is theirs.

The questionnaire also opens when the session ends rather than when it starts:
you rate a session you sat through. The two windows now meet rather than
overlap — before it you may ask, after it you may rate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
certificate.Generate refuses a participant and nothing calls it when an
enrolment completes, so "otomatis setelah kuesioner" promised something this
product does not do — and the participant who finished everything was left
looking at a dead end.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Completion earns the certificate, so completion issues it — for every kind of
entry. The manual path stays as the way to retry a render that failed.

A session marked completed counts as ended from that moment for both windows,
so a sesi booked for ninety minutes and done in sixty closes the floor and
opens the questionnaire with one action.

Also: the checklist states what is missing rather than what would be there;
the published entry shows its state of play instead of a spent checklist; the
breadcrumb moves into the shell toolbar for every page; and months are
abbreviated.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Eleven flat items is a list to be searched rather than a menu to be read. The
headings name what the items under them are about, so a new one has an obvious
home instead of the bottom.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The publish button looked ready beside a checklist saying it was not, every
tab badge wore the warning colour including two zeroes, the checklist
interleaved finished rows with unfinished ones, and a footnote explained a
colour — which is what a colour that is not working looks like.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
"Edit info" describes the training — title, category, dates, quota — and has
no field for a session's schedule or its meeting link, because those belong to
webinars rather than to trainings. The checklist was sending a missing link to
that form. The Sesi tab now schedules and corrects sessions with the one form
that describes them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The refusal of a session outside the execution window was the most confusing
message in the product — bounds at midnight against an instant, rejected with
a sentence mentioning neither. The window now widens to contain the session.

The form gains numbered sections, a rail naming the fields each still needs,
and a live catalogue preview, so what is missing is read beside the fields
that fix it rather than on another page.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The status dropdown contradicted the page it sat on — publication happens
where the checklist is — so it is gone, and the console's Arsipkan now does
the archiving it only ever linked to.

The cover is chosen by dropping and shown once chosen; a missing meeting link
is typed where the row says it is missing; registration closes on the day the
session starts and is refused if it would close after it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
space-between spread the label, the asterisk and the counter evenly across the
row, stranding the asterisk in the middle where it belonged to neither. Only
the counter is pushed away now, and it pushes itself.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Outcomes get a handle and a full-width add; Penyelenggara and Narasumber share
a row; a section's description sits beside its title rather than under it; the
character count moves out of the label into the note below the field; and the
three registration fields share one row instead of leaving two dates to
stretch across half the form each.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
One linked session did not make the others attendable, but "some" was enough
to call the section done — so a webinar could publish with a second session
nobody could join.

The drag now draws the line it would drop against, the handle sits in the
gutter so the fields stay aligned, and Tambah sesi ends its list the same way
Tambah tujuan ends its own.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Deleting was added to the edit form and nowhere else, so the tab that lists
sessions could not remove one. A linkless session also showed no way in — the
same as one that has not started, which wants the opposite from its reader.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The pull into the gutter covered the handle but not the gap after it, so every
row sat one gap to the right of the add button below it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The row was pulled backwards out of the container while the button sat inside
it, so the two were measured in different coordinate spaces and no amount of
adjusting one would settle them. Both are now indented forward by the same two
custom properties.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Deleting a running session was possible from the console: nothing but the
button's absence stopped it, and the button was only absent on one of the two
pages that offered it. The rule now lives in the service, where both pages and
the API meet it — a session may be removed while it is still ahead, or once it
has been cancelled, and not otherwise.

The other half is the transition that was missing. "Sesi selesai lebih cepat"
sent scheduled -> completed, which CanTransition did not allow, so the button
did nothing and said nothing. Finishing a session that never got marked live is
exactly what that button is for, so the machine now permits it — while still
refusing to complete a session before its own start time, which is a clock
error rather than an early finish.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The product is Ruang Sinau, not SINAU, and it has a drawn logo rather than a
lucide book glyph beside a word set in the interface font. Every surface that
showed the brand — the sidebar, the participant rail, the mobile header, the
sheet, the sign-in panel, the public header and footer — now draws the same
artwork through one component, so the file behind them is also the file the
browser tab shows.

The lockup carries the name inside the drawing, which is why the <span> beside
it is gone rather than restyled. Two copies of it exist because the delivered
one sets "RUANG" in navy and that vanishes on a navy ground; the light copy
recolours that single fill and nothing else.

Both viewBoxes are cropped to the drawing itself. As delivered the artwork
carried a wide margin, so asking for thirty pixels of logo got twenty-one,
indented from everything stacked beneath it — after the crop, the height a
caller asks for is the height that appears.

Deliberately not renamed, because moving them moves data or breaks history:
the SINAU- certificate number prefix, the sinau-auth and sinau-theme storage
keys, and account names already in the database.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A session write was built by spreading the session, which sent id, training_id
and room_open along with it. The server decodes with DisallowUnknownFields, so
every such write died on the first of them and the page said nothing. Writes
now start from a WebinarInput built by writable(), which is a shape TypeScript
can hold the caller to — passing a wider variable where a narrower type is
expected is legal, so the projection has to exist rather than be implied. The
edit form carries the description through for the same reason: the update
replaces the row, and a form with no field for it was writing NULL over what
the session already said.

Alongside that, three things the same pages got wrong:

The session card put its actions into an auto-placed grid column, which
stretched to four buttons wide and left a hole beside the icon. Every child now
sits in the second column except the icon, and the actions are split between
getting in and managing.

The outcome rows drew their border on the row while the input drew its own
inside, so the two edges never met and the drag handle took the flex the input
needed. The row is the box now, and it takes the focus ring.

The training catalogue listed everything it had. It pages at nine, eighteen or
thirty-six, and the editor's save button no longer greys out after a session
edit — sessions save themselves, so the form was never dirty and the only
button left was one that could not be pressed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
One row had two public addresses. /trainings/:id answered why to attend —
outcomes, prerequisites, quota, the registration window — and /webinar/:id
answered what was held: the sessions, the recording, the handouts, the Q&A.
Whichever a shared link happened to point at, it was the half that did not
answer the reader. The prospectus now redirects for webinars, and the archive
carries both halves.

That means publicwebinar.Detail projects the promise as well as the record. If
a prospectus field is ever added for visitors, it has to be projected here too,
or a webinar's readers quietly lose something the product still calls public.

The presenter is new, and it is the first time this product names a member of
staff to the open internet. The interface it is read through is one auth
already satisfies, so nothing over there has to keep in step — but what comes
back is the whole account, hash included, which is why presenterOf narrows it
to a name and a body and the test asserts on the encoded JSON rather than the
struct.

The rest is the mockup's layout, minus what we have no data for. There is no
"direkam 58 menit" because we store the planned duration and YouTube holds the
real one; no attendance count, because it has never been public; no "Bagikan"
beside "Salin tautan", because that is one gesture offered twice. Handouts sit
inside the session card as chips, but only when the webinar holds a single
session — a document belongs to the entry, not to one sitting of it, so with
several there is no card that could honestly claim them.

The countdown and the .ics are built in the browser. The calendar file writes
its times in UTC rather than carrying a VTIMEZONE for Asia/Jakarta: a zone
block has to state its own offset rules, and getting those subtly wrong is
exactly how an event lands an hour off.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
feat: settle when a webinar's questionnaire opens, and give the participant a phone
All checks were successful
check / check (pull_request) Successful in 2m50s
11299030d4
A webinar's certificate now rests on one thing: the questionnaire. It used to
run through completionRule alongside every video, quiz and document, which held
a certificate back over a PDF that had nothing to do with the sitting anyone
attended. The rule branches on kind — a training is finished by working through
its material, a webinar by answering its four questions — and requirementCounts
branches with it, because a test compares the tables the two of them read.

There is one questionnaire per webinar, and it opens when the last session
ends. The per-session form was built and withdrawn the same day, and the reason
was not technical: pinning a form to a sitting forced the step list to carry
"Isi kuesioner sesi 2" while the webinar was still running, and a step list
that asks for something in the middle of the thing it is tracking stops
describing progress. The page said two things at once — the stepper announcing
"Hadiri sesi", the sticky CTA offering a questionnaire for a session already
over. One rule, one voice. ADR 012 records the withdrawal so nobody rebuilds it
from the half of the history that is still written down.

It stays open for an hour. That hour is what makes answering evidence of
attendance: anyone can rate four scales, but only somebody who was there is
still around sixty minutes later. Submitting twice does not issue a second
certificate, and the guard is deliberately layered — a UNIQUE pair turns a
resubmission into an update of the same row, CheckAndComplete only looks at
enrolments still in flight, and certificate.issue hands back the one that
exists.

Questions open an hour before the first session. internal/qna/service.go
carried a comment insisting there be no lower bound, on the grounds that early
questions give an organiser time to prepare; that trade is now made the other
way, and if the hour ever feels tight the fix is to widen openBefore rather
than to drop the floor. Both windows end at the last session, and both used to
own a copy of the SQL that decided when that was — copies that agreed with each
other and were wrong in the same way, holding the questionnaire shut over a
cancelled session. The expression lives in internal/webinar now, which owns the
table.

On the phone the participant gets the bottom bar the flow document specified
all along. styles.css had drifted to a 72px icon rail and grown a comment
justifying the drift; the objection in it was real and is answered rather than
ignored — .participant-shell reserves the bar's height, safe area included, so
the page ends above it. Five items is the ceiling, not a coincidence: a sixth
scrolls at 390px.

The rest is the mockup and two rounds of review. The stepper folds to one line
with the sticky CTA naming the active step; the schedule leads with whatever is
live and folds what is finished to a row; Rincian collapses; the player waits
behind a still image rather than pulling a megabyte from YouTube for a reader
who has not said yes; badges are in sentence case, because three shouted words
beside a title are harder to read than three plain ones.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
cola closed this pull request 2026-09-17 15:59:58 +07:00
All checks were successful
check / check (pull_request) Successful in 2m50s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cola/LMS!1
No description provided.