0.1.1: the reviewer has no built-in name

- Board text, timelines, the sign-in page and notifications use the name in
  reviewer.json; nothing says Pandu any more.
- Examples and docs use the brand: reviewer "Labuh", bot "labuh-bot",
  mentions "@labuh".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 19:52:49 +07:00
parent 112923640d
commit b8986003c9
14 changed files with 45 additions and 44 deletions

View File

@@ -205,7 +205,7 @@ export function createBoard(store: Store, cfg: BoardConfig, projects: string[],
const viewer = viewerOf(req);
if (!viewer) {
if (url.pathname.startsWith('/api/')) return json(res, 401, { error: 'sign in' });
return page(res, 401, 'Labuh', 'Antrean deploy dan review Pandu. Masuk dengan akun GitLab yang punya akses ke repo-nya.', '<a class="btn" href="/auth/login">Masuk dengan GitLab</a>');
return page(res, 401, 'Labuh', `Antrean deploy dan review ${reviewer.name}. Masuk dengan akun GitLab yang punya akses ke repo-nya.`, '<a class="btn" href="/auth/login">Masuk dengan GitLab</a>');
}
if (url.pathname === '/') return send(res, 200, TYPES['.html'], readFileSync(path.join(STATIC, 'index.html')));
if (url.pathname === '/rubric') return send(res, 200, TYPES['.html'], rubricPage(readFileSync(path.resolve(HOME, reviewer.rubric), 'utf8')));
@@ -214,7 +214,7 @@ export function createBoard(store: Store, cfg: BoardConfig, projects: string[],
const ajuan = store
.allAjuan()
.filter((a) => visible(a, cfg, viewer, now))
.map((a) => viewAjuan(a, store.events(a.id), cfg, viewer, actionState(a), a.deploy_state === 'awaiting_release' && a.target_branch ? store.openRelease(a.project, a.target_branch) ?? null : null));
.map((a) => viewAjuan(a, store.events(a.id), cfg, viewer, actionState(a), a.deploy_state === 'awaiting_release' && a.target_branch ? store.openRelease(a.project, a.target_branch) ?? null : null, reviewer.name));
return json(res, 200, { viewer: { username: viewer.username, name: viewer.name, approver: viewer.approver }, reviewer: reviewer.name, lanes: [...cfg.lanes.map((l) => l.name), 'Lainnya'], ajuan, at: new Date(now).toISOString() });
}
const act = url.pathname.match(/^\/api\/ajuan\/(\d+)\/action$/);