Skip to content

Deactivate nostr backups, lendaswap, and lendasat announcements - #368

Merged
Kukks merged 3 commits into
masterfrom
claude/disable-news-banner-0Q23f
Mar 6, 2026
Merged

Kukks merged 3 commits into
masterfrom
claude/disable-news-banner-0Q23f

Conversation

@tiero

@tiero tiero commented Mar 5, 2026 •

Copy link
Copy Markdown
Member

Summary

This change deactivates three announcement items by marking them as inactive, preventing them from being displayed to users.

Changes

  • Marked 'nostr backups' announcement as inactive
  • Marked 'lendaswap' announcement as inactive
  • Marked 'lendasat' announcement as inactive

Details

All three announcements now have the inactive: true flag set, which will prevent them from being rendered in the announcements provider. The 'boltz' announcement was already marked as inactive and remains unchanged.

https://claude.ai/code/session_011DiNjK728A5gXHD9w8TXiN

Summary by CodeRabbit

  • Updates

    • Three announcements have been marked inactive and will no longer display by default.
  • Tests

    • Improved end-to-end wallet restore test by adding guarded waits and conditional dismissal of a transient prompt to reduce UI flakiness and improve reliability.

@coderabbitai

coderabbitai Bot commented Mar 5, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0ee3278e-e014-433c-bec1-42f240bf9606

📥 Commits

Reviewing files that changed from the base of the PR and between 2450892 and 58bcdb9.

📒 Files selected for processing (1)
  • src/test/e2e/utils.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/test/e2e/utils.ts

Walkthrough

Three announcements were marked inactive: true, reducing which announcements are treated as active. The e2e restoreWallet flow now conditionally waits for and dismisses a "Maybe later" button when present.

Changes

Cohort / File(s) Summary
Announcements Configuration
src/providers/announcements.tsx
Three entries in the announcements array were changed to include inactive: true, so they are excluded by the existing active-only filter.
E2E test utilities
src/test/e2e/utils.ts
restoreWallet updated to locate the "Maybe later" button by role, wait for visibility with a 1500ms timeout, conditionally click (forcing if visible), and wait for it to become hidden to avoid flaky dismissals.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • louisinger
  • bordalix
🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: deactivating three specific announcements (nostr backups, lendaswap, lendasat) by marking them as inactive in the announcements provider.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/disable-news-banner-0Q23f

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

The restoreWallet helper was doing a hard wait on the "Maybe later"
button from the announcement banner. Now that all announcements are
disabled, this button never appears, causing test timeouts. Updated
to use the same graceful pattern as createWallet.

https://claude.ai/code/session_011DiNjK728A5gXHD9w8TXiN
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 5, 2026 •

Copy link
Copy Markdown

Deploying wallet-mutinynet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 58bcdb9
Status: ✅  Deploy successful!
Preview URL: https://27496408.arkade-wallet.pages.dev
Branch Preview URL: https://claude-disable-news-banner-0.arkade-wallet.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 5, 2026 •

Copy link
Copy Markdown

Deploying wallet-bitcoin with  Cloudflare Pages  Cloudflare Pages

Latest commit: 58bcdb9
Status: ✅  Deploy successful!
Preview URL: https://b810da21.wallet-bitcoin.pages.dev
Branch Preview URL: https://claude-disable-news-banner-0.wallet-bitcoin.pages.dev

View logs

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
src/test/e2e/utils.ts (1)

117-122: Extract the “Maybe later” dismissal into a shared helper.

This block duplicates the same logic already used in createWallet, which can drift over time. Consider centralizing it in one helper and calling it from both flows.

♻️ Suggested refactor
 export async function createWallet(page: Page): Promise<void> {
   await page.goto('/')
   await page.getByText('Continue').click()
   await page.getByText('Continue').click()
   await page.getByText('Continue').click()
   await page.getByText('Skip for now').click()
   await page.getByText('+ Create wallet').click()
   await page.waitForSelector('text=Your new wallet is live!', { state: 'visible' })
   await page.getByText('Go to wallet').click()
-  const maybeLater = page.getByRole('button', { name: 'Maybe later' })
-  await maybeLater.waitFor({ state: 'visible', timeout: 15000 }).catch(() => {})
-  if (await maybeLater.isVisible()) {
-    await maybeLater.click({ force: true })
-    await maybeLater.waitFor({ state: 'hidden' }).catch(() => {})
-  }
+  await dismissMaybeLaterIfVisible(page)
 }
@@
 async function restoreWallet(page: Page, nsec: string): Promise<void> {
@@
   await page.getByText('Continue').click()
   await page.getByText('Go to wallet').click()
-  const maybeLater = page.getByRole('button', { name: 'Maybe later' })
-  await maybeLater.waitFor({ state: 'visible', timeout: 15000 }).catch(() => {})
-  if (await maybeLater.isVisible()) {
-    await maybeLater.click({ force: true })
-    await maybeLater.waitFor({ state: 'hidden' }).catch(() => {})
-  }
+  await dismissMaybeLaterIfVisible(page)
 }
+
+async function dismissMaybeLaterIfVisible(page: Page): Promise<void> {
+  const maybeLater = page.getByRole('button', { name: 'Maybe later' })
+  await maybeLater.waitFor({ state: 'visible', timeout: 15000 }).catch(() => {})
+  if (await maybeLater.isVisible()) {
+    await maybeLater.click({ force: true })
+    await maybeLater.waitFor({ state: 'hidden' }).catch(() => {})
+  }
+}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/test/e2e/utils.ts` around lines 117 - 122, Extract the repeated "Maybe
later" dismissal logic into a single helper function (e.g.,
dismissMaybeLaterIfVisible) that accepts the Playwright Page, performs
getByRole('button', { name: 'Maybe later' }), waits up to 15s for visibility,
clicks if visible with force, and waits for hidden, swallowing expected errors;
replace the duplicate block in utils.ts and the similar code in createWallet to
call this new helper so both flows share one implementation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@src/test/e2e/utils.ts`:
- Around line 117-122: Extract the repeated "Maybe later" dismissal logic into a
single helper function (e.g., dismissMaybeLaterIfVisible) that accepts the
Playwright Page, performs getByRole('button', { name: 'Maybe later' }), waits up
to 15s for visibility, clicks if visible with force, and waits for hidden,
swallowing expected errors; replace the duplicate block in utils.ts and the
similar code in createWallet to call this new helper so both flows share one
implementation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: aec1b953-dd85-4ec5-9824-534d7de7d843

📥 Commits

Reviewing files that changed from the base of the PR and between 746e024 and 2450892.

📒 Files selected for processing (1)
  • src/test/e2e/utils.ts

Comment thread src/test/e2e/utils.ts Resolved
Co-authored-by: João Bordalo <bordalix@users.noreply.github.com>
Signed-off-by: Marco Argentieri <3596602+tiero@users.noreply.github.com>
@Kukks
Kukks merged commit ee6162d into master Mar 6, 2026
5 checks passed
@Kukks
Kukks deleted the claude/disable-news-banner-0Q23f branch March 6, 2026 08:45
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.

4 participants