DEV Community

Shimio Notes
Shimio Notes

Posted on

Keep a saved video trim when the pricing quote changes

A clip editor has two different jobs. It records the passage someone selected, and it tells them whether that passage can be submitted now. Mixing those jobs makes a later quote change feel like lost work.

Store the interval separately

Save the start and end times as the selection. Keep the quote as a derived result of that interval, the current rate, and the balance. For example, a saved interval from 12 to 18 seconds still describes the same six seconds after a new quote arrives.

If the balance falls below the quote, keep the handles where the person put them. Show the shortfall next to the selection and let them decide whether to shorten it. Preserve the source preview so that a second edit can start from the same moment in the clip.

Test the actions in order

  1. Save a six-second selection at a recognizable point in a longer file.
  2. Change the available balance while the editor is closed.
  3. Reopen the editor and check the selected start, end, and preview.
  4. Try to submit and confirm that the current quote is checked again.

Also cover the cases that genuinely invalidate a saved selection, such as replacing the source file or changing to a mode with a shorter maximum. Those changes need a clear message and a chance to review the range before submitting.

This note was drafted with AI assistance and based on an actual media-upload design review.

Top comments (0)