Skip to content

Conversation

@AntonioVentilii
Copy link
Collaborator

Motivation

Library gix-components already has an isIOS util. We can remove the ones we created.

@AntonioVentilii AntonioVentilii requested a review from a team as a code owner November 13, 2025 14:42
Copilot AI review requested due to automatic review settings November 13, 2025 14:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the codebase to use the built-in isIOS utility from the @dfinity/gix-components library instead of a custom implementation, eliminating duplicate code.

  • Replaced all usages of the local isIos function with isIOS from @dfinity/gix-components
  • Removed the local isIos implementation from device.utils.ts
  • Removed associated test cases for the removed function

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/frontend/src/routes/+layout.svelte Updated to import and use isIOS from @dfinity/gix-components for modal scroll locking logic
src/frontend/src/lib/utils/device.utils.ts Removed the local isIos function implementation
src/frontend/src/lib/components/ui/SkeletonText.svelte Updated to import and use isIOS from @dfinity/gix-components for animation control
src/frontend/src/lib/components/ui/SkeletonLogo.svelte Updated to import and use isIOS from @dfinity/gix-components for animation control
src/frontend/src/lib/components/ui/Logo.svelte Updated to import and use isIOS from @dfinity/gix-components for transition handling
src/frontend/src/lib/components/tokens/TokensList.svelte Updated to import and use isIOS from @dfinity/gix-components for animation parameter configuration
src/frontend/src/lib/components/hero/Balance.svelte Updated to import and use isIOS from @dfinity/gix-components for loading state animation
src/frontend/src/lib/components/exchange/ExchangeBalance.svelte Updated to import and use isIOS from @dfinity/gix-components for loading state animation
src/frontend/src/tests/lib/utils/device.utils.spec.ts Removed test cases for the deleted isIos function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@roman-nazaruk roman-nazaruk left a comment

Choose a reason for hiding this comment

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

Thnx

@AntonioVentilii AntonioVentilii added this pull request to the merge queue Nov 13, 2025
Merged via the queue into main with commit c72be9f Nov 13, 2025
85 checks passed
@AntonioVentilii AntonioVentilii deleted the refactor-frontend/Use-built-in-util-isIOS-from-gix-cmp branch November 13, 2025 15:16
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