Skip to content

Commit 34ebbf7

Browse files
Christian Shearerclaude
andcommitted
Limit agent view toggle to landing page only
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3586f26 commit 34ebbf7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/server/brand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,5 +541,5 @@ export function brandFooter(opts?: FooterOptions): string {
541541
${opts?.showInstall ? `<div class="regen-footer__install">claude mcp add -s user regen-compute -- npx regen-compute</div>` : ""}
542542
<div class="regen-footer__note">Credits are permanently retired on a public ledger. Powered by Regen Network.</div>
543543
</footer>
544-
<button onclick="window.location.href=window.location.pathname+'?view=agent'" style="position:fixed;bottom:24px;right:24px;z-index:9999;background:#1a1a2e;color:#4FB573;border:1px solid #4FB573;border-radius:8px;padding:10px 18px;cursor:pointer;font-family:monospace;font-size:13px;font-weight:600;box-shadow:0 4px 12px rgba(0,0,0,0.3);transition:all 0.2s;" onmouseover="this.style.background='#2a2a4e'" onmouseout="this.style.background='#1a1a2e'">&#129302; Agent View</button>`;
544+
`;
545545
}

src/server/routes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,8 @@ Then estimate my AI usage footprint and recommend a tier ($1.25, $2.50, or $5/mo
627627
{ label: "GitHub", href: "https://github.com/regen-network/regen-compute" },
628628
] })}
629629
630+
<button onclick="window.location.href='/?view=agent'" style="position:fixed;bottom:24px;right:24px;z-index:9999;background:#1a1a2e;color:#4FB573;border:1px solid #4FB573;border-radius:8px;padding:10px 18px;cursor:pointer;font-family:monospace;font-size:13px;font-weight:600;box-shadow:0 4px 12px rgba(0,0,0,0.3);transition:all 0.2s;" onmouseover="this.style.background='#2a2a4e'" onmouseout="this.style.background='#1a1a2e'">&#129302; Agent View</button>
631+
630632
<script>
631633
function fundCustom() {
632634
var input = document.getElementById('custom-amount');

0 commit comments

Comments
 (0)