<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mary cooper</title>
    <description>The latest articles on DEV Community by mary cooper (@mary_cooper_f273bed42f5a3).</description>
    <link>https://dev.to/mary_cooper_f273bed42f5a3</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4121169%2F3be990ae-7fa2-4816-b122-ef9d021d97aa.png</url>
      <title>DEV Community: mary cooper</title>
      <link>https://dev.to/mary_cooper_f273bed42f5a3</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mary_cooper_f273bed42f5a3"/>
    <language>en</language>
    <item>
      <title>Designing progress for slow jobs: what a video-to-notes pipeline taught me about failure states</title>
      <dc:creator>mary cooper</dc:creator>
      <pubDate>Fri, 30 Oct 2026 15:18:00 +0000</pubDate>
      <link>https://dev.to/mary_cooper_f273bed42f5a3/designing-progress-for-slow-jobs-what-a-video-to-notes-pipeline-taught-me-about-failure-states-2fc6</link>
      <guid>https://dev.to/mary_cooper_f273bed42f5a3/designing-progress-for-slow-jobs-what-a-video-to-notes-pipeline-taught-me-about-failure-states-2fc6</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Disclosure: I'm the maker of FrameNotes, the tool used as the example here. This post is about a design decision, not a feature tour.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Most web requests finish before the user notices them. A video conversion doesn't. Upload, frame analysis, audio extraction, transcription through a third-party provider, then building several export files: that's a long-running job with several ways to fail, and some of those failures happen in services you don't control.&lt;/p&gt;

&lt;p&gt;My first version of &lt;a href="https://framenotes.org/video-to-notes?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=failure_states" rel="noopener noreferrer"&gt;FrameNotes&lt;/a&gt; handled this the lazy way: one spinner and a "Processing..." label. People refreshed the page, re-uploaded the same file, and reported "it's broken" when it was simply on step three. This is what I changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Split the job into stages the user can see
&lt;/h2&gt;

&lt;p&gt;Instead of one opaque job, the pipeline reports four named stages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Upload&lt;/strong&gt;: the browser sends the file. There is no server task yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Visual extraction&lt;/strong&gt;: detect meaningful visual changes, drop near-duplicate frames.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transcription&lt;/strong&gt;: extract audio, send it to the speech-to-text provider, align segments to frames by timestamp.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export&lt;/strong&gt;: build HTML, Markdown ZIP, DOCX, PDF, and presentation-style HTML.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each stage reports a status and a percentage. The point isn't precision. It's that when something stalls, the user and I both know &lt;em&gt;where&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;A simplified sketch of the status payload (illustrative, not the exact production schema):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"task_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"abc123"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"stage"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"transcribing"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"progress"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"status"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"running"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Make the task survive a refresh
&lt;/h2&gt;

