Skip to content

Add a lounge and open the hub with a question box and tabs - #123

Open
jsshin2022 wants to merge 5 commits into
mainfrom
hub-lounge
Open

jsshin2022 wants to merge 5 commits into
mainfrom
hub-lounge

Conversation

@jsshin2022

@jsshin2022 jsshin2022 commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Adds a lounge where anyone with a GitHub account can ask, share, and write retrospectives, and opens the hub with a question box. Posts live in this repo's GitHub Discussions; the hub only reads them. The hub keeps the Causal Inference Hub name.

Home

  • The hero search is now a question box ("무엇이 궁금하세요?"). Suggestions include lounge posts next to topics, terms and projects, and the last line offers to post the typed words as a new question in the 질문 board (opens GitHub with the title filled in).
  • The hero keeps the question box on the left and the main materials list on the right. The level test is one link under the popular topics.
  • Under the hero, 라운지 (open by default), 커리큘럼, 자료, 연재 and 레포 소식 are tabs. The open source cards and the Hanbit book and lecture sit at the top of 자료; Hanbit clicks from there are counted with placement materials_tab. Header links and #lounge-style links open their tab first; jumping to a level or an item from the level test opens 커리큘럼. Builder and 행사 stay as sections below.
  • 라운지 tab: one write button, the pinned posts and the newest three, as a plain list (author and board, title, two lines of text).
  • 레포 소식 tab: the team's GitHub activity from data/activity.json, one line per person, repo, kind and day (e.g. "PR 43개를 올렸습니다" with the first title).

Lounge page

  • lounge.html: a 전체 / 연재 / board filter, the same plain list, newest first, and the posting rules folded under a details block.
  • Published posts from data/articles.json join the list under a 연재 board, so the lounge is not empty before the first discussion. Posts with "pin": true stay on top; the book release note and the errata post (원서에서 찾은 오류와 처리한 방법) are pinned.
  • Posts by people in data/builders.json show their name and a Builder mark. Questions show 답변 채택 or 답을 기다려요.

Feed and spam

  • scripts/build_lounge.py reads the latest 60 discussions through GraphQL with GITHUB_TOKEN and writes data/lounge.json (30 shown). Links and avatars are kept only when they point at this repo's discussions and GitHub avatars.
  • Left out of the feed: adult/gambling/loan words, messenger contact links, links from accounts younger than 3 days, many links from accounts younger than 30 days, and posts labeled spam or hidden. Each is listed in the job log with the reason; nothing is deleted on GitHub.
  • deploy.yml also runs on discussion and discussion_comment events and gets discussions: read.
  • New events: lounge_write, lounge_open, lounge_more, lounge_filter, home_tab, repo_news_open. They use placement, not source.

After merging

  1. Settings → General → Discussions → categories: add 질문 (Question / Answer), 공유, 회고, 소식 (Open-ended discussion). The hub matches boards by these names.
  2. The deploy run on merge fills the feed. I will then add a discussion form for each board, using the slugs GitHub gives them.

Checked

  • build_lounge.py --from with a sample answer: 5 posts kept; the gambling post, the loan contact post and the labeled post left out.
  • Hub (each tab, #topics/#posts deep links, ?level), lounge, library, article, game, lab, 404 and Builder pages at 1440 and 390 px in light and dark: no console errors.
  • check_data.py passes.
  • Lounge with no discussions (articles only) and with sample discussions mixed in, 1440 and 390 px; ?c=연재 filter and #rules open the right state.

Generated by Claude Code

The lounge shows this repo's GitHub Discussions: four boards (질문, 공유,
회고, 소식), the newest five on the home page and all of them on
lounge.html. scripts/build_lounge.py reads them with GITHUB_TOKEN on every
deploy, and the deploy workflow now also runs when a discussion or a
comment changes. Posts with spam words, messenger contact links, or links
from brand-new accounts are left out of the feed and listed in the job log;
a spam or hidden label takes a post off the hub.

The hub name, share image and live-host list move to Pseudo Lab Data Hub
and datahub.pseudo-lab.com.
The hero search becomes a question box: suggestions now include lounge
posts, and the last line offers to post the typed words as a new question.
Under the hero, 커리큘럼, 라운지, 자료, 연재 and a new 레포 소식 panel
(team GitHub activity grouped by person, repo and day) are tabs, with the
curriculum open by default; links to a panel open its tab first. The
lounge page shows posts as tiles with a count on each board tab.

The name, share image and live hosts go back to the Causal Inference Hub
and causalinference.pseudo-lab.com.
@jsshin2022 jsshin2022 changed the title Rename the hub to Pseudo Lab Data Hub and add a lounge Add a lounge and open the hub with a question box and tabs Nov 28, 2026
… test

The level test card, the materials list, the open source cards and the
Hanbit book and lecture leave the hero. The last three now open the 자료
tab, and the level test is a single link under the popular topics; the
curriculum's test card shows only once a level has been found. Hanbit
clicks from the new spot are counted with placement materials_tab.
…ab first

The hero gets its right column back with the main materials list. Under
it, 라운지 is now the first tab and the one shown on arrival; 커리큘럼 moves
to second. The open source cards and the Hanbit book and lecture stay at
the top of the 자료 tab.
…ones

The lounge rows now read like search results: author and board on one
line, the title, two lines of text. Published 연재 posts join the list
under a 연재 board, and posts with "pin": true stay on top; the book
release note and the errata post are pinned. One write button replaces
the four board cards, the waiting-questions box and the sort are gone,
and the posting rules fold into a details block.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant