Skip to content

Randomized memorable container hostnames via dice button#343

Merged
Bobzemob merged 4 commits into
mainfrom
copilot/randomized-container-names
Jun 12, 2026
Merged

Randomized memorable container hostnames via dice button#343
Bobzemob merged 4 commits into
mainfrom
copilot/randomized-container-names

Conversation

Copilot AI commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Adds a client-side dice button to the container create form that generates memorable adjective-adjective-noun hostnames following English adjective order (opinion/size/age/shape → color/origin/material/purpose → noun), e.g. silly-golden-fortress, giant-maple-gateway.

Changes

  • src/lib/randomHostname.ts — new utility with curated word lists (~45 adj1, ~63 adj2, ~29 nouns) and a randomHostname() function; no runtime dependencies
  • ContainerFormPage.tsx — wraps the hostname Input in a flex row and appends a Tooltip-wrapped Dices icon button (create form only; hidden on edit since hostname is immutable); calls setValue('hostname', randomHostname()) on click with aria-label for accessibility
silly-golden-fortress
giant-maple-gateway
ancient-arctic-citadel

Copilot AI changed the title [WIP] Add button for generating randomized container names feat: randomized memorable container hostnames via dice button Jun 12, 2026
Copilot AI requested a review from runleveldev June 12, 2026 01:25
Comment thread create-a-container/client/src/lib/randomHostname.ts
Copilot AI requested a review from runleveldev June 12, 2026 01:34

@runleveldev runleveldev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

141750 possible combinations. We could probably do better, but its a good start.

@runleveldev runleveldev marked this pull request as ready for review June 12, 2026 01:56
@runleveldev runleveldev linked an issue Jun 12, 2026 that may be closed by this pull request
@runleveldev runleveldev changed the title feat: randomized memorable container hostnames via dice button Randomized memorable container hostnames via dice button Jun 12, 2026

const NOUNS = [
// animals
'badger', 'falcon', 'ferret', 'otter', 'raven', 'gecko', 'panda', 'jaguar', 'narwhal',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Missed opportunity for Octopus

@Bobzemob Bobzemob left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@Bobzemob Bobzemob enabled auto-merge June 12, 2026 20:17
@Bobzemob Bobzemob merged commit 2069e13 into main Jun 12, 2026
6 checks passed
@Bobzemob Bobzemob deleted the copilot/randomized-container-names branch June 12, 2026 20:18
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.

Randomized container names

4 participants