mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
* feat: general-purpose skills with @-mention composition and user import
Lift skills from "one mode-bound skill per project" to a generic capability
the user can compose per turn:
- Daemon: scan multiple skill roots (user-skills under runtime data, then
the bundled `skills/`); user-imported skills can shadow built-ins by id.
- New `POST /api/skills/import` and `DELETE /api/skills/:id` endpoints,
with CONFLICT/BAD_REQUEST/NOT_FOUND error codes and built-in delete
protection.
- ChatRequest gains `skillIds: string[]`; the chat run concatenates each
picked skill's body (and merges craftRequires) into the system prompt
for that turn only — the project's persistent `skillId` is untouched.
- Web composer: `@` popover now lists skills alongside project files;
picks render as removable chips above the textarea and ride along with
the request as `skillIds`.
- Settings → Library: import form (name/description/triggers/body),
per-card delete for user skills, "user" origin badge.
* chore(web): drop welcome pet teaser + add ds→prompt-template mapping util
- SettingsDialog: remove the inline pet adoption teaser from the welcome
panel so the first-run modal stays focused on configuration.
- New `inferPromptTemplateCategoriesForDs(ds)` helper that maps a design
system's authored metadata to prompt-template gallery categories.
Imported by the design-system gallery wiring on a sibling branch; no
callers in this branch yet.
* feat: split skills/design-templates and add finalize-design API
Phase 0 of the skills/design-templates refactor (specs/current/
skills-and-design-templates.md):
- Move ~104 rendering catalogue entries from skills/ to design-templates/
and keep skills/ for the small set of functional skills that *do work*
on user input (utilities, briefs, packagers).
- Add design-templates/AGENTS.md and skills/AGENTS.md describing the
contract, and a brand-agnostic craft/ surface for opt-in craft rules.
- Daemon: add DESIGN_TEMPLATES_DIR / USER_DESIGN_TEMPLATES_DIR roots and
an /api/design-templates surface mirroring /api/skills. Asset/example
routes still span both registries so existing srcdoc URLs keep
resolving across the rename.
- Web: split LibrarySection into SkillsSection + DesignSystemsSection,
rename the EntryView "Examples" tab to "Templates", and update locales
+ the New-project picker accordingly.
Adds the finalize-design endpoint:
- New apps/daemon/src/finalize-design.ts and packages/contracts/src/api/
finalize.ts — one-shot synthesis of a project's transcript + active
design system + current artifact into <projectDir>/DESIGN.md via the
Anthropic Messages API. Per-project .finalize.lock mirrors the
transcript-export hygiene from PR #493; provider credentials are not
persisted by the daemon.
Other supporting changes:
- README + AGENTS.md updates to document the new directory split and
craft/ surface, plus i18n strings across 13 locales.
- Test refactors and new coverage (finalize-design, runs, sidecar
server, plus refreshed daemon integration tests).
- .gitignore: scope the *.exe ignore to /OpenDesign.exe so legitimate
vendor binaries are no longer hidden.
* fix(merge): move clinical-case-report to design-templates/
Origin/main added the clinical-case-report skill under skills/ before
the skills/design-templates split landed. Its od.mode is prototype, so
per specs/current/skills-and-design-templates.md it is a design template
and belongs alongside the other rendering catalogue entries — not under
the slimmed-down functional skills/ root. Moving it keeps the EntryView
Templates tab consistent with origin/main's intent.
* feat(skills): curated design/creative catalogue + collapsible Settings rows
Seed ~100 curated design/creative skill stubs under skills/ sourced from
awesome-claude-skills (ComposioHQ) and awesome-agent-skills (VoltAgent).
Each stub carries an od.category tag so the new filter pill row in
Settings -> Skills can group them. The seed script
(scripts/seed-curated-design-skills.ts, pnpm seed:curated-design-skills)
is idempotent: it only creates folders that don't already exist, so
hand-edited stubs are never overwritten.
- Daemon: parse and surface od.category on SkillInfo with a strict slug
normaliser; mirror the field on SkillSummary in @open-design/contracts.
Category is purely a UI hint — system-prompt composition is unchanged.
- Web: rewrite SkillsSection from a left-list / right-detail grid into a
vertical stack of collapsible rows mirroring the External MCP panel
(header always visible with name + mode/source/category pills + per-row
enable toggle; SKILL.md preview, file tree and inline edit form expand
on demand). Add a Category filter row above the list. Reorder Settings
nav so Skills + External MCP sit above the Composio/MCP cluster. Update
composer placeholder/hint across 17 locales to advertise '@ files or
skills · / for commands'.
- Docs: extend skills/AGENTS.md with the curated catalogue rules
(idempotency, category vocabulary, no upstream vendoring).
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(skills): teach localized-content + system-prompt tests about the skills/design-templates split
mrcfps blocking review on PR #955: the skills/design-templates split
(b5993385) moved ~110 SKILL.md entries out of `skills/` and into
`design-templates/`, but two repo-level tests still hard-coded the
single-root layout, so CI gates went red on the merged branch:
- `e2e/tests/localized-content.test.ts` only scanned `<repo>/skills`
while the locale `skillCopy` map keeps id-keyed entries spanning
both roots (ExamplesTab/Templates uses one lookup regardless of
origin). Teach the helper to read both `skills/` and
`design-templates/`, deduplicating ids so the union matches the
localized claim.
- `apps/daemon/tests/prompts/system.test.ts` read
`skills/live-artifact/SKILL.md`, which now lives under
`design-templates/live-artifact/`. Update the absolute path so
composeSystemPrompt's coverage of the live-artifact preamble is
exercised again.
Also enroll the curated design/creative catalogue (PR #955, ~91
stubs sourced from awesome-claude-skills / awesome-agent-skills) in
the DE / FR / RU `_SKILL_IDS_WITH_EN_FALLBACK` lists. The stubs are
English-only by design (frontmatter advertises an upstream URL); the
fallback list is exactly the place to acknowledge "we know this id
exists, English copy is fine here" so the localized-content coverage
gate passes without forcing a translation task per locale.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(skills): always quote frontmatter name so importUserSkill round-trips numeric / boolean ids
mrcfps PR #955 review: `buildSkillMarkdown` emitted `name:
${escapeYamlString(name)}` without quotes, so YAML coerced names
like `123`, `true`, `false`, or `null` into non-string scalars on
re-parse. listSkills() then read `data.name` as a number/boolean
and the import flow's follow-up `findSkillById(skills, result.id)`
missed it, falling into `/api/skills/import`'s "imported skill
could not be re-read" 500 path for those ids.
Switch the emitter to a quoted scalar (`name: "..."`) — the
double-escape already in `escapeYamlString` makes the quoted form
safe — and add a round-trip test covering `123`, `true`, `false`,
`null`, and `0` to lock in the contract.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(web): drop staged-skill chips when the matching @<id> token leaves the draft
mrcfps PR #955 review: `submit()` always forwarded every id in
`stagedSkills`, but that state was only mutated on picker click and
chip removal. Hand-deleting an `@<id>` token from the textarea left
the chip staged, so the request still carried `skillIds: [<id>]` and
the daemon composed a skill the prompt no longer referenced.
Sync the chips with the draft inside `handleChange()` by pruning
`stagedSkills` whenever the new value no longer contains the
`@<id>` token (using the same whitespace boundary as
`removeStagedSkill`'s strip regex). Comment explains why this
prune does not run for `staged` file attachments — users frequently
add files via the upload button without leaving an `@<path>` token,
so a symmetric prune there would erase legitimate uploads.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(daemon): stage @-composed skills' side files alongside the active skill
codex PR #955 review: composing a per-turn `@`-picked skill into the
system prompt appended its body (with the `withSkillRootPreamble`
guidance pointing at relative paths under `<cwd>/.od-skills/<folder>/`)
but never staged the actual folder. `startChatRun` only copied
`activeSkillDir`, so when the project's primary skill was different
(or absent) the composed skill's references/, examples/, and scripts/
files lived only at their absolute repo path — agents that honour
the cwd-relative form (or that don't get `--add-dir`, e.g. Codex with
allowlisted gpt-image projects) couldn't reach them.
Thread the composed skills' dirs out of `composeDaemonSystemPrompt`
as `extraSkillDirs` and stage each one through the same
`stageActiveSkill` API used for the primary skill. Dedupe by folder
basename so a project whose primary skill is also `@`-composed isn't
copied twice. Each preamble already advertises its own folder, so the
prompt and the staged tree stay aligned without further changes.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(web): respect the Library disable toggle in the project @-mention picker
codex PR #955 review: only `EntryView` received `enabledSkills`
(filtered against `config.disabledSkills`); active projects still
got `skills={skills}` raw, so a skill the user disabled in Settings
kept appearing in the project's `@`-mention popover and could ride
along to the daemon via `skillIds`. That broke the Library toggle
for any project opened on the post-split branch.
Compute a functional-skills-only enabled subset
(`enabledFunctionalSkills`) and pass it into `<ProjectView>` instead.
Templates stay separate — design-templates are filtered through their
own `enabledDesignTemplates` memo for the Templates gallery — so
ProjectView's chat composer still only sees skills, never templates,
matching the pre-split prop surface.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(e2e): mock /api/design-templates for example-use-prompt flow
The Templates tab in EntryView fetches from /api/design-templates after
the skills/design-templates split (specs/current/skills-and-design-templates.md).
The example-use-prompt Playwright scenario only mocked /api/skills, so the
gallery card never appeared and the test timed out waiting on
example-card-warm-utility-example. Serve the same fixture summary on both
endpoints so the templates gallery renders the card the test clicks.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(tools-pack): create design-templates fixture for resources test
The packaging resources copy now bundles the new design-templates tree
alongside skills (see resources.ts BUNDLED_RESOURCE_TREES). The
copyBundledResourceTrees fixture only created skills, design-systems,
craft, etc., so the recursive copy crashed with ENOENT on
design-templates before it could check the prompt-templates assertion.
Add the missing fixture directory so the test exercises the same set
of resource trees the packaged build does.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(skills): clone built-in side files into the shadow on first edit
mrcfps PR #955 review: editing a built-in skill wrote a USER_SKILLS_DIR
shadow folder that contained only a new SKILL.md. The next listSkills()
pass surfaced the shadow as the active dir, but every side-file resolver
(/api/skills/:id/files, /example, /assets/*, the system-prompt preamble,
and the per-turn cwd staging) reads through skill.dir. With nothing but
SKILL.md in the shadow, the bundled assets/, references/, scripts/, and
examples/ disappeared the moment the user hit save — a built-in like
last30days or live-artifact would break immediately after edit instead
of just having its body overridden.
Teach updateUserSkill() to take a `sourceDir` and clone every entry
except SKILL.md / dotfiles into the shadow on the very first edit. The
shadow stays self-contained, so all the resolvers keep working without
fallback bookkeeping. Subsequent edits detect the existing shadow and
skip the clone, so user tweaks under the side tree survive a re-save.
Wire `sourceDir: skill.dir` from server.ts's PUT /api/skills/:id handler
and add two regression tests:
- 'clones built-in side files into the shadow on the first edit' walks
the file tree after save and asserts assets/template.html, references/
notes.md, and scripts/helper.sh all round-trip from the built-in.
- 'preserves user-edited side files on subsequent edits' edits the
staged assets/template.html, re-saves, and confirms the user content
is still there.
Co-authored-by: Cursor <cursoragent@cursor.com>
* test(e2e): rename home tab from Examples to Templates
The Examples tab was renamed to Templates in EntryView (b5993385's
skills/design-templates split — entry.tabExamples became entry.tabTemplates
and the tab value moved from 'examples' to 'templates'), but
entry-chrome-flows still asserted the old label and testId. Update both.
* fix(skills+web): preserve template body in API mode and dir-based skill delete
Two follow-ups from PR #955 review:
1. ProjectView only received `enabledFunctionalSkills`, but
`composedSystemPrompt()` still resolved `project.skillId` through that
prop and `fetchSkill()`. Projects created from the new
`/api/design-templates` surface keep a template id in `project.skillId`,
so opening one in API mode dropped the template body from the system
prompt and the upstream request ran without the project's primary
template instructions. Now ProjectView takes a separate
`designTemplates` prop (the unfiltered template list, so a
later-disabled template still loads for projects already created from
it) and `composedSystemPrompt()` plus the metadata / `isDeck` lookups
fall back to that list, with `fetchDesignTemplate()` as the body-fetch
fallback to `fetchSkill()`. The chat composer's `@`-picker keeps
receiving only the enabled functional skills.
2. `DELETE /api/skills/:id` used `deleteUserSkill(USER_SKILLS_DIR, skill.id)`
which re-slugified the frontmatter id and removed
`<userSkillsDir>/<slug>/`. That matched the import shape but missed the
install shape — `installFromTarget` writes the folder at
`sanitizeRepoName(url)` (GitHub) or `path.basename(realpath)` (local
symlink), neither of which is guaranteed to equal the slugified
frontmatter `name`. A duplicate `app.delete('/api/skills/:id', ...)`
handler at the install routes never fired because Express resolved the
earlier registration first, leaving the install/uninstall path without
working teardown. The handler now removes `skill.dir` (the absolute
path listSkills already discovered) under a USER_SKILLS_DIR safety
check, using `lstat` + `unlinkSync` so symlinked local installs unlink
cleanly without recursing into the user's source tree. The dead
duplicate handler is removed; `deleteUserSkill` is dropped from the
server.ts import set (still exported and unit-tested in skills.ts).
Regression coverage in `apps/daemon/tests/skills-delete-route.test.ts`
pins both shapes plus the symlink-preserves-source case.
* test(daemon): point hyperframes system-prompt test at design-templates
The merge with main brought in a hyperframes system-prompt test that
reads `skills/hyperframes/SKILL.md`, but this branch's split moved
`hyperframes` into `design-templates/` (same migration as `live-artifact`
already handled above in this file). CI was failing with ENOENT on the
old path.
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
771 lines
30 KiB
HTML
771 lines
30 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head><script>(function(){
|
|
function makeStore(){
|
|
var data = {};
|
|
var api = {
|
|
getItem: function(k){ return Object.prototype.hasOwnProperty.call(data, k) ? data[k] : null; },
|
|
setItem: function(k, v){ data[k] = String(v); },
|
|
removeItem: function(k){ delete data[k]; },
|
|
clear: function(){ data = {}; },
|
|
key: function(i){ return Object.keys(data)[i] || null; }
|
|
};
|
|
Object.defineProperty(api, 'length', { get: function(){ return Object.keys(data).length; } });
|
|
return api;
|
|
}
|
|
function tryShim(name){
|
|
var works = false;
|
|
try { works = !!window[name] && typeof window[name].getItem === 'function'; void window[name].length; }
|
|
catch (_) { works = false; }
|
|
if (works) return;
|
|
try { Object.defineProperty(window, name, { configurable: true, value: makeStore() }); }
|
|
catch (_) { try { window[name] = makeStore(); } catch (__) {} }
|
|
}
|
|
tryShim('localStorage');
|
|
tryShim('sessionStorage');
|
|
})();</script>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Orbit · GitHub Briefing — 2026-05-06</title>
|
|
<style>
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
color: #1f2328;
|
|
background: #f6f8fa;
|
|
}
|
|
|
|
/* ── GitHub Top Nav ── */
|
|
.gh-header {
|
|
background: #24292f;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 16px;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
.gh-header svg { fill: #ffffff; }
|
|
.gh-header-logo { flex-shrink: 0; }
|
|
.gh-header-logo svg { width: 32px; height: 32px; }
|
|
.gh-header-logo svg:hover { fill: rgba(255,255,255,0.7); }
|
|
|
|
.gh-header-search {
|
|
margin-left: 16px;
|
|
flex: 1;
|
|
max-width: 540px;
|
|
}
|
|
.gh-header-search input {
|
|
width: 100%;
|
|
background: rgba(255,255,255,0.08);
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
border-radius: 6px;
|
|
padding: 5px 12px;
|
|
font-size: 14px;
|
|
color: #ffffff;
|
|
outline: none;
|
|
font-family: inherit;
|
|
}
|
|
.gh-header-search input::placeholder { color: rgba(255,255,255,0.4); }
|
|
.gh-header-search input:focus {
|
|
background: rgba(255,255,255,0.12);
|
|
border-color: rgba(255,255,255,0.4);
|
|
}
|
|
.gh-header-search-slash {
|
|
position: absolute;
|
|
right: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
border: 1px solid rgba(255,255,255,0.2);
|
|
border-radius: 4px;
|
|
padding: 0 5px;
|
|
font-size: 11px;
|
|
color: rgba(255,255,255,0.4);
|
|
line-height: 18px;
|
|
}
|
|
|
|
.gh-header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-left: auto;
|
|
}
|
|
.gh-avatar-header {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ── Page Layout ── */
|
|
.page-container {
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
padding: 24px 32px;
|
|
display: flex;
|
|
gap: 24px;
|
|
}
|
|
|
|
/* ── Left Sidebar Nav ── */
|
|
.sidebar {
|
|
width: 256px;
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-nav {
|
|
list-style: none;
|
|
}
|
|
.sidebar-nav li button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
color: #1f2328;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
font-family: inherit;
|
|
background: none;
|
|
border: none;
|
|
width: 100%;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
.sidebar-nav li button:hover {
|
|
background: rgba(208,215,222,0.32);
|
|
}
|
|
.sidebar-nav li button.active {
|
|
background: rgba(208,215,222,0.48);
|
|
font-weight: 600;
|
|
}
|
|
.sidebar-nav li button svg {
|
|
fill: #656d76;
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
.sidebar-nav li button.active svg { fill: #1f2328; }
|
|
.sidebar-count {
|
|
margin-left: auto;
|
|
background: rgba(208,215,222,0.48);
|
|
padding: 0 6px;
|
|
border-radius: 9999px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: #1f2328;
|
|
line-height: 20px;
|
|
}
|
|
|
|
/* ── Main Content ── */
|
|
.main-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* ── Section Groups ── */
|
|
.event-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
.event-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 16px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
border: 1px solid #d0d7de;
|
|
border-radius: 6px 6px 0 0;
|
|
background: #f6f8fa;
|
|
}
|
|
.event-group-header.warning {
|
|
background: #fff8c5;
|
|
border-color: #d4a72c;
|
|
}
|
|
.event-group-header.ci-fail {
|
|
background: #ffebe9;
|
|
border-color: #cf222e;
|
|
}
|
|
.event-group-header .count {
|
|
background: rgba(208,215,222,0.48);
|
|
padding: 0 6px;
|
|
border-radius: 9999px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
}
|
|
.event-group-header.warning .count {
|
|
background: rgba(154,103,0,0.12);
|
|
color: #9a6700;
|
|
}
|
|
.event-group-header.ci-fail .count {
|
|
background: rgba(207,34,46,0.12);
|
|
color: #cf222e;
|
|
}
|
|
|
|
/* ── Event Rows ── */
|
|
.event-list {
|
|
border: 1px solid #d0d7de;
|
|
border-top: none;
|
|
border-radius: 0 0 6px 6px;
|
|
background: #ffffff;
|
|
}
|
|
.event-row {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #d0d7de;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
.event-row:last-child { border-bottom: none; }
|
|
|
|
.event-icon {
|
|
flex-shrink: 0;
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-top: 3px;
|
|
}
|
|
.event-icon svg { width: 16px; height: 16px; }
|
|
|
|
.event-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.event-title-line {
|
|
display: flex;
|
|
align-items: baseline;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
font-size: 14px;
|
|
}
|
|
.event-repo {
|
|
color: #656d76;
|
|
font-weight: 400;
|
|
}
|
|
.event-sep { color: #656d76; }
|
|
.event-pr-label {
|
|
color: #656d76;
|
|
}
|
|
.event-title-text {
|
|
font-weight: 600;
|
|
color: #1f2328;
|
|
}
|
|
.event-title-text a {
|
|
color: #0969da;
|
|
text-decoration: none;
|
|
}
|
|
.event-title-text a:hover { text-decoration: underline; }
|
|
.event-timestamp {
|
|
margin-left: auto;
|
|
color: #656d76;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.event-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 4px;
|
|
font-size: 12px;
|
|
color: #656d76;
|
|
}
|
|
|
|
/* ── Status Pills ── */
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 9999px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 18px;
|
|
white-space: nowrap;
|
|
}
|
|
.pill-open { background: #1a7f37; color: #ffffff; }
|
|
.pill-merged { background: #8250df; color: #ffffff; }
|
|
.pill-closed { background: #cf222e; color: #ffffff; }
|
|
.pill-draft { background: #6e7781; color: #ffffff; }
|
|
.pill svg { width: 12px; height: 12px; fill: currentColor; }
|
|
|
|
/* ── Labels ── */
|
|
.gh-label {
|
|
display: inline-block;
|
|
padding: 0 7px;
|
|
border-radius: 9999px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
border: 1px solid transparent;
|
|
}
|
|
.label-backend { background: #ddf4ff; color: #0550ae; border-color: rgba(5,80,174,0.2); }
|
|
.label-p1 { background: #ffebe9; color: #a40e26; border-color: rgba(164,14,38,0.2); }
|
|
|
|
/* ── Reviewer Avatars ── */
|
|
.reviewer-stack {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
}
|
|
.reviewer-avatar {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
border: 2px solid #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 9px;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
margin-left: -4px;
|
|
position: relative;
|
|
}
|
|
.reviewer-avatar:first-child { margin-left: 0; }
|
|
|
|
.reviewer-status {
|
|
position: absolute;
|
|
bottom: -2px;
|
|
right: -2px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
border: 1.5px solid #ffffff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.reviewer-status.approved { background: #1a7f37; }
|
|
.reviewer-status.pending { background: #bf8700; }
|
|
.reviewer-status.none { background: #d0d7de; }
|
|
.reviewer-status svg { width: 6px; height: 6px; fill: #ffffff; }
|
|
|
|
/* ── Diff Preview ── */
|
|
.diff-preview {
|
|
margin-top: 8px;
|
|
border: 1px solid #d0d7de;
|
|
border-radius: 6px;
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
|
font-size: 12px;
|
|
line-height: 20px;
|
|
overflow: hidden;
|
|
}
|
|
.diff-header {
|
|
background: #f6f8fa;
|
|
padding: 4px 12px;
|
|
color: #656d76;
|
|
font-size: 12px;
|
|
border-bottom: 1px solid #d0d7de;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.diff-header svg { width: 12px; height: 12px; fill: #656d76; }
|
|
.diff-line {
|
|
padding: 0 12px;
|
|
white-space: pre;
|
|
}
|
|
.diff-line.add {
|
|
background: #dafbe1;
|
|
color: #116329;
|
|
}
|
|
.diff-line.remove {
|
|
background: #ffebe9;
|
|
color: #82071e;
|
|
}
|
|
.diff-line.context {
|
|
background: #ffffff;
|
|
color: #656d76;
|
|
}
|
|
.diff-line-number {
|
|
display: inline-block;
|
|
width: 32px;
|
|
text-align: right;
|
|
color: rgba(31,35,40,0.3);
|
|
user-select: none;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
/* ── CI Fail Card ── */
|
|
.ci-fail-card .event-row {
|
|
border-left: 3px solid #cf222e;
|
|
}
|
|
|
|
/* ── Conversation Indicator ── */
|
|
.convo-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: 9999px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
background: #fff8c5;
|
|
color: #9a6700;
|
|
}
|
|
.convo-badge svg { width: 12px; height: 12px; fill: currentColor; }
|
|
|
|
/* ── Footer ── */
|
|
.orbit-footer {
|
|
text-align: center;
|
|
padding: 24px 16px 32px;
|
|
font-size: 12px;
|
|
color: #656d76;
|
|
}
|
|
.orbit-footer strong {
|
|
color: #1f2328;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ── Responsive ── */
|
|
@media (max-width: 768px) {
|
|
.page-container {
|
|
flex-direction: column;
|
|
padding: 16px;
|
|
}
|
|
.sidebar { width: 100%; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- ════════ GitHub Header ════════ -->
|
|
<header class="gh-header">
|
|
<!-- Octocat Logo -->
|
|
<a class="gh-header-logo" href="#">
|
|
<svg viewBox="0 0 16 16" width="32" height="32">
|
|
<path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"/>
|
|
</svg>
|
|
</a>
|
|
|
|
<!-- Search -->
|
|
<div class="gh-header-search" style="position:relative;">
|
|
<input type="text" placeholder="Type / to search" />
|
|
<span class="gh-header-search-slash">/</span>
|
|
</div>
|
|
|
|
<!-- Action buttons -->
|
|
<div class="gh-header-actions">
|
|
<div class="gh-avatar-header">E</div>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- ════════ Page ════════ -->
|
|
<div class="page-container">
|
|
|
|
<!-- ── Sidebar ── -->
|
|
<nav class="sidebar" data-od-id="sidebar">
|
|
<ul class="sidebar-nav" id="sidebarNav">
|
|
<li>
|
|
<button class="active" data-filter="all">
|
|
<svg viewBox="0 0 16 16"><path d="M1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75C0 1.784.784 1 1.75 1ZM1.5 2.75v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25Z"/></svg>
|
|
All
|
|
<span class="sidebar-count">5</span>
|
|
</button>
|
|
</li>
|
|
<li>
|
|
<button data-filter="participating">
|
|
<svg viewBox="0 0 16 16"><path d="M1.5 14.25c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H1.75a.25.25 0 0 0-.25.25v12.5ZM0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm9.22 3.72a.749.749 0 0 1 1.06 0l3.5 3.5a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L10 7.31 7.28 10.03a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734Z"/></svg>
|
|
Participating
|
|
</button>
|
|
</li>
|
|
<li>
|
|
<button data-filter="mentions">
|
|
<svg viewBox="0 0 16 16"><path d="M4.75 7.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm3.25.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm4 0a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Z"/><path d="M0 2.75C0 1.784.784 1 1.75 1h12.5c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 14.25 15H1.75A1.75 1.75 0 0 1 0 13.25Zm1.75-.25a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h12.5a.25.25 0 0 0 .25-.25V2.75a.25.25 0 0 0-.25-.25Z"/></svg>
|
|
Mentions
|
|
</button>
|
|
</li>
|
|
<li>
|
|
<button data-filter="reviews">
|
|
<svg viewBox="0 0 16 16"><path d="M3.5 9.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm5-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"/><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"/></svg>
|
|
Review requests
|
|
<span class="sidebar-count">2</span>
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<!-- ── Main Content ── -->
|
|
<main class="main-content" data-od-id="main-content">
|
|
|
|
<!-- ═══ Review Requests ═══ -->
|
|
<div class="event-group" data-od-id="review-requests" data-category="reviews">
|
|
<div class="event-group-header warning">
|
|
<svg viewBox="0 0 16 16" width="16" height="16" fill="#9a6700"><path d="M8 2c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6Zm.25 3a.75.75 0 0 0-1.5 0v3c0 .199.079.39.22.53l2 2a.749.749 0 0 0 1.275-.326.749.749 0 0 0-.215-.734L8.25 7.69Z"/></svg>
|
|
Review requests waiting on you
|
|
<span class="count">2</span>
|
|
</div>
|
|
<div class="event-list">
|
|
|
|
<!-- PR #2371 -->
|
|
<div class="event-row">
|
|
<div class="event-icon">
|
|
<svg viewBox="0 0 16 16" fill="#1a7f37"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"/></svg>
|
|
</div>
|
|
<div class="event-body">
|
|
<div class="event-title-line">
|
|
<span class="event-repo">open-design/web</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="event-pr-label">PR #2371</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="pill pill-open">
|
|
<svg viewBox="0 0 16 16"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354Z"/></svg>
|
|
Open
|
|
</span>
|
|
<span class="event-title-text"><a href="#">feat: orbit briefing card</a></span>
|
|
<span class="event-timestamp">opened 2d ago by marie</span>
|
|
</div>
|
|
<div class="event-meta">
|
|
<!-- Reviewer Avatars -->
|
|
<div class="reviewer-stack">
|
|
<div class="reviewer-avatar" style="background:#2da44e;" title="alex — approved">A
|
|
<span class="reviewer-status approved"><svg viewBox="0 0 16 16"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"/></svg></span>
|
|
</div>
|
|
<div class="reviewer-avatar" style="background:#0969da;" title="sam — approved">S
|
|
<span class="reviewer-status approved"><svg viewBox="0 0 16 16"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"/></svg></span>
|
|
</div>
|
|
<div class="reviewer-avatar" style="background:#cf222e;" title="jess — approved">J
|
|
<span class="reviewer-status approved"><svg viewBox="0 0 16 16"><path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"/></svg></span>
|
|
</div>
|
|
<div class="reviewer-avatar" style="background:#8250df;" title="eli — pending">E
|
|
<span class="reviewer-status pending"></span>
|
|
</div>
|
|
<div class="reviewer-avatar" style="background:#bf3989;" title="cody — pending">C
|
|
<span class="reviewer-status pending"></span>
|
|
</div>
|
|
</div>
|
|
<span style="color:#656d76;">✓ 3 of 5 reviewers approved · waiting on <strong style="color:#1f2328;">you</strong> + <strong style="color:#1f2328;">cody</strong></span>
|
|
</div>
|
|
|
|
<!-- Diff Preview -->
|
|
<div class="diff-preview">
|
|
<div class="diff-header">
|
|
<svg viewBox="0 0 16 16"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914Z"/></svg>
|
|
src/components/OrbitBriefingCard.tsx
|
|
</div>
|
|
<div class="diff-line context"><span class="diff-line-number">42</span> return (</div>
|
|
<div class="diff-line remove"><span class="diff-line-number">43</span>- <div className="briefing-legacy"></div>
|
|
<div class="diff-line add"><span class="diff-line-number">43</span>+ <Card variant="orbit" density="compact"></div>
|
|
<div class="diff-line add"><span class="diff-line-number">44</span>+ <BriefingHeader provider={provider} /></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- PR #2389 -->
|
|
<div class="event-row">
|
|
<div class="event-icon">
|
|
<svg viewBox="0 0 16 16" fill="#1a7f37"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"/></svg>
|
|
</div>
|
|
<div class="event-body">
|
|
<div class="event-title-line">
|
|
<span class="event-repo">open-design/web</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="event-pr-label">PR #2389</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="pill pill-open">
|
|
<svg viewBox="0 0 16 16"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354Z"/></svg>
|
|
Open
|
|
</span>
|
|
<span class="event-title-text"><a href="#">refactor: skill loader</a></span>
|
|
<span class="event-timestamp">1d ago</span>
|
|
</div>
|
|
<div class="event-meta">
|
|
<span class="convo-badge">
|
|
<svg viewBox="0 0 16 16"><path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"/></svg>
|
|
Conversation needs your reply
|
|
</span>
|
|
<span style="color:#656d76;">@cody asked a question</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ═══ CI / Checks ═══ -->
|
|
<div class="event-group ci-fail-card" data-od-id="ci-checks" data-category="ci">
|
|
<div class="event-group-header ci-fail">
|
|
<svg viewBox="0 0 16 16" width="16" height="16" fill="#cf222e"><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm9.78-2.22-5.5 5.5a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734l5.5-5.5a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"/></svg>
|
|
CI / Checks
|
|
<span class="count">1</span>
|
|
</div>
|
|
<div class="event-list">
|
|
<div class="event-row">
|
|
<div class="event-icon">
|
|
<svg viewBox="0 0 16 16" fill="#cf222e"><path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"/></svg>
|
|
</div>
|
|
<div class="event-body">
|
|
<div class="event-title-line">
|
|
<span class="event-repo">open-design/web</span>
|
|
<span class="event-sep">·</span>
|
|
<span style="color:#1f2328;font-weight:600;">main</span>
|
|
<span class="event-sep">·</span>
|
|
<span style="color:#cf222e;font-weight:600;">✗ test (e2e) failed</span>
|
|
<span class="event-timestamp">2h ago</span>
|
|
</div>
|
|
<div class="event-meta">
|
|
<svg viewBox="0 0 16 16" width="12" height="12" fill="#656d76"><path d="M11.93 8.5a4.002 4.002 0 0 1-7.86 0H.75a.75.75 0 0 1 0-1.5h3.32a4.002 4.002 0 0 1 7.86 0h3.32a.75.75 0 0 1 0 1.5Zm-1.43-.25a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/></svg>
|
|
<span>Last commit: <code style="font-family:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,monospace;background:#f6f8fa;border:1px solid #d0d7de;padding:1px 5px;border-radius:4px;font-size:0.85em;">chore(deps): bump cheerio to 1.0.2</code></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ═══ Issues assigned to you ═══ -->
|
|
<div class="event-group" data-od-id="issues" data-category="issues" data-mentions>
|
|
<div class="event-group-header">
|
|
<svg viewBox="0 0 16 16" width="16" height="16" fill="#1a7f37"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"/></svg>
|
|
Issues assigned to you
|
|
<span class="count">1</span>
|
|
</div>
|
|
<div class="event-list">
|
|
<div class="event-row">
|
|
<div class="event-icon">
|
|
<svg viewBox="0 0 16 16" fill="#1a7f37"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"/></svg>
|
|
</div>
|
|
<div class="event-body">
|
|
<div class="event-title-line">
|
|
<span class="event-repo">open-design/web</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="event-pr-label">ENG-148</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="pill pill-open">
|
|
<svg viewBox="0 0 16 16"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"/></svg>
|
|
Open
|
|
</span>
|
|
<span class="event-title-text"><a href="#">Auth middleware refactor</a></span>
|
|
<span class="event-timestamp">no activity 5d</span>
|
|
</div>
|
|
<div class="event-meta">
|
|
<span class="gh-label label-backend">backend</span>
|
|
<span class="gh-label label-p1">p1</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- ═══ Activity ═══ -->
|
|
<div class="event-group" data-od-id="activity" data-category="activity">
|
|
<div class="event-group-header">
|
|
<svg viewBox="0 0 16 16" width="16" height="16" fill="#656d76"><path d="M11.93 8.5a4.002 4.002 0 0 1-7.86 0H.75a.75.75 0 0 1 0-1.5h3.32a4.002 4.002 0 0 1 7.86 0h3.32a.75.75 0 0 1 0 1.5Zm-1.43-.25a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"/></svg>
|
|
Activity
|
|
<span class="count">1</span>
|
|
</div>
|
|
<div class="event-list">
|
|
<div class="event-row">
|
|
<div class="event-icon">
|
|
<svg viewBox="0 0 16 16" fill="#8250df"><path d="M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"/></svg>
|
|
</div>
|
|
<div class="event-body">
|
|
<div class="event-title-line">
|
|
<span class="event-repo">open-design/web</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="event-pr-label">PR #2401</span>
|
|
<span class="event-sep">·</span>
|
|
<span class="pill pill-merged">
|
|
<svg viewBox="0 0 16 16"><path d="M5.45 5.154A4.25 4.25 0 0 0 9.25 7.5h1.378a2.251 2.251 0 1 1 0 1.5H9.25A5.734 5.734 0 0 1 5 7.123v3.505a2.25 2.25 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.95-.218ZM4.25 13.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm8.5-4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5ZM5 3.25a.75.75 0 1 0 0 .005V3.25Z"/></svg>
|
|
Merged
|
|
</span>
|
|
<span class="event-title-text">merged into main by <strong>bob</strong></span>
|
|
<span class="event-timestamp">18h ago</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
</div>
|
|
|
|
<!-- ════════ Footer ════════ -->
|
|
<footer class="orbit-footer">
|
|
<strong>Open Orbit</strong> · auto-generated 06:42 · 2026-05-06
|
|
</footer>
|
|
|
|
<script>
|
|
(function() {
|
|
var nav = document.getElementById('sidebarNav');
|
|
var groups = document.querySelectorAll('.event-group');
|
|
|
|
nav.addEventListener('click', function(e) {
|
|
var btn = e.target.closest('button');
|
|
if (!btn) return;
|
|
|
|
// Toggle active
|
|
nav.querySelectorAll('button').forEach(function(b) { b.classList.remove('active'); });
|
|
btn.classList.add('active');
|
|
|
|
var filter = btn.getAttribute('data-filter');
|
|
|
|
groups.forEach(function(g) {
|
|
if (filter === 'all') {
|
|
g.style.display = '';
|
|
} else if (filter === 'participating') {
|
|
// User participates in reviews + issues assigned
|
|
g.style.display = (g.hasAttribute('data-category') &&
|
|
(g.dataset.category === 'reviews' || g.dataset.category === 'issues')) ? '' : 'none';
|
|
} else if (filter === 'mentions') {
|
|
g.style.display = g.hasAttribute('data-mentions') ? '' : 'none';
|
|
} else if (filter === 'reviews') {
|
|
g.style.display = g.dataset.category === 'reviews' ? '' : 'none';
|
|
}
|
|
});
|
|
});
|
|
|
|
// Row hover highlight + click-to-open-on-GitHub
|
|
const REPO = 'https://github.com/nexu-io/open-design';
|
|
function buildUrl(label) {
|
|
const t = (label || '').trim();
|
|
const prMatch = t.match(/PR\s*#(\d+)/i);
|
|
if (prMatch) return REPO + '/pull/' + prMatch[1];
|
|
const issueIdMatch = t.match(/^[A-Z]+-(\d+)/);
|
|
if (issueIdMatch) return REPO + '/issues?q=' + encodeURIComponent(t);
|
|
const hashMatch = t.match(/#(\d+)/);
|
|
if (hashMatch) return REPO + '/issues/' + hashMatch[1];
|
|
return REPO;
|
|
}
|
|
document.querySelectorAll('.event-row').forEach(function(row) {
|
|
const label = row.querySelector('.event-pr-label')?.textContent;
|
|
const url = buildUrl(label);
|
|
row.style.cursor = 'pointer';
|
|
row.style.transition = 'background 80ms ease-out';
|
|
row.addEventListener('mouseenter', function() { row.style.background = '#f6f8fa'; });
|
|
row.addEventListener('mouseleave', function() { row.style.background = ''; });
|
|
row.addEventListener('click', function(e) {
|
|
// Don't override clicks on inner real anchors
|
|
if (e.target.closest('a')) return;
|
|
window.open(url, '_blank', 'noopener,noreferrer');
|
|
});
|
|
// Upgrade the title placeholder anchor to a real URL
|
|
const titleAnchor = row.querySelector('.event-title-text a');
|
|
if (titleAnchor) {
|
|
titleAnchor.href = url;
|
|
titleAnchor.target = '_blank';
|
|
titleAnchor.rel = 'noopener noreferrer';
|
|
}
|
|
});
|
|
// Top logo also points to the repo
|
|
const headerLogo = document.querySelector('.gh-header-logo');
|
|
if (headerLogo) {
|
|
headerLogo.href = REPO;
|
|
headerLogo.target = '_blank';
|
|
headerLogo.rel = 'noopener noreferrer';
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|