Repository navigation
Fix sub-minute countdown, hook test coverage, e2e CI, and lighthouse env var - #323
Merged
Austinaminu2 merged 1 commit intoJul 24, 2026
Merged
Conversation
… 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
|
@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! 🚀 |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #291
Closes #295
Closes #302
Closes #303
#291 — sub-minute countdown showing "0m 45s"
formatTimeRemaininginlib/stream-utils.tsnow only emits the minutes segment whenminutes > 0or a larger unit (hours) is already present, matching the existing pattern used for thedayscheck. Sub-minute countdowns now read45sinstead of0m 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, anduseNotifications, following the mocking conventions already used inuse-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'se2ejob, added in0adc415) — it installs Playwright browsers and runsnpx playwright teston every push/PR tomain. Closing as already addressed.#303 — Lighthouse CI env var
.github/workflows/lighthouse.ymlalready setNEXT_PUBLIC_STREAM_CONTRACT_ID_TESTNET, but was missing the_MAINNETcounterpart. AddedNEXT_PUBLIC_STREAM_CONTRACT_ID_MAINNETto the build step's env so both network variants are covered.