Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
claude/adoring-hopper-5x74bqclaude/affectionate-feynman-ykrf1hclaude/architecture-audit-design-wxprenclaude/build-status-update-3MXsfclaude/charming-meitner-mllb5rclaude/compare-gate-gluecron-s4mFQclaude/confident-faraday-tikcwbclaude/continue-work-XMTlIclaude/crontech-gluecron-deploy-7MIECclaude/crontech-platform-setup-SeKfwclaude/design-2026claude/ecstatic-ptolemy-jMdigclaude/enhance-github-integration-QNHdGclaude/fix-aa-loop-issue-PonMQclaude/fix-actions-and-processclaude/fix-desktop-errors-XqoW8claude/fix-red-workflowsclaude/fix-website-access-6FKJNclaude/gatetest-integration-hardeningclaude/github-audit-improvements-bDFr9claude/gluecron-launch-status-FoMRlclaude/hopeful-lamport-olfCTclaude/issue-to-pr-and-protectionsclaude/jolly-heisenberg-2sg1Qclaude/launch-preparation-QmTb6claude/new-session-xk1l7claude/plan-platform-architecture-kkN4yclaude/platform-analysis-roadmap-1nUGLclaude/platform-launch-assessment-8dWV8claude/polish-platform-release-AeDrUclaude/resume-previous-work-KzyLwclaude/review-crontech-handoff-qYEVqclaude/review-project-completeness-lHhS2claude/review-readme-docs-ulqPKclaude/serene-edison-rj87weclaude/setup-multi-repo-dev-BCwNQclaude/ship-fixes-and-tests-Jvz1cclaude/site-audit-competitive-pctlwgclaude/site-migration-vercel-XstpKclaude/standalone-product-repos-XHFTDcopilot/feat-smart-empty-states-keyboard-first-enhancementcopilot/feat-smart-morning-digest-review-context-restorecopilot/fix-and-process-workflowscopilot/update-ai-powered-code-reviewfeat/debt-mapfeat/push-policy-codeowners-hardeningfeat/smart-digest-contextfeat/stage-impactfeat/t1-secret-migrationfeat/u-polishfeat/w-self-hostfeat/w2-claude-configfix/agent-journey-orphan-sweepgatetest/auto-fix-1776586424172gatetest/auto-fix-1776586534814gatetest/auto-fix-1776590685143gatetest/auto-fix-1776590808199mainops/redeploy-retriggerstyle/dxt-cta-themeworktree-agent-a3377aad30d55da26worktree-agent-a7ef607b7ee1d6c74
pending-comments-banner.tsx3.1 KB · 108 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/**
 * Pending-comments banner — surfaced inline on repo pages (issues list,
 * issue detail, PR list, PR detail, repo home) when the viewer is the
 * repo owner AND there are 1+ comments awaiting moderation.
 *
 * We can't add this to `RepoNav` because that component is locked per
 * the build bible. Living here as a thin functional component lets each
 * page wrapper drop it in below the nav with a single import.
 *
 * Styling is scoped under `.modq-banner-*` so it can't bleed into other
 * surfaces. CSS injected inline once per render — the styles are <1KB
 * and the duplicate-injection cost is irrelevant given how rare the
 * banner appears (only on owner-viewed pages with pending items).
 */

const styles = `
  .modq-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 191, 79, 0.14), rgba(220, 130, 47, 0.10));
    border: 1px solid rgba(245, 191, 79, 0.45);
    color: var(--text, #e6edf3);
    font-size: 14px;
    line-height: 1.4;
  }
  .modq-banner-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 191, 79, 0.20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f5bf4f;
  }
  .modq-banner-text { flex: 1 1 auto; }
  .modq-banner-text strong { color: var(--text-strong, #fff); }
  .modq-banner-action {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(245, 191, 79, 0.18);
    color: #f5bf4f;
    border: 1px solid rgba(245, 191, 79, 0.45);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
  }
  .modq-banner-action:hover {
    background: rgba(245, 191, 79, 0.30);
    text-decoration: none;
  }
  .modq-pending-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(245, 191, 79, 0.18);
    border: 1px solid rgba(245, 191, 79, 0.45);
    color: #f5bf4f;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .modq-comment-pending {
    border-left: 3px solid rgba(245, 191, 79, 0.55) !important;
    background: rgba(245, 191, 79, 0.04);
  }
`;

export function PendingCommentsBanner({
  owner,
  repo,
  count,
}: {
  owner: string;
  repo: string;
  count: number;
}) {
  if (!count || count <= 0) return null;
  return (
    <>
      <style dangerouslySetInnerHTML={{ __html: styles }} />
      <div class="modq-banner" role="status" aria-live="polite">
        <span class="modq-banner-icon" aria-hidden="true">!</span>
        <span class="modq-banner-text">
          <strong>
            {count} comment{count === 1 ? "" : "s"}
          </strong>{" "}
          from non-collaborators {count === 1 ? "is" : "are"} awaiting your
          approval. Review them before they go public.
        </span>
        <a
          class="modq-banner-action"
          href={`/${owner}/${repo}/comments/pending`}
        >
          Review queue
        </a>
      </div>
    </>
  );
}