feat(about): show anti-abuse bond policy from node info event#617
Conversation
- Add an Anti-abuse bond section to the About screen, parsed from the kind-38385 info event - Hide it on legacy nodes, show status only when disabled, full parameters when enabled - Add localized labels, per-row help dialogs and a concept explanation in en/es/it/de/fr
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
ChangesAnti-abuse bond display in AboutScreen
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsStopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/features/settings/about_screen.dart`:
- Around line 551-565: The bond field rendering logic is coercing null values
into business defaults (false becomes "No", 0 becomes "0 days"), which
misrepresents missing node policy data. In the _buildInfoRowWithDialog calls for
bondSlashOnWaitingTimeout, bondSlashNodeSharePct, and bondPayoutClaimWindowDays,
replace the null coercion operators (?? false, ?? 0) with explicit null checks
that display a localized "not available" fallback string instead. Use
S.of(context) to obtain the localized unavailability message and pass it through
the appropriate formatting methods or directly to _buildInfoRowWithDialog so
that truly missing fields are visually distinguished from zero/false values.
Apply this change at both the anchor location in the diff
(bondSlashOnWaitingTimeout, bondSlashNodeSharePct, bondPayoutClaimWindowDays
fields) and at the sibling location (also applies to 617-638) where similar bond
field rendering occurs.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c4b5e99b-cb1d-4851-98db-095008e13fb6
📒 Files selected for processing (6)
lib/features/settings/about_screen.dartlib/l10n/intl_de.arblib/l10n/intl_en.arblib/l10n/intl_es.arblib/l10n/intl_fr.arblib/l10n/intl_it.arb
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary by CodeRabbit
New Features
Documentation