Skip to content

Fix sub-minute countdown, hook test coverage, e2e CI, and lighthouse env var - #323

Merged
Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
christabel888:fix/issues-291-295-302-303
Jul 24, 2026
Merged

Austinaminu2 merged 1 commit into
FlowwStar:mainfrom
christabel888:fix/issues-291-295-302-303

Conversation

@christabel888

Copy link
Copy Markdown
Contributor

Closes #291
Closes #295
Closes #302
Closes #303

#291 — sub-minute countdown showing "0m 45s"

formatTimeRemaining in lib/stream-utils.ts now only emits the minutes segment when minutes > 0 or a larger unit (hours) is already present, matching the existing pattern used for the days check. Sub-minute countdowns now read 45s instead of 0m 45s.

#295 — hook test coverage

Added unit tests under __tests__/hooks/ for the previously untested hooks: use-wallet, use-webhooks, use-token-price (+ usePortfolioValue/formatUsd), use-activity-feed, use-form-draft (+ clearExpiredDrafts), use-stream-history, use-show-usd, useBulkActions, useBulkSelect, and useNotifications, following the mocking conventions already used in use-contract.test.ts / use-streams.test.ts.

#302 — e2e Playwright tests never run in CI

Verified this is already resolved on main (see .github/workflows/ci.yml's e2e job, added in 0adc415) — it installs Playwright browsers and runs npx playwright test on every push/PR to main. Closing as already addressed.

#303 — Lighthouse CI env var

.github/workflows/lighthouse.yml already set NEXT_PUBLIC_STREAM_CONTRACT_ID_TESTNET, but was missing the _MAINNET counterpart. Added NEXT_PUBLIC_STREAM_CONTRACT_ID_MAINNET to the build step's env so both network variants are covered.

… var

- lib/stream-utils.ts: only render the minutes segment in
  formatTimeRemaining when minutes>0 or a larger unit is present, so
  sub-minute durations show "45s" instead of "0m 45s" (FlowwStar#291)
- __tests__/hooks/: add unit tests for previously untested hooks
  (use-wallet, use-webhooks, use-token-price, use-activity-feed,
  use-form-draft, use-stream-history, use-show-usd, useBulkActions,
  useBulkSelect, useNotifications) (FlowwStar#295)
- .github/workflows/lighthouse.yml: also pass
  NEXT_PUBLIC_STREAM_CONTRACT_ID_MAINNET at build time alongside the
  existing _TESTNET var, matching what lib/stellar.ts reads (FlowwStar#303)

Closes FlowwStar#291
Closes FlowwStar#295
Closes FlowwStar#303
@drips-wave

drips-wave Bot commented Jul 24, 2026

Copy link
Copy Markdown

@christabel888 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Austinaminu2
Austinaminu2 merged commit c19d29a into FlowwStar:main Jul 24, 2026
2 of 12 checks passed

This branch had an error being deployed

1 failed deployment
staging — 0cd949fb Deployed Jul 24, 2026 by christabel888 via deploy-staging #68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants