Skip to content

feat(frontend): show estimated end date/time preview in CreateStreamF…#185

Open
Danielodingz wants to merge 1 commit intoritik4ever:mainfrom
Danielodingz:wave4/163-estimated-end-date-preview
Open

feat(frontend): show estimated end date/time preview in CreateStreamF…#185
Danielodingz wants to merge 1 commit intoritik4ever:mainfrom
Danielodingz:wave4/163-estimated-end-date-preview

Conversation

@Danielodingz
Copy link
Copy Markdown

Closes #163

[wave4][frontend] Show estimated end date/time preview in CreateStreamForm

Summary

As the user fills in the Duration (hours) and Start In (minutes) fields, the form now computes and displays a real-time estimated end date/time preview directly below the duration input.

Changes

File: frontend/src/components/CreateStreamForm.tsx

  • Added the missing durationHours input field (existed in state and validation but was not rendered in the JSX).
  • Added an estimatedEndLabel computed value (inline IIFE, no hooks) that derives the estimated end timestamp from startAt + durationSeconds.
  • Rendered the preview as a <span className="field-hint"> with aria-live="polite" below the duration input — clears automatically when either field is empty or invalid.

Acceptance Criteria

  • Derived from startAt + durationSeconds in real time
  • Format: Ends: Apr 30, 2026 at 14:32 UTC
  • Updates on every keystroke without debounce
  • Clears when either field is empty/invalid
  • Uses Intl.DateTimeFormat — no external date library

Notes

  • No new dependencies introduced.
  • No existing logic, formatting, or unrelated code modified.
  • startAt derivation mirrors the existing logic in handleSubmit exactly.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

@Danielodingz is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@Danielodingz 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

@Danielodingz
Copy link
Copy Markdown
Author

Hey @ritik4ever please check PR and merge, Thanks

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.

[wave4][frontend] Show estimated end date/time preview as user fills form

1 participant