Progress

{#if failed}

Progress could not be loaded.

{:else if !progress}

Reading your progress…

{:else}
Today
{#if progress.goal.target > 0} {formatWords(progress.today)} / {formatWords(progress.goal.target)} {#if met}met{/if} {:else} {formatWords(progress.today)} {/if}
{#if progress.deadline}
Deadline
{formatWords(progress.deadline.added)} / {formatWords(progress.deadline.target)} {#if progress.deadline.met} met {:else if progress.deadline.missed} passed {/if} {#if progress.deadline.met} Met by {formatDeadline(progress.deadline.day)} {:else if progress.deadline.missed} Passed {formatDeadline(progress.deadline.day)} · {formatWords(progress.deadline.remaining)} short {:else if progress.deadline.pace === null} No writing days left before {formatDeadline(progress.deadline.day)} {:else} {progress.deadline.daysLeft} {progress.deadline.daysLeft === 1 ? 'writing day' : 'writing days'} left · {formatWords(progress.deadline.pace)}/day {/if}
{/if}
Last {CHART_DAYS} days
{formatWords(recentTotal)}
{#if progress.goal.streak}
Streak
{progress.runs.current} {progress.runs.current === 1 ? 'day' : 'days'} {#if progress.runs.best > progress.runs.current} best {progress.runs.best} {/if}
{/if}
{#if recentTotal === 0}

Nothing recorded in the last {CHART_DAYS} days.

{:else}
{#if targetLine !== null} {/if}
    {#each progress.recent as day (day.day)}
  1. {describe(day)}
  2. {/each}
{#each progress.recent as day (day.day)} {/each}
{#each progress.recent as day (day.day)} {WEEKDAY_NAMES[dayOfWeek(day.day)].slice(0, 2)} {/each}
{/if}
{ formData.set('day', localDay()); saving = true; message = null; return async ({ result }) => { saving = false; if (result.type === 'success') { message = 'Saved.'; onchanged(); return; } message = result.type === 'failure' ? String( (result.data as { message?: string } | undefined)?.message ?? 'The goal was not saved.' ) : 'The goal was not saved. Try again in a moment.'; }; }} >

Zero turns the target off.

Deadline

{#if deadlinePace !== null} About {formatWords(deadlinePace)} words a writing day. {:else if deadlineValid && deadlineRemaining === 0} The target is already met. {:else if deadlineValid} No writing days left before that date. {:else} Set both fields, or leave both empty. Words count from today. {/if}

Days off
{#each WEEK_ORDER as day (day)} {/each}

A day off does not break a streak.

{#if message}

{message}

{/if}

What counts

Words you add while writing in a scene, counted by the date on your own clock. Deleting words never takes them off the day, and a day with no new words is not counted. Pasted words count, because a save cannot tell a paste from typing. Notes, plot cards, imports and a co-author's words do not count. A deadline counts the same words, from the day you set it.

{/if}