Skip to content

feat(frontend): implement SwapDetailsOneSec component#12627

Merged
DenysKarmazynDFINITY merged 1 commit intomainfrom
feat(frontend)/swap-onesec-details
Apr 28, 2026
Merged

feat(frontend): implement SwapDetailsOneSec component#12627
DenysKarmazynDFINITY merged 1 commit intomainfrom
feat(frontend)/swap-onesec-details

Conversation

@DenysKarmazynDFINITY
Copy link
Copy Markdown
Contributor

Motivation

We need to implement a component for displaying an information about the OneSec provider.

Screenshot 2026-04-28 at 11 34 28

Copilot AI review requested due to automatic review settings April 28, 2026 09:34
@DenysKarmazynDFINITY DenysKarmazynDFINITY requested a review from a team as a code owner April 28, 2026 09:34
Copy link
Copy Markdown
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

Implements a new swap-details UI component specific to the OneSec provider, along with i18n keys and a test suite to validate fee rendering/formatting.

Changes:

  • Added SwapDetailsOneSec Svelte component to display OneSec transfer fee and protocol fee.
  • Added i18n keys for OneSec fee labels across all supported locales (with English strings provided).
  • Added a unit test suite covering protocol-fee formatting and conditional rendering of the transfer-fee row.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/frontend/src/lib/components/swap/SwapDetailsOneSec.svelte New component that renders OneSec-specific fee rows using swap context + i18n.
src/frontend/src/tests/lib/components/swap/SwapDetailsOneSec.spec.ts Tests for OneSec fee labels, formatting, and conditional rendering.
src/frontend/src/lib/types/i18n.d.ts Extends swap i18n typings with OneSec fee label keys.
src/frontend/src/lib/i18n/en.json Adds English strings for OneSec transfer/protocol fee labels.
src/frontend/src/lib/i18n/ar.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/cs.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/de.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/es.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/fr.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/hi.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/it.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/ja.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/ko-KR.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/pl.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/pt.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/ru.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/vi.json Adds OneSec i18n keys (empty → fallback).
src/frontend/src/lib/i18n/zh-CN.json Adds OneSec i18n keys (empty → fallback).

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

Comment thread src/frontend/src/lib/components/swap/SwapDetailsOneSec.svelte
@DenysKarmazynDFINITY DenysKarmazynDFINITY added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit 946f419 Apr 28, 2026
85 checks passed
@DenysKarmazynDFINITY DenysKarmazynDFINITY deleted the feat(frontend)/swap-onesec-details branch April 28, 2026 11:33
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.

3 participants