Skip to content

fix: restore mobile transitions and sonar coverage - #12

Merged
thomasluizon merged 1 commit into
mainfrom
fix/mobile-transitions-and-parity
Apr 6, 2026
Merged

fix: restore mobile transitions and sonar coverage#12
thomasluizon merged 1 commit into
mainfrom
fix/mobile-transitions-and-parity

Conversation

@thomasluizon

Copy link
Copy Markdown
Owner

No description provided.

@vercel

vercel Bot commented Apr 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
orbit-ui-mobile-web Ignored Ignored Apr 6, 2026 1:26pm

@thomasluizon
thomasluizon merged commit 6bf7d8f into main Apr 6, 2026
4 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Apr 6, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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

Copy link
Copy Markdown

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: 6fafded25e

ℹ️ 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".

const locale = i18n.language;
const dateFnsLocale = locale === "pt-BR" ? ptBR : enUS;

const { data: fetchedLogs } = useHabitLogs(externalLogs ? null : habitId);

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 Skip logs query when parent already loads full detail

This call triggers a second logs request whenever HabitCalendar is rendered with logs === null (the initial state in HabitDetailDrawer while useHabitFullDetail is still loading). Because useHabitFullDetail already returns logs, opening the drawer now issues two API calls for the same log data on the first load, which increases latency and unnecessary backend traffic. Gate this query on an explicit loading state from the parent (or pass an empty-array sentinel) so only one source fetches logs.

Useful? React with 👍 / 👎.

@thomasluizon
thomasluizon deleted the fix/mobile-transitions-and-parity branch April 6, 2026 14:29
thomasluizon added a commit that referenced this pull request Jun 27, 2026
… guards (#12) (#324)

Root cause: setMenuVisible ran only inside an async measureInWindow callback that silently no-ops on Android Fabric release builds. Now opens synchronously via a centralized useAnchoredMenu hook + MenuAnchorHost (all 4 sites) with a fallback anchor. Guards: behavioral test (menu opens when measureInWindow never fires / ref null) + no-gorhom-sheet lint rule (bans gorhom + imperative sheet present/dismiss outside the wrapper). Web unaffected (DOM Popover).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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