Skip to content

Dartvel 0.12.2

Choose a tag to compare

@Danroyal001 Danroyal001 released this 14 Oct 17:03
· 737 commits to main since this release
  • Fix: a web-server binary's backend saw no pages. DVSitePages.load() read dartvel_routes.json from disk, but a web-server binary serves its site from the pack inside it, so every page-reading backend (a site search, an llms.txt) got an empty list; dartvel.dev's search answered every query with a 500 for two days. The manifest is now read through the site's registered asset source.
  • Every password field in every Dartvel app now has the same show/hide control, including Studio's sign-in, its first-run setup and its record editor's write-only fields, which had none. It is one toggle button named "Show password" (also its tooltip) with a pressed state: aria-pressed on the web, the toggled state elsewhere. Changed: it no longer renames itself "Hide password" once pressed, so a test that looked for that label should look for the pressed state instead. In Studio's sign-in, Tab from the password now reaches the eye before Sign in, as it already did in forms.
  • The server-rendered HTML now carries a page's form fields: each captured text field is a labelled <input> (or <textarea>) with data-dv-field, and a password input carries the eye as a real <button aria-pressed> that works before Flutter has loaded. Studio's sign-in and setup documents carry their fields too. When Flutter takes over, a field keeps what was typed into the document and whether it was revealed, and the document's input is emptied. With scripting off the document's eye is hidden, since it cannot work there.
  • Security: GET /metrics is private by default. It answers callers on loopback or a private network whose request no proxy forwarded, and anyone sending Authorization: Bearer with the server's DARTVEL_METRICS_TOKEN; everyone else gets a 404. It used to serve request counts, route timings and uptime to anyone (dartvel.dev did). dartvel metrics --token (default DARTVEL_METRICS_TOKEN) sends the token. A scraper on the internet needs the token now.