diff --git a/CLAUDE.md b/CLAUDE.md index bf3f0c5b..61016ad1 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ Guidance for Claude Code in this repository. `docs/architecture/` is the detaile ## Project -DevNotes — desktop notes app for developers, in **Rust alone**: an **egui** window over a core, in one process (since 1.0.0; no WebView, no IPC). The core is **`crates/engine`** (SQLite via Diesel, vault, the in-memory index, HTTP, tools); the interface is `crates/ui`, the binary `crates/app` (`devnotes`); beside them `text` (the editing core), `richtext`, `drawing`, `i18n` and `platform` (what is asked of the OS). Notes are snippets (body + language + `{{fields}}`), Notes (Markdown, written formatted), todo lists, Calcul sheets (one result a line) or drawings; they live in spaces and folders, with search, tags, a canvas and a board, trash with undo, revisions, bulk actions, attachments, import/export, a palette, requests, tools and spaces. Libraries are **encrypted**, several, each behind its own passphrase. +DevNotes — desktop notes app for developers, in **Rust alone**: an **egui** window over a core, in one process (since 1.0.0; no WebView, no IPC). The core is **`crates/engine`** (SQLite via Diesel, vault, the in-memory index, HTTP, tools); the interface is `crates/ui`, the binary `crates/app` (`devnotes`); beside them `text` (the editing core), `richtext`, `drawing`, `i18n`, `platform` (what is asked of the OS) and `brand` (the application's names). Notes are snippets (body + language + `{{fields}}`), Notes (Markdown, written formatted), todo lists, Calcul sheets (one result a line) or drawings; they live in spaces and folders, with search, tags, a canvas and a board, trash with undo, revisions, bulk actions, attachments, import/export, a palette, requests, tools and spaces. Libraries are **encrypted**, several, each behind its own passphrase. The Angular application is no longer in the tree: it stays whole at the tag `angular-reference` (its `src/` and `e2e/`; `git show angular-reference:src/app/…`, D32). A screen that existed there keeps its look and behaviour; its captures are the files of the `angular-reference` pre-release. @@ -33,7 +33,7 @@ Principles: - ⚠️ **Nothing answers until unlocked**: `Db = Mutex>` is empty until `vault::unlock`; services answer `Locked`. → "Encryption at rest". - **Sealed vs plain**: titles, bodies, sources, items, names, field values, attachments are sealed; what SQL filters/sorts/joins on (tags, instants, ids, `kind`, `language`, `priority`) is not. Never SQLCipher. → "What is sealed, and what is not". - **Passphrase wraps the key** and is `zeroize`d before a service returns. ⚠️ Changing it re-wraps every retained backup's `vault.json`. The 12-char floor applies only when _choosing_ a phrase, not unlocking. → "Changing the passphrase", "The floor". -- ⚠️ An open library answers `Library::directory()`; `libraries::open_directory` is only for when none is open. Names in `layout.rs` are the address of an installed library — never rename. → "Several libraries, and the registry beside them". +- ⚠️ An open library answers `Library::directory()`; `libraries::open_directory` is only for when none is open. Names in `layout.rs` are the address of an installed library: they follow D36's values, and renaming is the owner's call alone. → "Several libraries, and the registry beside them", "The application's names". - **Switching library resets the library scope of the UI** (→ "State between frames"); neither the open nor the last library can be deleted. - **Two `preferences.json`**: `devnotes.notes.*` is per library, the rest per application (`automaticBackups` stays application-level: the interface reads it and hands the core a plain flag). → "Two scopes of preference, one prefix apart". - **Profiles**: the binary defaults to `com.devnotes.app`, the packages' identifier (`com.devnotes.app.dev` until 1.0.0, D16); ⚠️ never two processes on one profile — the in-memory index assumes it is the only writer (D16). @@ -60,7 +60,7 @@ Principles: - ⚠️ **Request scripts run in the app relaunched as a script host** (`--devnotes-script-host`, read in `main` before any window): QuickJS, one host per request, a phase at a time; `pm.sendRequest` is sent by the parent. What `require` finds is bundled by `crates/engine/sandbox/build.mjs` into the committed `sandbox/dist/`. → "Request scripts, in a process of their own". - **JSON explorer/visualiser**: inputs only; Rust owns the model (`explore_json`, nesting capped at 256, node/row caps). → "Exploring a JSON snippet", "The JSON visualiser's model". - `closed_enum!` declares enums once. **Imports degrade rather than fail**, in one transaction; an added variant does not bump `FORMAT_VERSION`. → "Import, export and copying out". -- App metadata is read from `Cargo.toml` at compile time; the changelog is baked in (`include_str!`). +- ⚠️ **Every name of the application is `brand`'s** (D36): six values of the root `Cargo.toml`'s `[workspace.metadata]`; never type the name, the slug, the identifier, the extension or the site. Other metadata is read from `Cargo.toml` at compile time; the changelog is baked in (`include_str!`). → "The application's names". ### Interface (egui) diff --git a/Cargo.lock b/Cargo.lock index c96be1ee..da20f91a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -731,6 +731,13 @@ dependencies = [ "syn 3.0.3", ] +[[package]] +name = "brand" +version = "1.3.0" +dependencies = [ + "toml 1.1.3+spec-1.1.0", +] + [[package]] name = "bstr" version = "1.13.1" @@ -1936,6 +1943,7 @@ dependencies = [ "aes-gcm", "argon2", "base64 0.23.1", + "brand", "chrono", "chrono-tz", "criterion", @@ -3026,11 +3034,11 @@ dependencies = [ name = "i18n" version = "1.3.0" dependencies = [ + "brand", "chrono", "chrono-tz", "serde_json", "sys-locale", - "toml 1.1.3+spec-1.1.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index ea829ad1..f18a6882 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace] resolver = "3" -members = ["crates/engine", "crates/text", "crates/richtext", "crates/drawing", "crates/i18n", "crates/platform", "crates/ui", "crates/app", "e2e"] +members = ["crates/brand", "crates/engine", "crates/text", "crates/richtext", "crates/drawing", "crates/i18n", "crates/platform", "crates/ui", "crates/app", "e2e"] [workspace.package] version = "1.3.0" @@ -12,7 +12,18 @@ authors = ["Valentin MILLET"] repository = "https://github.com/vmillet-dev/devnotes-rs" license = "GPL-3.0-only" +# The application's names, read by `crates/brand` alone (D36): what a person is shown, the author's +# handle, the technical name, the bundle identifier, the export's extension and the website. +[workspace.metadata] +display-name = "DevNotes" +author-handle = "@vmillet-dev" +slug = "devnotes" +identifier = "com.devnotes.app" +file-extension = "devnotes" +site = "https://devnotes.fr" + [workspace.dependencies] +brand = { path = "crates/brand" } drawing = { path = "crates/drawing" } engine = { path = "crates/engine" } i18n = { path = "crates/i18n" } diff --git a/crates/brand/Cargo.toml b/crates/brand/Cargo.toml new file mode 100644 index 00000000..26456246 --- /dev/null +++ b/crates/brand/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "brand" +description = "The application's names, read once from the root manifest" +version.workspace = true +edition.workspace = true +rust-version.workspace = true +authors.workspace = true +repository.workspace = true +license.workspace = true +publish = false + +[build-dependencies] +toml.workspace = true + +[lints] +workspace = true diff --git a/crates/brand/build.rs b/crates/brand/build.rs new file mode 100644 index 00000000..07e895c8 --- /dev/null +++ b/crates/brand/build.rs @@ -0,0 +1,48 @@ +//! The only reader of `[workspace.metadata]` in the root `Cargo.toml` (D36): Cargo hands no +//! metadata to a crate, so the values are read here and handed over as environment variables. + +use std::path::Path; + +const MANIFEST: &str = "../../Cargo.toml"; + +/// What a value must look like. +type Holds = fn(&str) -> bool; + +/// Each value, and what it must look like: a value that cannot name a file, a folder, a URL or a +/// key stops the build rather than an installed copy. +const VALUES: [(&str, Holds); 6] = [ + ("display-name", |value| !value.trim().is_empty()), + ("author-handle", |value| value.starts_with('@')), + ("slug", |value| word(value, "-")), + ("identifier", |value| value.split('.').count() >= 2 && value.split('.').all(|part| word(part, "-"))), + ("file-extension", |value| word(value, "")), + ("site", |value| value.starts_with("https://") && !value.ends_with('/')), +]; + +/// Lowercase ASCII letters and digits, and `also`, not empty and not starting with `also`. +fn word(value: &str, also: &str) -> bool { + let plain = |c: char| c.is_ascii_lowercase() || c.is_ascii_digit(); + value.chars().next().is_some_and(plain) && value.chars().all(|c| plain(c) || also.contains(c)) +} + +fn main() { + println!("cargo::rerun-if-changed={MANIFEST}"); + let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").expect("cargo sets CARGO_MANIFEST_DIR"); + let text = std::fs::read_to_string(Path::new(&manifest_dir).join(MANIFEST)) + .expect("the root manifest is readable"); + let manifest: toml::Table = toml::from_str(&text).expect("the root manifest is TOML"); + let values = manifest + .get("workspace") + .and_then(|workspace| workspace.get("metadata")) + .expect("the root manifest has [workspace.metadata]"); + + for (key, holds) in VALUES { + let value = values + .get(key) + .and_then(toml::Value::as_str) + .unwrap_or_else(|| panic!("[workspace.metadata] {key} is a string")); + assert!(holds(value), "[workspace.metadata] {key} = {value:?} cannot be used"); + let name = key.to_uppercase().replace('-', "_"); + println!("cargo::rustc-env=BRAND_{name}={value}"); + } +} diff --git a/crates/brand/src/lib.rs b/crates/brand/src/lib.rs new file mode 100644 index 00000000..ef0f2cdf --- /dev/null +++ b/crates/brand/src/lib.rs @@ -0,0 +1,21 @@ +//! The application's names, written once in the root `Cargo.toml`'s `[workspace.metadata]` and +//! read here alone (D36). Every name in the code, on the disk and in the packages is one of these, +//! or made from one. + +/// What a person is shown: the window, the menus, the request header. +pub const NAME: &str = env!("BRAND_DISPLAY_NAME"); + +/// The author's handle, on the about card. +pub const AUTHOR_HANDLE: &str = env!("BRAND_AUTHOR_HANDLE"); + +/// The technical name: the binary, the library's file, the preference keys, the system's names. +pub const SLUG: &str = env!("BRAND_SLUG"); + +/// The profile's folder, and the packages' bundle identifier. +pub const IDENTIFIER: &str = env!("BRAND_IDENTIFIER"); + +/// The extension of an exported library, without its dot. +pub const EXTENSION: &str = env!("BRAND_FILE_EXTENSION"); + +/// The website, without a trailing slash. +pub const SITE: &str = env!("BRAND_SITE"); diff --git a/crates/engine/Cargo.toml b/crates/engine/Cargo.toml index a0699437..d87e1e26 100644 --- a/crates/engine/Cargo.toml +++ b/crates/engine/Cargo.toml @@ -10,10 +10,6 @@ license.workspace = true readme = "../../README.md" autobenches = false -[package.metadata.devnotes] -display-name = "DevNotes" -author-handle = "@vmillet-dev" - [lib] bench = false @@ -27,6 +23,7 @@ bench = false toml.workspace = true [dependencies] +brand.workspace = true serde.workspace = true serde_json = { workspace = true, features = ["preserve_order", "raw_value"] } diesel.workspace = true diff --git a/crates/engine/build.rs b/crates/engine/build.rs index 639443b0..bf37a0a3 100644 --- a/crates/engine/build.rs +++ b/crates/engine/build.rs @@ -6,39 +6,16 @@ fn main() { list_the_documentation(); } -/// Cargo does not pass `[package.metadata]` to the crate, so it is read here and handed -/// over as environment variables the code reads with `env!` — resolved at compile time, -/// and the manifest stays the only place these values are written. +/// What the about card says that Cargo hands no crate: the one author it names, and the toolchain +/// pinned. The application's names are `brand`'s (D36). fn export_metadata() { - println!("cargo:rerun-if-changed=Cargo.toml"); - let manifest_dir = env::var("CARGO_MANIFEST_DIR").expect("CARGO_MANIFEST_DIR is set by cargo"); - let text = - fs::read_to_string(Path::new(&manifest_dir).join("Cargo.toml")).expect("Cargo.toml is readable"); - let manifest: toml::Table = toml::from_str(&text).expect("Cargo.toml is valid TOML"); - - let metadata = manifest - .get("package") - .and_then(|package| package.get("metadata")) - .and_then(|metadata| metadata.get("devnotes")) - .expect("Cargo.toml declares [package.metadata.devnotes]"); - - for key in ["display-name", "author-handle"] { - let value = metadata - .get(key) - .and_then(toml::Value::as_str) - .unwrap_or_else(|| panic!("[package.metadata.devnotes] {key} is a string")); - let name = format!("DEVNOTES_{}", key.to_uppercase().replace('-', "_")); - - println!("cargo:rustc-env={name}={value}"); - } - // Cargo joins `authors` with `;`; the about card names one person. let authors = env::var("CARGO_PKG_AUTHORS").unwrap_or_default(); let author = authors.split(';').next().unwrap_or_default(); - println!("cargo:rustc-env=DEVNOTES_AUTHOR={author}"); - println!("cargo:rustc-env=DEVNOTES_RUST_VERSION={}", pinned_toolchain(&manifest_dir)); + println!("cargo:rustc-env=ENGINE_AUTHOR={author}"); + println!("cargo:rustc-env=ENGINE_RUST_VERSION={}", pinned_toolchain(&manifest_dir)); } /// Every page of `docs/content`, by language and name, for `docs.rs` to embed: a page added there diff --git a/crates/engine/src/app_info.rs b/crates/engine/src/app_info.rs index d4fbfb4b..676b4541 100644 --- a/crates/engine/src/app_info.rs +++ b/crates/engine/src/app_info.rs @@ -1,10 +1,10 @@ -//! What Cargo has no field for comes from `[package.metadata.devnotes]` and -//! `rust-toolchain.toml`, read by `build.rs`: Cargo does not pass `[package.metadata]` to the -//! crate. No version here: the front asks the running binary, which cannot go stale. +//! What the application says about itself: its names are `brand`'s (D36), its author and +//! toolchain are read by `build.rs` from what Cargo hands it and from `rust-toolchain.toml`. No +//! version here: the front asks the running binary, which cannot go stale. /// A constant rather than a command: the titlebar reads the name synchronously. pub struct AppMetadata { - /// What the user is shown, which is not the crate name (`devnotes`). + /// What the user is shown, which is not the technical name (`brand::SLUG`). pub name: &'static str, /// Opened by the about card, as an `https` link. pub repository: &'static str, @@ -15,9 +15,9 @@ pub struct AppMetadata { } pub const METADATA: AppMetadata = AppMetadata { - name: env!("DEVNOTES_DISPLAY_NAME"), + name: brand::NAME, repository: env!("CARGO_PKG_REPOSITORY"), - author: env!("DEVNOTES_AUTHOR"), - author_handle: env!("DEVNOTES_AUTHOR_HANDLE"), - rust_version: env!("DEVNOTES_RUST_VERSION"), + author: env!("ENGINE_AUTHOR"), + author_handle: brand::AUTHOR_HANDLE, + rust_version: env!("ENGINE_RUST_VERSION"), }; diff --git a/crates/i18n/Cargo.toml b/crates/i18n/Cargo.toml index 13d8d7c0..e566af66 100644 --- a/crates/i18n/Cargo.toml +++ b/crates/i18n/Cargo.toml @@ -10,6 +10,7 @@ license.workspace = true publish = false [dependencies] +brand.workspace = true chrono = { workspace = true, features = ["clock", "std"] } serde_json.workspace = true sys-locale.workspace = true @@ -19,7 +20,6 @@ chrono-tz.workspace = true [build-dependencies] serde_json.workspace = true -toml.workspace = true [lints] workspace = true diff --git a/crates/i18n/build.rs b/crates/i18n/build.rs index e1e31637..841be77b 100644 --- a/crates/i18n/build.rs +++ b/crates/i18n/build.rs @@ -9,13 +9,9 @@ use std::path::Path; use serde_json::Value; const SOURCE: &str = "translations/fr.json"; -/// Where the application's name is written, once. -const MANIFEST: &str = "../engine/Cargo.toml"; fn main() { println!("cargo::rerun-if-changed={SOURCE}"); - println!("cargo::rerun-if-changed={MANIFEST}"); - println!("cargo::rustc-env=DEVNOTES_DISPLAY_NAME={}", display_name()); let text = std::fs::read_to_string(SOURCE).expect("fr.json is readable"); let root: Value = serde_json::from_str(&text).expect("fr.json is JSON"); let Value::Object(entries) = root else { @@ -53,15 +49,6 @@ fn module(out: &mut String, entries: &serde_json::Map, prefix: &s } } -fn display_name() -> String { - let text = std::fs::read_to_string(MANIFEST).expect("the engine's manifest is readable"); - let manifest: toml::Table = toml::from_str(&text).expect("the engine's manifest is TOML"); - manifest["package"]["metadata"]["devnotes"]["display-name"] - .as_str() - .expect("[package.metadata.devnotes] display-name is a string") - .to_string() -} - /// `unlockTitle` is `UNLOCK_TITLE`, `fr-FR` is `FR_FR`, `1` is `_1`. fn constant_name(segment: &str) -> String { let mut name = String::new(); diff --git a/crates/i18n/src/lib.rs b/crates/i18n/src/lib.rs index 468bf61e..4d2aff8c 100644 --- a/crates/i18n/src/lib.rs +++ b/crates/i18n/src/lib.rs @@ -160,7 +160,7 @@ impl Message { } /// The application's name, which no translation spells out: a string carries `{{app}}`. -const APP: &str = env!("DEVNOTES_DISPLAY_NAME"); +const APP: &str = brand::NAME; /// The text of `key` in `language` as it is written, for a sentence that speaks of `{{ }}` /// itself. diff --git a/docs/architecture/decisions.md b/docs/architecture/decisions.md index 59bda721..81888ee3 100644 --- a/docs/architecture/decisions.md +++ b/docs/architecture/decisions.md @@ -19,7 +19,7 @@ in the code. | D13 | Drawing and state | Each screen has a state (read, changed in `apply`) and a view (changed while drawing: text typed, buffers, menus, scroll, gestures). State is tested on the real `Backend`, with `settle()`. | | D14 | Keyboard | One order: IME → focused widget (`consume_key`) → `keys::dispatch` (modal, area, application), with entries marked `while_typing`. egui's keyboard zoom is off; Tab is egui's, except in the editors; shortcuts are stored under W3C `code` names, a global one as the system hears it (the character typed; the position on macOS). | | D15 | Wayland or X11 | X11 (XWayland) as soon as `DISPLAY` exists, native Wayland otherwise: under native Wayland winit 0.30 delivers neither dropped files nor the window's visibility. There, and rarely, the window's position is not restored, closing to the tray minimises, and HTML pasted into a Note keeps its text only. | -| D16 | Profile, single instance | One application per profile: the instance's socket is named after the profile. `com.devnotes.app` by default, the packages' identifier; `--profile` for tests and development. | +| D16 | Profile, single instance | One application per profile: the instance's socket is named after the profile. The `identifier` of D36 by default, the packages' own; `--profile` for tests and development. | | D17 | Caches of the interface | All in `LibraryCaches`, emptied with egui's widget memory when the library changes; not wiped byte by byte, as the threat model says. | | D18 | Panics | A panic on any thread ends the process: the hook, installed first, logs the place and the thread, never the message (a slicing panic quotes the text), says so in a system box (never in the `e2e` flavour), then `exit(101)`. Nothing is caught; the database is checked at the next open. `panic = "abort"`. | | D19 | Quitting during a write | Window hidden, db queue closed then drained (drafts, import, restore, passphrase), 30 s at most, then an exit that is logged; network sends are cancelled. | @@ -38,3 +38,4 @@ in the code. | D33 | Workspace manifest | Each dependency declared once, version and common features, in the root `[workspace.dependencies]`; a crate takes `workspace = true` and adds only its own features. | | D34 | Title bar | The application's own on every system: no decorations from the system, minimise, maximise and close at the bar's right end; macOS keeps its three buttons, at the left end. Moving and resizing are the system's (`StartDrag`, `BeginResize`). No way back to the system's bar. | | D35 | Logs | Terminal: our crates from `debug` in a debug build, from `info` in a release. File: `warn` and `error`, after our last 200 lines. The e2e flavour files from `debug`, its terminal errors alone. Other crates at `warn`. A line says names, codes, ids, durations, never content (D18). `DEVNOTES_LOG` replaces the levels for one run. | +| D36 | Names | Six values of the root `Cargo.toml`'s `[workspace.metadata]`, read by `crates/brand` alone: every name in the code, on the disk, in the packages and on the site follows them, save a few Cargo and files keep literal, held by a test. Renaming is the owner's choice, its cost accepted, not migrated (→ "The application's names"). | diff --git a/docs/architecture/i18n-accessibility-theming.md b/docs/architecture/i18n-accessibility-theming.md index 6053a3a0..8c615946 100644 --- a/docs/architecture/i18n-accessibility-theming.md +++ b/docs/architecture/i18n-accessibility-theming.md @@ -23,9 +23,8 @@ does not exist — an enum of the cases, matched once, is better wherever the se files: each closes, and has an `other` branch. - Then `{{name}}` is filled; ⚠️ **a parameter not given is left empty**, as Transloco did — so no translated string can carry a snippet's `{{fields}}`, and user content is never interpolated - into a template. `{{app}}` is the application's name, read by `build.rs` from the engine's - `[package.metadata.devnotes] display-name`: no translation spells it out (a test refuses it), - and none hedges a plural with « (s) ». + into a template. `{{app}}` is the application's name, `brand::NAME` (→ "The application's + names"): no translation spells it out (a test refuses it), and none hedges a plural with « (s) ». - Both files have the same keys, and a name one language fills in, the other reads too, filled in or counted (« il y a {{count}} mois » counts in English): two tests. - **Localised formats are written by hand** (D21, `i18n::format`): one function per pattern the diff --git a/docs/architecture/overview.md b/docs/architecture/overview.md index 0b6049c2..a6699456 100644 --- a/docs/architecture/overview.md +++ b/docs/architecture/overview.md @@ -40,6 +40,7 @@ crates/text/ the editing core, egui-free: rope, undo, search, indent, hig crates/richtext/ a Note's document: blocks and marks, read from Markdown and written back crates/drawing/ a Dessin, egui-free: the stored scene, its geometry, text lines, SVG and pictures crates/i18n/ the interface's strings (translations/fr.json, en.json), plurals, formats +crates/brand/ the application's names, read from the root `Cargo.toml` (D36) crates/platform/ what is asked of the operating system: paths, window, instance, tray, shortcuts, clipboard, dialogs, notifications, autostart, updater crates/ui/ the egui interface: the frame, its state, its screens, its widgets @@ -48,6 +49,35 @@ e2e/ the end-to-end driver, its SDK and the journeys, on the asse golden/ test data: exact outputs the tests compare with (its README says which) ``` +## The application's names + +The names are written once, as six values of the root `Cargo.toml`'s `[workspace.metadata]` (D36), +beside the version (D27): + +| Value | Today | What is named after it | +| ---------------- | --------------------- | -------------------------------------------------------------------------------------------- | +| `display-name` | `DevNotes` | what a person is shown: the window, the menus, `{{app}}`, the request header | +| `author-handle` | `@vmillet-dev` | the about card | +| `slug` | `devnotes` | the technical names: the binary, the library's file, the preference keys, the system's names | +| `identifier` | `com.devnotes.app` | the profile's folder, the packages' bundle identifier | +| `file-extension` | `devnotes` | an exported library's file | +| `site` | `https://devnotes.fr` | the website | + +`crates/brand` is their one reader: its `build.rs` reads them, refuses one that could not name a +file, a folder, a key or a URL, and hands them to `brand::NAME`, `AUTHOR_HANDLE`, `SLUG`, +`IDENTIFIER`, `EXTENSION` and `SITE`. A leaf crate, so that `engine`, `i18n`, `richtext`, +`platform`, `ui` and `app` take a name from it, never from one another (D10). The +`DEVNOTES_` prefix of the environment variables stays as it is for now: the owner's choice. + +**What a rename costs**, accepted and not migrated: an archive exported under the previous +extension is no longer offered by the import's filter, and a request history holding the previous +User-Agent shows it as a header of its own; a library, its preferences and its arrangement are not +found under the new identifier and file names, though their files stay on the disk untouched; a +Note holding a drawing no longer finds it; the autostart entry and the shortcuts of an installed +copy stay behind; an installed copy keeps the update address it was built with. Before a release +under a new name, the owner sees to what is not code: the new domain and its certificate, with +redirects from the previous one, the GitHub repositories, and the website's deploy key. + ## Feature-first, not layer-first The core is filed by **subject**. `notes.rs`, `spaces.rs`, `folders.rs`, `attachments.rs`, @@ -103,7 +133,7 @@ What is left at the root is what belongs to no single feature: | `db.rs` | the connection and its `Mutex`, `open`/`open_in_memory`, plus `db::schema` and `db::migration` | | `db::iso8601` | the stored-instant format — millisecond-exact, because the canvas sorts on a TEXT column | | `host.rs` | what the core asks of its shell: `Paths` and an `EventSink` | -| `app_info.rs` | what the application says about itself, read from `Cargo.toml` at compile time by `build.rs` | +| `app_info.rs` | what the application says about itself: its names from `brand`, its author and toolchain by `build.rs` | | `name.rs` | what a space and a folder share about their names: trimmed, never blank, unique whatever the case | | `closed_enum.rs` | the `closed_enum!` macro: one literal per variant for serde, the column, `Display` and `FromStr` | | `count.rs` | `saturating_u32`, the one conversion a count takes |