Skip to content

feat: custom ribbon text for highlighted events - #78

Merged
ccruzkauppila merged 1 commit into
ilmo-hackathon-consolidationfrom
feat/nattitapahtuma
Nov 20, 2026
Merged

ccruzkauppila merged 1 commit into
ilmo-hackathon-consolidationfrom
feat/nattitapahtuma

Conversation

@Henrisal

Copy link
Copy Markdown
Contributor

Highlighted events showed a fixed "Nätti tapahtuma!" ribbon. Events now have a translated highlight_text column that the event form exposes, per selected language, when the highlight switch is on. An empty text falls back to the default translation.

update_event sets highlight_text whenever is_highlighted is part of the input, so the text can be cleared with null while partial updates that omit both keep it.

Tests: createEvent stores the text; a new updateEvent test covers set / kept on unrelated update / cleared with null.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for @app/client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 266.03 KB (🟡 +18 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twenty-six Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (450 KB)
/ 344.28 KB 610.31 KB 135.62% (🟡 +0.01%)
/404 221.69 KB 487.72 KB 108.38% (+/- <0.01%)
/_error 226.61 KB 492.64 KB 109.47% (🟡 +0.01%)
/admin/emails 250.69 KB 516.72 KB 114.83% (+/- <0.01%)
/admin/event-category/create 282.68 KB 548.71 KB 121.94% (+/- <0.01%)
/admin/event-category/list 334.31 KB 600.33 KB 133.41% (+/- <0.01%)
/admin/event-category/update/[id] 282.86 KB 548.88 KB 121.97% (🟡 +0.01%)
/admin/event/create 521.34 KB 787.37 KB 174.97% (🟡 +0.03%)
/admin/event/list 342.21 KB 608.24 KB 135.16% (🟡 +0.01%)
/admin/event/update/[id] 521.8 KB 787.83 KB 175.07% (🟡 +0.04%)
/admin/organization/[slug] 310.73 KB 576.76 KB 128.17% (+/- <0.01%)
/admin/organization/create 259.54 KB 525.57 KB 116.79% (+/- <0.01%)
/admin/users/list 334.6 KB 600.63 KB 133.47% (+/- <0.01%)
/event/[slug] 367 KB 633.03 KB 140.67% (+/- <0.01%)
/event/[slug]/register/[quotaId] 287.4 KB 553.43 KB 122.98% (🟡 +0.01%)
/forgot 239.46 KB 505.49 KB 112.33% (+/- <0.01%)
/invitations/accept 223.25 KB 489.28 KB 108.73% (+/- <0.01%)
/login 253.13 KB 519.15 KB 115.37% (+/- <0.01%)
/reset 245.62 KB 511.64 KB 113.70% (+/- <0.01%)
/settings/accounts 308.76 KB 574.79 KB 127.73% (+/- <0.01%)
/settings/delete 243.22 KB 509.25 KB 113.17% (+/- <0.01%)
/settings/emails 286.84 KB 552.87 KB 122.86% (+/- <0.01%)
/settings/profile 248.75 KB 514.78 KB 114.40% (+/- <0.01%)
/settings/security 255.5 KB 521.53 KB 115.90% (+/- <0.01%)
/update-registration/[updateToken] 248.58 KB 514.61 KB 114.36% (+/- <0.01%)
/verify 222.18 KB 488.21 KB 108.49% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Highlighted events showed a fixed "Nätti tapahtuma!" ribbon. Events now
have a translated `highlight_text` column that the event form exposes,
per selected language, when the highlight switch is on. An empty text
falls back to the default translation.

`update_event` sets `highlight_text` whenever `is_highlighted` is part of
the input, so the text can be cleared with null while partial updates
that omit both keep it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Henrisal
Henrisal force-pushed the feat/nattitapahtuma branch from 8988337 to 76537c5 Compare October 17, 2026 13:04
@github-actions

Copy link
Copy Markdown

📦 Next.js Bundle Analysis for @app/client

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 266.03 KB (🟡 +18 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twenty-six Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (450 KB)
/ 344.28 KB 610.31 KB 135.62% (🟡 +0.01%)
/404 221.69 KB 487.72 KB 108.38% (+/- <0.01%)
/_error 226.61 KB 492.64 KB 109.47% (🟡 +0.01%)
/admin/emails 250.69 KB 516.72 KB 114.83% (+/- <0.01%)
/admin/event-category/create 282.68 KB 548.71 KB 121.94% (+/- <0.01%)
/admin/event-category/list 334.31 KB 600.33 KB 133.41% (+/- <0.01%)
/admin/event-category/update/[id] 282.86 KB 548.88 KB 121.97% (🟡 +0.01%)
/admin/event/create 521.34 KB 787.37 KB 174.97% (🟡 +0.03%)
/admin/event/list 342.21 KB 608.24 KB 135.16% (🟡 +0.01%)
/admin/event/update/[id] 521.8 KB 787.83 KB 175.07% (🟡 +0.04%)
/admin/organization/[slug] 310.73 KB 576.76 KB 128.17% (+/- <0.01%)
/admin/organization/create 259.54 KB 525.57 KB 116.79% (+/- <0.01%)
/admin/users/list 334.6 KB 600.63 KB 133.47% (+/- <0.01%)
/event/[slug] 367 KB 633.03 KB 140.67% (+/- <0.01%)
/event/[slug]/register/[quotaId] 287.4 KB 553.43 KB 122.98% (🟡 +0.01%)
/forgot 239.46 KB 505.49 KB 112.33% (+/- <0.01%)
/invitations/accept 223.25 KB 489.28 KB 108.73% (+/- <0.01%)
/login 253.13 KB 519.15 KB 115.37% (+/- <0.01%)
/reset 245.62 KB 511.64 KB 113.70% (+/- <0.01%)
/settings/accounts 308.76 KB 574.79 KB 127.73% (+/- <0.01%)
/settings/delete 243.22 KB 509.25 KB 113.17% (+/- <0.01%)
/settings/emails 286.84 KB 552.87 KB 122.86% (+/- <0.01%)
/settings/profile 248.75 KB 514.78 KB 114.40% (+/- <0.01%)
/settings/security 255.5 KB 521.53 KB 115.90% (+/- <0.01%)
/update-registration/[updateToken] 248.58 KB 514.61 KB 114.36% (+/- <0.01%)
/verify 222.18 KB 488.21 KB 108.49% (+/- <0.01%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@ccruzkauppila
ccruzkauppila changed the base branch from main to ilmo-hackathon-consolidation November 20, 2026 14:48
@ccruzkauppila
ccruzkauppila merged commit 1e74b3b into ilmo-hackathon-consolidation Nov 20, 2026
14 checks passed
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