&lt;p&gt;Once the upload completes, the API returns a task ID and processing continues as a background job. The frontend stores recent task IDs in &lt;code&gt;localStorage&lt;/code&gt;, so after a refresh it can query their status again instead of starting over. Simplified sketch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;recentTasks&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;rememberTask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ids&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;[]&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;ids&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;)].&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)));&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;restoreTasks&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ids&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;localStorage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getItem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;[]&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;all&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ids&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`/api/tasks/&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;id&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;())));&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There's one honest caveat I put in the UI: &lt;strong&gt;don't close the page during the initial upload&lt;/strong&gt;, because until the upload finishes there's no server task to restore. Saying that clearly helped more than any clever retry logic.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Fail with a message, never with made-up output
&lt;/h2&gt;

&lt;p&gt;The hardest rule to keep: if transcription fails, show an error. Don't fill the gap with placeholder or generated text. A note tool that quietly invents a transcript is worse than one that fails.&lt;/p&gt;

&lt;p&gt;The failure causes I actually see, and the message each one maps to:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cause&lt;/th&gt;
&lt;th&gt;What the user sees&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;File above the beta limit (30 min / 500 MB)&lt;/td&gt;
&lt;td&gt;Limit message before processing starts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Damaged or unsupported media stream&lt;/td&gt;
&lt;td&gt;Upload/processing error at stage 1–2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No usable audio track&lt;/td&gt;
&lt;td&gt;Transcription-stage error&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Provider quota or availability issue&lt;/td&gt;
&lt;td&gt;Transcription-stage error, retry later&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Too little visual change&lt;/td&gt;
&lt;td&gt;Note with few frames, explained, not padded&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  4. Show limits before the job, not after
&lt;/h2&gt;

&lt;p&gt;Accepted formats (MP4, MOV, AVI, MKV) and size/length limits are shown at upload time. Rejecting a file in one second is kinder than rejecting it after a long wait.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do earlier next time
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Design the status model &lt;strong&gt;before&lt;/strong&gt; the pipeline, not as a patch after.&lt;/li&gt;
&lt;li&gt;Treat every external dependency (here, the speech-to-text provider) as a stage that can fail on its own.&lt;/li&gt;
&lt;li&gt;Write the error copy at the same time as the happy path.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building anything with slow background jobs, such as media processing, imports, or report generation, I'd love to hear how you handle progress and recovery. And if you want to see the stages in action on a short video of your own, the tool is at &lt;a href="https://framenotes.org/" rel="noopener noreferrer"&gt;framenotes.org&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Written by Mary, the maker of FrameNotes.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ux</category>
      <category>architecture</category>
      <category>sideprojects</category>
    </item>
    <item>
      <title>I Built FrameNotes to Keep Screenshots and Transcripts Together</title>
      <dc:creator>mary cooper</dc:creator>
      <pubDate>Sat, 12 Sep 2026 15:39:21 +0000</pubDate>
      <link>https://dev.to/mary_cooper_f273bed42f5a3/i-built-framenotes-to-keep-screenshots-and-transcripts-together-1fln</link>
      <guid>https://dev.to/mary_cooper_f273bed42f5a3/i-built-framenotes-to-keep-screenshots-and-transcripts-together-1fln</guid>
      <description>&lt;p&gt;A transcript can preserve every word of a tutorial and still leave you wondering which button the speaker clicked.&lt;/p&gt;

&lt;p&gt;That is the problem behind &lt;strong&gt;FrameNotes&lt;/strong&gt;, a project I am building to turn short videos into visual notes. The idea is to keep the screen, the spoken explanation, and the timestamp together so a recording becomes easier to review.&lt;/p&gt;

&lt;h2&gt;
  
  
  The unit of a note
&lt;/h2&gt;

&lt;p&gt;For visual material, a useful note needs three parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An image:&lt;/strong&gt; the diagram, slide, or interface state being discussed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A time range:&lt;/strong&gt; a way to locate that moment in the source.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The corresponding transcript:&lt;/strong&gt; the explanation that gives the image context.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is especially useful for software walkthroughs. “Open this panel” means little without the screen; a screenshot alone may not explain why the panel matters.&lt;/p&gt;

&lt;p&gt;Here is an illustration of the format:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F162mvuco3mavdjq3nxrg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F162mvuco3mavdjq3nxrg.png" alt="Three illustrative video-note cards showing evaporation, condensation, and rainfall with timestamps and explanatory text." width="800" height="1334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Illustrative example only. The visuals and sample narration are AI-generated; this is not a screenshot of a real video conversion.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the beta does
&lt;/h2&gt;

&lt;p&gt;FrameNotes accepts short video uploads, extracts selected keyframes, transcribes the audio, and builds downloadable notes. When the transcription provider returns timestamps, transcript segments can be matched to the relevant part of the video.&lt;/p&gt;

&lt;p&gt;The workflow has distinct stages: upload, visual extraction, transcription, and export. Keeping those stages visible helps explain where a job is spending time or where it failed.&lt;/p&gt;

&lt;p&gt;The output is intended to remain useful outside the website. HTML provides a reading document, while a Markdown ZIP keeps editable text and its image folder together. DOCX is another option for a conventional document workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three design tradeoffs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;More frames are not always better.&lt;/strong&gt; Repeated screenshots make a note longer without necessarily making it clearer. The aim is to preserve meaningful visual changes, although automatic selection can still miss details.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transcription is a dependency, not a certainty.&lt;/strong&gt; Noise, overlapping speech, and provider availability affect the result. Important commands, names, and numbers still need to be checked against the recording.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Portable files need portable images.&lt;/strong&gt; A Markdown document is less useful if its screenshots disappear when it moves to another folder. Packaging the note with its images is part of the workflow, rather than an afterthought.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current limits
&lt;/h2&gt;

&lt;p&gt;This is a short-video beta: keep videos under 30 minutes and local files under 500 MB. Local upload is the recommended route. YouTube links are a convenience option, but access restrictions can prevent a server from retrieving a video even when it plays in a browser.&lt;/p&gt;

&lt;p&gt;It also involves server-side processing and a speech-to-text provider. Use a recording you are authorized to process, avoid confidential material, and download the results you want to keep.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would like feedback on
&lt;/h2&gt;

&lt;p&gt;You can explore the project at &lt;strong&gt;&lt;a href="https://framenotes.org/" rel="noopener noreferrer"&gt;FrameNotes&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For developers learning from recorded tutorials, which is the bigger problem: choosing the right screenshots, matching explanations to them, or moving the finished notes into your existing workflow?&lt;/p&gt;

&lt;p&gt;I would particularly like to understand where this format helps and where plain text is enough.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: I am the creator of FrameNotes. This article was prepared with AI assistance using the project's current public documentation. The illustrative image above is also AI-generated.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
