Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions public/force-dark.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions public/force-light.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions public/js/betaweek_2026_index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions public/js/snippetedit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 25 additions & 3 deletions public/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/hmnurl/urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,12 @@ func BuildAPIProject() string {
return Url("/api/project", nil)
}

var RegexAPIBetaWeekSignup = regexp.MustCompile("^/api/betaweek/2026/signup$")

func BuildAPIBetaWeekSignup() string {
return Url("/api/betaweek/2026/signup", nil)
}

/*
* Twitch stuff
*/
Expand Down
57 changes: 57 additions & 0 deletions src/migration/migrations/2026-10-14T012507Z_BetaWeekUserSignups.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
package migrations

import (
"context"
"time"

"git.handmade.network/hmn/hmn/src/migration/types"
"github.com/jackc/pgx/v5"
)

func init() {
registerMigration(BetaWeekUserSignups{})
}

type BetaWeekUserSignups struct{}

func (m BetaWeekUserSignups) Version() types.MigrationVersion {
return types.MigrationVersion(time.Date(2026, 10, 14, 1, 25, 7, 0, time.UTC))
}

func (m BetaWeekUserSignups) Name() string {
return "BetaWeekUserSignups"
}

func (m BetaWeekUserSignups) Description() string {
return "Add general beta tester signup data"
}

func (m BetaWeekUserSignups) Up(ctx context.Context, tx pgx.Tx) error {
_, err := tx.Exec(ctx, `
ALTER TABLE betaweek_project_submission
ADD COLUMN approved BOOLEAN NOT NULL DEFAULT FALSE,
ADD COLUMN description TEXT NOT NULL DEFAULT '',
ADD COLUMN platform_list TEXT[] NOT NULL DEFAULT '{}',
ADD COLUMN sort INTEGER NOT NULL DEFAULT 0;

CREATE TABLE betaweek_testing_signup (
project_id INTEGER NOT NULL REFERENCES project,
user_id INTEGER NOT NULL REFERENCES hmn_user,
PRIMARY KEY (project_id, user_id)
)
`)
return err
}

func (m BetaWeekUserSignups) Down(ctx context.Context, tx pgx.Tx) error {
_, err := tx.Exec(ctx, `
DROP TABLE betaweek_testing_signup;

ALTER TABLE betaweek_project_submission
DROP COLUMN approved,
DROP COLUMN description,
DROP COLUMN platform_list,
DROP COLUMN sort;
`)
return err
}
5 changes: 5 additions & 0 deletions src/models/betaweek.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ type BetaWeekProjectSubmission struct {
ProjectInstructions string `db:"project_instructions"`
AuthorAvailability string `db:"author_availability"`
AuthorGoals string `db:"author_goals"`

Approved bool `db:"approved"`
Description string `db:"description"`
PlatformList []string `db:"platform_list"`
Sort int `db:"sort"`
}
28 changes: 27 additions & 1 deletion src/rawdata/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ video {
max-width: 100%;
}

dialog {
background-color: initial;
color: var(--color);
padding: initial;
border: initial;
outline: none;

&::backdrop {
background-color: var(--c-transparent-extreme-lighter);
}
}

/* Utility */

.m-center {
Expand Down Expand Up @@ -159,6 +171,14 @@ video {
color: var(--c4);
}

.c5 {
color: var(--c5);
}

.c6 {
color: var(--c6);
}

.bg1 {
background-color: var(--c1);
}
Expand Down Expand Up @@ -412,7 +432,13 @@ video {
padding-bottom: 50%;
}

.hide-if-empty:empty {
/*
* NOTE(ben): This used to be :empty instead of :not(:has(*)), but :empty
* includes whitespace, which is obvious trash. But, apparently they recently
* redefined :empty to exclude whitespace, but no one has shipped this and I
* despair that they ever will.
*/
.hide-if-empty:not(:has(*)) {
display: none !important;
}

Expand Down
6 changes: 4 additions & 2 deletions src/rawdata/css/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ input[type=submit],
background-color: var(--button-color);
font-weight: 500;
line-height: 1.5rem;
border-style: none;
border: 1px solid var(--button-color);
border-radius: 0;
text-align: center;

&:disabled,
&.disabled {
Expand All @@ -107,7 +108,7 @@ input[type=submit],

&.btn-primary {
background-color: var(--button-color-primary);
border: 1px solid var(--button-border-color-primary);
border-color: var(--button-border-color-primary);
}

&:not(.no-padding):not(.link-button) {
Expand All @@ -119,6 +120,7 @@ button.link-button,
input[type=submit].link-button {
color: var(--link-color);
background-color: unset;
border: none;
padding: 0;
cursor: pointer;
line-height: unset;
Expand Down
3 changes: 3 additions & 0 deletions src/rawdata/css/vars-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
--c-transparent-background: #25272ada;
--c-transparent-background-lighter: #25272ab8;

--c-transparent-extreme: #000000b8;
--c-transparent-extreme-lighter: #00000090;

--button-color-primary: #482553;
--button-border-color-primary: #e663ff;

Expand Down
3 changes: 3 additions & 0 deletions src/rawdata/css/vars-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
--c-transparent-background: #fffffff3;
--c-transparent-background-lighter: #ffffffb2;

--c-transparent-extreme: #ffffffda;
--c-transparent-extreme-lighter: #ffffffb8;

--button-color-primary: #d984ff;
--button-border-color-primary: #be6fe1;

Expand Down
Loading
Loading