Behind the scenes

What happens behind the Save button?

September 7, 2026 · Jitka Klingenbergová

Open a page, change a sentence, and click Save. That simple result rests on hundreds of decisions, checks, and situations the user should never have to see.

Direct Edit exists so the owner of a finished website can change a phone number, price, or photo without opening the source code. Building such a tool involves more than adding buttons. Every change has to work across different pages, preserve their HTML, protect sign-in, and keep yesterday's working behaviour intact.

What does that development process look like in practice and in numbers? Here is a snapshot of Direct Edit on September 7, 2026.

What can Direct Edit actually do?

Direct Edit updates a finished static website directly on its pages. The simple interface now covers a broad set of tasks:

  • editing and formatting text, links, buttons, icons, and HTML when needed,
  • uploading and replacing images and videos, including captions and alternative text,
  • organising a media library into folders and automatically optimising images,
  • copying, moving, and removing prepared page sections,
  • editing SEO fields, canonical URLs, robots settings, and social sharing information,
  • managing sitemap.xml and llms.txt and checking a page before publication,
  • creating automatic backups, restoring earlier versions, and protecting concurrent edits,
  • managing users, roles, Czech and English interfaces, sign-in links, and two-factor authentication,
  • checking for and installing updates.

The editor itself runs on ordinary hosting without a database and writes changes directly to the website files.

211 small steps instead of one large rewrite

From the first commit on February 14 through September 7, 2026, the project accumulated 211 individual records of code changes. A commit is a saved development step: it can add a feature, fix a bug, clarify a message, or add a test.

Small steps are easier to review. When a problem appears, the history shows which change introduced it and why that change was made. Development becomes a traceable sequence of decisions rather than one large file being rewritten over and over.

31 releases and four parts of one deployment

The same period produced 31 tagged releases: 5 major, 18 minor, and 8 patch releases. A version number represents more than a new ZIP file. It identifies a specific state of the editor, together with its changes, tests, and a route back if something goes wrong.

Publishing a new version also means preparing and deploying several connected parts:

  • the directedit.dev product website,
  • the licensing and update service that verifies licences and makes new versions available,
  • the editor installation package itself,
  • the playground where the changes can be tried safely.

Every part has to show the correct version and work with the others. Only then is the update ready to go out.

279 tests behind a simple “it works”

Direct Edit currently has 221 scenarios that run in a real browser and another 58 integration tests. That makes 279 automated tests in total.

They include user-facing functional scenarios, integration checks of individual components, security tests for sign-in and submitted data, regression tests for previously discovered bugs, and checks for mobile layouts, translations, and offline operation.

A browser test behaves much like a person. It opens the editor, signs in, selects an element, changes its content, and saves the page. It then checks both the visible result and the resulting HTML file.

These tests verify, for example, that Direct Edit:

  • changes a piece of text without touching neighbouring elements,
  • preserves links, CSS classes, IDs, and accessibility attributes,
  • uploads an image or video into the selected folder,
  • creates a backup and can restore it,
  • warns when the same file has changed elsewhere,
  • works on both desktop and narrow mobile screens,
  • rejects an unsafe link, a path outside the website, or a disallowed file.

Integration tests focus on smaller building blocks. They exercise sign-in codes, expiry times, path handling, user data, updates, and communication with the licensing service.

Before a release, the automated tests are followed by a manual functional and visual review. This catches details that can only be judged properly while actually using the editor.

Sign-in has more states than the screen suggests

The sign-in screen contains a few fields and a button. Underneath are passwords, one-time email codes, two-factor authentication, recovery codes, remembered devices, expiration, and protection against repeated attempts.

The tests combine those routes. Password and email-code sign-in are each checked with TOTP and recovery codes. Separate scenarios verify that a remembered login is created only after the second factor succeeds, and that an expired or outdated token cannot gain access.

The user mostly sees a calm sign-in flow. The invisible branches determine whether the account remains protected when someone follows a path we did not expect.

One line of tests for every four lines of product code

A line count is not a measure of quality by itself. The ratio is more useful: alongside roughly 37,000 lines of product code, the project contains almost 9,700 lines of test code. The test code is about 26% of the size of the product code — approximately one line checking behaviour for every four lines of the product.

A test does not add a new button. Its value appears later: an image change reveals a video regression, a sign-in update protects remembered devices, or a visual adjustment exposes an upload button clipped on mobile.

Tests cannot prove that software will never contain a bug. They give every future change a network of concrete expectations. That network becomes more valuable as the project grows.

Two languages with 719 messages each

The editor currently uses 719 text entries in Czech and the same 719 in English. They include button labels, explanations, errors, confirmations, and security messages.

Translations are checked automatically as well. If one language is missing a message or the code requests a translation that does not exist, a test reports it. Translation is part of the feature from the start.

What actually happens when you click Save?

The editor verifies permission, checks whether the file changed in the meantime, validates the submitted data, creates a backup, finds the correct element, writes the change, and checks the resulting HTML. Automated tests then make sure a later development step does not break this sequence.

All that work has one purpose: the user should not have to think about it. They should see the page they know, update the right place, and trust the Save button to do exactly what it promises.

These figures are a repository snapshot from September 7, 2026. They will change with every future version.

← Back to blog