Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add break-all to tx reason field #340

Merged

Conversation

tx-nikola
Copy link
Contributor

@tx-nikola tx-nikola commented Dec 2, 2024

What ❔

This PR adds a simple break-all to the reason field of the Transactions view, so that when the transaction returns the error, it doesn't mess up the UI - the error text just breaks into next lines.

Why ❔

When the transaction fails, if the error text is too long, it will make the whole tx UI scrollable for no reason, so we just add break-all to fix the UI.
This is a fix for this issue: #329
Example of a failed transaction and error text that makes the table scrollable: https://sepolia.explorer.zksync.io/tx/0xe8d8ec3d36bc6cbbcf3453fa855fb64b56c547411000a631fd41a6c622ce1d79#overview

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

@tx-nikola tx-nikola added bug Something isn't working frontend Task requires changes to the frontend implementation labels Dec 2, 2024
@tx-nikola tx-nikola self-assigned this Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

API E2E Test Results

207 tests   207 ✅  19s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit 61b4bc8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 2, 2024

Unit Test Results

    4 files    263 suites   11m 15s ⏱️
2 125 tests 2 124 ✅ 1 💤 0 ❌
2 337 runs  2 336 ✅ 1 💤 0 ❌

Results for commit 61b4bc8.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 2, 2024

Visit the preview URL for this PR:
https://staging-scan-v2--pr-340-dtf725an.web.app

@tx-nikola tx-nikola force-pushed the tx-nikola-txfusion-add-word-break-to-tx-reason-column branch 3 times, most recently from 827bea1 to 7dab573 Compare December 4, 2024 14:29
@tx-nikola tx-nikola force-pushed the tx-nikola-txfusion-add-word-break-to-tx-reason-column branch from 7dab573 to 61b4bc8 Compare December 4, 2024 14:30
@tx-nikola tx-nikola merged commit 9317a70 into main Dec 4, 2024
23 checks passed
@tx-nikola tx-nikola deleted the tx-nikola-txfusion-add-word-break-to-tx-reason-column branch December 4, 2024 14:44
Copy link

github-actions bot commented Dec 4, 2024

🎉 This PR is included in version 2.56.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend Task requires changes to the frontend implementation released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants