Skip to content

feat: add AGENT documentation and implement GetDeveloperId component … - #8

Merged
iflames1 merged 1 commit into
devfrom
docs/add-agent-guide
Aug 1, 2026
Merged

feat: add AGENT documentation and implement GetDeveloperId component …#8
iflames1 merged 1 commit into
devfrom
docs/add-agent-guide

Conversation

@iflames1

@iflames1 iflames1 commented Aug 1, 2026

Copy link
Copy Markdown
Member

…for user profile

Copilot AI review requested due to automatic review settings August 1, 2026 07:34
@cursor

cursor Bot commented Aug 1, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stacks-wars Ready Ready Preview Aug 1, 2026 7:35am

@iflames1
iflames1 merged commit 4707d31 into dev Aug 1, 2026
3 checks passed
@iflames1
iflames1 deleted the docs/add-agent-guide branch August 1, 2026 07:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds contributor-facing documentation (AGENT.md) and introduces a self-only “Get Developer ID” control on the user profile, alongside a couple of small UI and infrastructure/auth adjustments.

Changes:

  • Add external “Docs” and “Telegram” links to the app footer and render external links with <a target="_blank">.
  • Add GetDeveloperId client component and surface it in the profile header for the signed-in profile owner.
  • Standardize cron auth to use INTERNAL_API_SECRET and add AGENT.md repository guidance.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
components/shell/app-footer.tsx Adds external footer links and tweaks container sizing.
components/profile/profile-header.tsx Integrates GetDeveloperId into the profile header layout.
components/profile/get-developer-id.tsx New client component for copying the developer/platform user ID.
app/api/cron/lobby-ttl/route.ts Adjusts cron authorization secret selection.
AGENT.md Adds agent/contributor guidance and architecture rules.
Suppressed comments (2)

components/shell/app-footer.tsx:33

  • External links opened with target="_blank" should include rel="noopener noreferrer" to prevent reverse-tabnabbing. The codebase already uses noopener noreferrer for other external links.
                                href={link.href}
                                className="hover:text-foreground"
                                target="_blank"
                                rel="noreferrer"
                            >

components/profile/get-developer-id.tsx:120

  • “Copy and close” will close the dialog even when copying fails because copyId() catches errors and resolves, so the .then(() => setOpen(false)) always runs. Consider returning a success boolean (or rethrowing on failure) so the dialog only closes on successful copy.
                        <Button
                            type="button"
                            variant="primary"
                            onClick={() => void copyId().then(() => setOpen(false))}
                        >

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return (
<footer className="mt-20 border-t border-border/60">
<div className="mx-auto flex w-full max-w-[1400px] flex-col gap-6 px-4 py-10 sm:px-6 md:flex-row md:items-center md:justify-between lg:px-8">
<div className="mx-auto flex w-full max-w-350 flex-col gap-6 px-4 py-10 sm:px-6 md:flex-row md:items-center md:justify-between lg:px-8">
href="https://docs.stackswars.com/develop/contributing"
className="text-foreground underline underline-offset-2"
target="_blank"
rel="noreferrer"

function cronAuthorized(request: Request): boolean {
const secret = process.env.CRON_SECRET?.trim() || process.env.INTERNAL_API_SECRET?.trim()
const secret = process.env.INTERNAL_API_SECRET?.trim()
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.

2 participants