Skip to content

Migrated events to openapi + autogenerated api client#729

Merged
kamilwronka merged 7 commits intomainfrom
develop
Apr 12, 2026
Merged

Migrated events to openapi + autogenerated api client#729
kamilwronka merged 7 commits intomainfrom
develop

Conversation

@kamilwronka
Copy link
Copy Markdown
Contributor

No description provided.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
lootlog-docs 64b8c05 Commit Preview URL

Branch Preview URL
Apr 12 2026, 03:52 AM

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 12, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: af780ed8-c312-47ff-9497-84d4a26b9b2b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64b8c05a8d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +77 to 81
useListRankingEditHistory({
guildId: guildId ?? "",
eventId: eventId ?? "",
rankingId: ranking.id,
enabled: historyOpen && ranking.pointsModified,
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Gate ranking history queries behind dialog state

useListRankingEditHistory is now executed unconditionally for every ranking row, so the page issues one /ranking/:id/history request per row on initial render (including rows with no edits and users without edit permissions). Before this change, the query was gated by historyOpen && ranking.pointsModified, which avoided a burst of unnecessary/forbidden requests; restoring that gate is important to prevent avoidable backend load and noisy 403s for read-only users.

Useful? React with 👍 / 👎.

Comment on lines +50 to +54
const { data: queryData } = useEventsMonitoringControllerGetHeroRespawnConfig(
{
guildId: guildId ?? "",
eventId,
heroId,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid per-hero respawn-config fetches in badge component

This badge now calls useEventsMonitoringControllerGetHeroRespawnConfig per hero instance, and HeroCard renders one badge per hero, turning the event detail view into an N-request pattern (N = hero count). The previous implementation reused shared timers data and derived status locally, so this change can significantly increase request volume and page latency on events with many heroes.

Useful? React with 👍 / 👎.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying lootlog-web-monorepo with  Cloudflare Pages  Cloudflare Pages

Latest commit: fddc942
Status: ✅  Deploy successful!
Preview URL: https://2945c744.lootlog-web-monorepo.pages.dev
Branch Preview URL: https://develop.lootlog-web-monorepo.pages.dev

View logs

@kamilwronka kamilwronka merged commit a333a12 into main Apr 12, 2026
31 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.

1 participant