Skip to content

Use UI flag createdAt as announcement start date via /ui-flags/v2 FEDEV-3937#2602

Open
qwinndev wants to merge 6 commits into
releasefrom
ui-flags-v2-createdat-announcement
Open

Use UI flag createdAt as announcement start date via /ui-flags/v2 FEDEV-3937#2602
qwinndev wants to merge 6 commits into
releasefrom
ui-flags-v2-createdat-announcement

Conversation

@qwinndev

@qwinndev qwinndev commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Frontend half of FEDEV-3937. Reads UI flags from the keeper's new /ui-flags/v2 endpoint and uses each flag's activation time (createdAt) as the start date for flag-driven announcements that have no explicit startDate — so the Announcements page and the What's New toast display and sort by the real go-live date instead of falling back to the removal date (endDate).

Stacked on whats-new-toast-announcements-page-fedev-3855 — this PR is based on that branch; retarget to release once it merges. Keeper side: gmx-io/gmx-synthetics-keeper#529.

Changes

  • fetchUiFlags now hits /ui-flags/v2; UiFlags is Record<string, { enabled, createdAt, updatedAt }>. Every consumer reads ?.enabled — no runtime behavior change.
  • New getEventStartDate / updated getEventSortDate, with precedence: explicit startDate > flag createdAt > endDate. Used by the Announcements page sort + card and the What's New toast.
  • Cross-chain flag merge picks the earliest createdAt among enabled chains.
  • Bumped the UI-flags localStorage cache key to invalidate old boolean-shaped entries.
  • Added unit tests for the start-date helpers.

https://linear.app/gmx-io/issue/FEDEV-3937

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploying gmx-interface with  Cloudflare Pages  Cloudflare Pages

Latest commit: e6160ec
Status: ✅  Deploy successful!
Preview URL: https://6a377d53.gmx-interface.pages.dev
Branch Preview URL: https://ui-flags-v2-createdat-announ.gmx-interface.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploying gmx-interface-home with  Cloudflare Pages  Cloudflare Pages

Latest commit: e6160ec
Status: ✅  Deploy successful!
Preview URL: https://d062ab41.gmx-interface-home.pages.dev
Branch Preview URL: https://ui-flags-v2-createdat-announ.gmx-interface-home.pages.dev

View logs

Base automatically changed from whats-new-toast-announcements-page-fedev-3855 to release July 2, 2026 09:45
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Playwright Component Test Report

All tests passed.

View Report

Commit e6160ec

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