활동 피드는 워크스페이스에서 무슨 일이 있었고 누가 했는지 보여 줍니다. 배포, 댓글, 파일 등이 표시됩니다. 날짜마다 최신 항목이 먼저 오는 타임라인으로 구성되며, 작업한 사람을 마커로 표시하고 작업 대상은 텍스트로 전달합니다. 필터에서 이벤트 종류를 하나 선택해 범위를 좁힐 수 있습니다.
활동 피드
<section class="sheet container-inline flex flex-col overflow-hidden" data-example="activity-feed" aria-labelledby="activity-title"> <header class="flex flex-wrap items-center justify-between gap-sm p-md"> <div class="flex flex-col gap-3xs"> <h2 class="heading heading-sm" id="activity-title">Activity</h2> <p class="m(0) fg-text-muted" id="activity-count" aria-live="polite">7 events in Atlas Labs since Wednesday</p> </div> <div class="segmented segmented-sm" role="radiogroup" aria-label="Show"> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="all" checked>All</label> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="deploy">Deployments</label> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="comment">Comments</label> <label class="segmented-item"> <input type="radio" class="segmented-input" name="activity-kind" value="file">Files</label> </div> </header> <div class="flex flex-col gap-lg p-md bt(1) bt-solid b-line-hair" data-activity-days> <section class="flex flex-col gap-sm" aria-labelledby="activity-today"> <h3 class="m(0) text-xs font-medium fg-text-muted" id="activity-today">Today</h3> <ol class="timeline"> <li class="timeline-item" data-kind="deploy" aria-current="true"> <span class="timeline-marker"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="256" height="256"> </span> </span> <div class="timeline-body"> <p class="timeline-title">Yi-ching Lin deployed <a class="link" href="#activity-title">atlas.dev</a>to production</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-success badge-dot">Ready</span> <span class="badge badge-category category-teal">Marketing site</span> <time class="timeline-time" datetime="2026-11-13T09:42">09:42</time> </div> <details class="expand max-w(420)" style="--expand-lines: 2"> <summary class="expand-toggle"> <span class="expand-more">Show the build</span> <span class="expand-less">Hide the build</span> <svg class="icon expand-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" /> </svg> </summary> <dl class="data-list"> <div class="data-list-item"> <dt class="data-list-term">Commit</dt> <dd class="data-list-value">4f021c8, Add pricing for teams</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Build</dt> <dd class="data-list-value">38 routes in 48 seconds</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Regions</dt> <dd class="data-list-value">14, from Tokyo to São Paulo</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Rollback</dt> <dd class="data-list-value">The 08:12 deployment stays ready</dd> </div> </dl> </details> </div> </li> <li class="timeline-item" data-kind="comment"> <span class="timeline-marker"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256"> </span> </span> <div class="timeline-body"> <p class="timeline-title">Misaki Sato commented on <a class="link" href="#activity-title">Pricing page, preview 212</a> </p> <p class="timeline-description max-w(560)">“The yearly toggle reads well now. Can the Enterprise plan say how many seats it starts with?”</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-category category-teal">Marketing site</span> <time class="timeline-time" datetime="2026-11-13T09:15">09:15</time> </div> </div> </li> <li class="timeline-item" data-kind="file"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">KN</span> </span> <div class="timeline-body"> <p class="timeline-title">Kenta Nakamura added 2 files to <a class="link" href="#activity-title">Edge functions</a> </p> <div class="flex flex-col items-start gap-xs max-w(420)"> <a class="file file-sm file-interactive" href="#activity-title"> <span class="file-page" aria-hidden="true">pdf</span> <span class="file-body"> <span class="file-name">Cold start profile.pdf</span> <span class="file-meta">1.2 MB</span> </span> </a> <a class="file file-sm file-interactive" href="#activity-title"> <span class="file-page" aria-hidden="true">csv</span> <span class="file-body"> <span class="file-name">Regions by latency.csv</span> <span class="file-meta">84 KB</span> </span> </a> </div> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-category category-violet">Edge functions</span> <time class="timeline-time" datetime="2026-11-13T08:30">08:30</time> </div> </div> </li> </ol> </section> <section class="flex flex-col gap-sm" aria-labelledby="activity-yesterday"> <h3 class="m(0) text-xs font-medium fg-text-muted" id="activity-yesterday">Yesterday</h3> <ol class="timeline"> <li class="timeline-item" data-kind="deploy"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">SK</span> </span> <div class="timeline-body"> <p class="timeline-title">Seo-yeon Kim deployed <a class="link" href="#activity-title">api.atlas.dev</a>to production</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-success badge-dot">Ready</span> <span class="badge badge-category category-blue">Public API</span> <time class="timeline-time" datetime="2026-11-12T17:40">17:40</time> </div> </div> </li> <li class="timeline-item" data-kind="deploy"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">SK</span> </span> <div class="timeline-body"> <p class="timeline-title">Seo-yeon Kim’s deployment of <a class="link" href="#activity-title">api.atlas.dev</a>failed</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-danger badge-dot">Failed</span> <span class="badge badge-category category-blue">Public API</span> <time class="timeline-time" datetime="2026-11-12T17:05">17:05</time> </div> <details class="expand max-w(420)" style="--expand-lines: 2"> <summary class="expand-toggle"> <span class="expand-more">Show the error</span> <span class="expand-less">Hide the error</span> <svg class="icon expand-chevron" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M6 3.5L10.3586 7.8586A0.2 0.2 0 0 1 10.3586 8.1414L6 12.5" transform="rotate(90 8 8)" /> </svg> </summary> <dl class="data-list"> <div class="data-list-item"> <dt class="data-list-term">Check</dt> <dd class="data-list-value">GET /status, every 10 seconds</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Answered</dt> <dd class="data-list-value">503 three times in a row</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Stopped</dt> <dd class="data-list-value">Before it took any traffic</dd> </div> <div class="data-list-item"> <dt class="data-list-term">Served</dt> <dd class="data-list-value">Tuesday’s deployment, until the fix at 17:40</dd> </div> </dl> </details> </div> </li> </ol> </section> <section class="flex flex-col gap-sm" aria-labelledby="activity-wednesday"> <h3 class="m(0) text-xs font-medium fg-text-muted" id="activity-wednesday">Wednesday, 11 November</h3> <ol class="timeline"> <li class="timeline-item" data-kind="comment"> <span class="timeline-marker"> <span class="avatar avatar-sm"> <img class="avatar-image" src="/demo/people/misaki-sato.webp" alt width="256" height="256"> </span> </span> <div class="timeline-body"> <p class="timeline-title">Misaki Sato commented on <a class="link" href="#activity-title">Cache the image pipeline</a> </p> <p class="timeline-description max-w(560)">“Each preview rebuilds every image. Caching them by hash should cut the build by a third.”</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-category category-violet">Edge functions</span> <time class="timeline-time" datetime="2026-11-11T10:48">10:48</time> </div> </div> </li> <li class="timeline-item" data-kind="deploy"> <span class="timeline-marker"> <span class="avatar avatar-sm" aria-hidden="true">KN</span> </span> <div class="timeline-body"> <p class="timeline-title">Kenta Nakamura deployed <a class="link" href="#activity-title">fn.atlas.dev</a>to preview</p> <div class="flex flex-wrap items-center gap-xs"> <span class="badge badge-success badge-dot">Ready</span> <span class="badge badge-category category-violet">Edge functions</span> <time class="timeline-time" datetime="2026-11-11T09:05">09:05</time> </div> </div> </li> </ol> </section> </div></section>/** * The activity of a team, filtered by kind on the page. The events are markup the server wrote, so the feed reads * in full without this script; a choice in the switch keeps the events of that kind in their lists, takes out a * day that is left with none, and says how many are shown. Returns the function that stops it and puts every * event back. */export function mount(root) { const count = root.querySelector('#activity-count') const feed = root.querySelector('[data-activity-days]') const days = [...feed.children].map((day) => ({ day, list: day.querySelector('.timeline'), items: [...day.querySelectorAll('.timeline-item')] })) const words = { all: ['event', 'events'], deploy: ['deployment', 'deployments'], comment: ['comment', 'comments'], file: ['file change', 'file changes'] } const controller = new AbortController() const show = (kind) => { let shown = 0 const kept = [] for (const { day, list, items } of days) { const matching = items.filter((item) => kind === 'all' || item.dataset.kind === kind) list.replaceChildren(...matching) if (matching.length) kept.push(day) shown += matching.length } feed.replaceChildren(...kept) count.textContent = `${shown} ${words[kind][shown === 1 ? 0 : 1]} in Atlas Labs since Wednesday` } root.addEventListener('change', (event) => { if (event.target.name === 'activity-kind') show(event.target.value) }, { signal: controller.signal }) return () => { controller.abort() show('all') }}이벤트 종류를 골라 피드의 범위를 좁히거나, 배포의 세부 정보를 열어 보세요.
블록은 복사해 사용하는 마크업입니다. 페이지의 텍스트 색상과 크기를 따르며, 미리보기에서는 body에 fg-text-body text-sm 클래스를 설정합니다. 각 블록은 크기 컨테이너이므로 넓은 페이지, 사이드바 너비의 공간, 대화 상자 어디서든 자체 너비에 맞춰 배치가 바뀝니다.
#구성 요소
- 하나의 시트. 헤더와 각 날짜를 얇은 구분선
bt(1) bt-solid b-line-hair로 나눕니다. - 하루는 제목과 타임라인으로 구성됩니다. 오늘, 어제, 그 이전 날짜 순으로 표시합니다. 각 날짜는
<h3>제목과 그 아래의<ol class="timeline">으로 구성되며, 이벤트는 최신순입니다. 헤더의 개수는 표시된 이벤트 수를 알려 주며, 그 아래 날짜들의 이벤트 수와 일치합니다. - 사람이 마커입니다.
timeline-marker안의 아바타가 점을 대신하며, 마커 크기인 24px로 표시됩니다. 선이 한 사람에서 다음 사람으로 이어집니다. 이름은 문장 안에 있으므로 사진의alt는 비워 두고 이니셜에는aria-hidden을 지정합니다. - 작업 대상은 링크입니다. 제목 안의 배포, 미리보기, 이슈는 해당 대상으로 이동하는 링크이며, 파일은 독자가 열 수 있는 파일로 표시합니다.
- 글은 읽기 좋은 너비를 유지합니다. 인용한 댓글은
max-w(560), 파일과 세부 정보는max-w(420)로 두어, 시트가 넓어도 한 문장이 시트 전체로 늘어나지 않습니다. 행은 시트만큼 넓어도 읽는 너비는 그렇지 않습니다. - 상태는 톤으로, 프로젝트는 카테고리로 나타냅니다. “Ready”와 “Failed”는 점과 텍스트가 있는 상태 배지입니다. 이벤트가 속한 프로젝트는 이름을 담은
badge-category로 표시하며, 해당 프로젝트에 다른 곳에서도 동일하게 적용하는 카테고리를 사용합니다. - 가장 최근 이벤트가 현재 항목입니다. 마커가 점일 때 해당 행에
aria-current="true"를 지정하면 마커가 잉크 색으로 표시됩니다. - 세부 정보는 접혀 있습니다. 배포의 빌드 내용과 실패 이유는 펼치기 안에 있습니다. 처음 몇 줄이 표시되고, 네이티브
<details>로 나머지를 열며, 페이지 내 검색과 키보드 조작은 그대로 동작합니다. - 필터는 세그먼트 컨트롤입니다. 피드를 배포, 댓글, 파일 중 하나로 좁히며, 해당 이벤트가 하나도 없는 날짜는 목록에서 빠집니다.
#스크립트가 필요한 동작
피드는 서버가 작성하는 마크업이며, 스크립트 없이도 전체 내용을 읽을 수 있습니다. main.js는 범위를 좁히는 역할만 합니다. 선택한 종류의 이벤트만 목록에 남기고, 이벤트가 하나도 남지 않은 날짜를 빼고, 개수를 갱신합니다. 개수는 polite 라이브 영역입니다. 서버에서 피드를 페이지로 나누는 경우, 같은 필터 선택값을 쿼리로 받아 처리합니다.
#접근성
- 시트는 제목으로 이름을 지정한
<section>이며, 각 날짜도 자체 제목으로 이름을 지정한<section>입니다. - 각 이벤트는 누가 어떤 대상에 무슨 작업을 했는지 한 문장으로 설명하므로, 아바타, 배지, 선 없이도 읽을 수 있습니다.
- 상태 배지는 상태를 텍스트로 전달하고, 카테고리 배지는 프로젝트 이름을 전달하며, 색상은 그 내용을 반복할 뿐입니다.
- 시각은
<time datetime>요소이므로 독자는 정확한 시점을 알 수 있고 프로그램도 이를 읽을 수 있습니다. - 필터는 “표시”라는 이름의 라디오 그룹이며, 선택 후 표시되는 이벤트 수를 안내합니다.
#관련 항목
- 표면모든 컴포넌트의 바탕이 되는 트레이, 볼록한 표면, 오목한 영역의 높이 체계입니다.
- 제목페이지의 기본 글자색으로 표시하는 제목과 제목 위 안내 문구, 아래 소개 문단입니다.
- 세그먼트 컨트롤하나의 오목한 영역에 몇 가지 옵션을 배치하고, 솟아오른 표면이 현재 옵션으로 부드럽게 이동합니다.
- 타임라인활동 피드, 이력, 변경 로그처럼 이벤트를 발생 순서대로 하나의 선을 따라 보여 줍니다.
- 아바타사람이나 팀을 사진 또는 이니셜로 나타내며, 하나만 표시하거나 여러 개를 겹쳐 표시할 수 있습니다.
- 링크문장 속에서 주변 텍스트와 같은 색으로 표시되며 다른 위치로 이동하는 텍스트입니다.
- 배지상태, 카테고리 또는 개수를 표시하는 작은 칩입니다. 색에 의미가 있을 때만 색을 사용합니다.
- 카테고리 색상데이터가 어느 카테고리에 속하는지 알려 주는 이름이 지정된 색상입니다.
- 파일첨부 파일, 업로드 파일, 다운로드 파일을 이름이 있는 개별 항목으로 표시합니다.
- 펼치기긴 글의 첫 몇 줄을 보여 주고, 사용자가 원할 때 전체 내용을 펼칩니다.
- 데이터 목록배포, 주문, 프로필처럼 한 대상의 정보를 가는 선으로 나눈 항목 이름과 값으로 보여 줍니다.