Skip to content

fix: remove incorrect max-validity constraint on lifetime input - #47

Merged
lidel merged 2 commits into
mainfrom
fix/remove-incorrect-max-validity
Mar 2, 2026
Merged

lidel merged 2 commits into
mainfrom
fix/remove-incorrect-max-validity

Conversation

@lidel

@lidel lidel commented Feb 26, 2026 •

Copy link
Copy Markdown
Contributor

changes:

  • components/ipns-inspector.tsx: remove MAX_VALIDITY (was 1 year in seconds) used as max on a milliseconds input, causing browser validation error even for the "1 day" preset
  • lib/ipns-machine.tsx: fix misleading comment ("in seconds" -> "in milliseconds")

closes #26

- components/ipns-inspector.tsx: remove MAX_VALIDITY (was 1 year in
  seconds) used as max on a milliseconds input, causing browser
  validation error even for the "1 day" preset
- lib/ipns-machine.tsx: fix misleading comment ("in seconds" -> "in
  milliseconds")
DialogTrigger,
} from './ui/dialog'

const MAX_VALIDITY = 365 * 24 * 60 * 60 // 1 year in seconds

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ℹ️ afaik there is no 1y limit in specs, we should allow people to create records that are valid for 50 years if they wish, for testing purposes (we have such records in gateway-conformance)

storacha proof expired on 2026-01-24, comment out storacha creds
and add ipfs cluster credentials instead
@github-actions

Copy link
Copy Markdown

🚀 Build Preview on IPFS ready

@lidel
lidel requested a review from achingbrain February 26, 2026 01:36
@lidel
lidel merged commit c90883e into main Mar 2, 2026
20 checks passed
@lidel
lidel deleted the fix/remove-incorrect-max-validity branch March 2, 2026 13:53
@codecov

codecov Bot commented Mar 2, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@Chara-Freedom

Copy link
Copy Markdown

👍

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.

BUG: value should be lesser or equal to 31536000

2 participants