feat(project): meeting board button opens a blank Google Slides deck
A "회의록 보드" button next to attendees opens the week's Google Slides deck in its own window. The deck is found (Drive appProperties) or created in the shared drive MEETING_BOARD_FOLDER_ID as one BLANK slide, named like "10월 2주차 (10/5~10/11)". Needs a token with Drive and Slides scopes; the authorize script now requests them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -459,6 +459,29 @@ function meetServer(env, st) {
|
||||
check("[2e] 월 목표 직접 저장 요청 없음", !st.metric);
|
||||
});
|
||||
|
||||
// ════════════════════ [2f] 회의록 보드 — 누르는 순간 창을 열고, 서버가 준 Google 슬라이드 주소로 바꾼다 ════════════════════
|
||||
await section(async function () {
|
||||
const env = makeEnv(PAGE.meeting_ro, MEET_URL); // 보기만 하는 사람도 연다
|
||||
meetServer(env);
|
||||
let posted = null;
|
||||
env.route("POST", /\/project\/api\/goals\/meetings\/2026-09-28\/board$/, function (u, body) {
|
||||
posted = u;
|
||||
return { body: { ok: true, url: "https://docs.google.com/presentation/d/abc/edit", created: true, title: "9월 5주차 (9/28~9/30)" } };
|
||||
});
|
||||
await boot(env);
|
||||
const popup = { closed: false, focused: false, location: { href: "about:blank", replace: function (u) { this.href = u; } },
|
||||
document: { title: "", body: {} }, focus: function () { this.focused = true; }, close: function () { this.closed = true; } };
|
||||
let opened = null;
|
||||
env.w.open = function (url, name, features) { opened = { url: url, name: name, features: features }; return popup; };
|
||||
const btn = env.d.getElementById("pj-meet-board");
|
||||
check("[2f] 참석자 옆 회의록 보드 버튼", !!btn && !!btn.closest(".pj-meet-attend"));
|
||||
btn.click();
|
||||
check("[2f] 누르는 순간 독립 창(popup)을 연다", opened && opened.name === "pj_meet_board_2026-09-28" && /popup/.test(opened.features), opened);
|
||||
await settle(); await wait(10); await settle();
|
||||
check("[2f] 서버에 그 주차 보드 요청", !!posted);
|
||||
check("[2f] 창을 슬라이드 주소로", popup.location.href === "https://docs.google.com/presentation/d/abc/edit" && popup.focused);
|
||||
});
|
||||
|
||||
// ════════════════════ [3] 목표 표 — 글 저장 실패면 구조 변경·표 교체 중단 ════════════════════
|
||||
await section(async function () {
|
||||
const env = makeEnv(PAGE.goals_admin, GOALS_URL, { promptAnswer: "새 영역" });
|
||||
|
||||
Reference in New Issue
Block a user