Repository navigation
App name: internal names neutral, literal ones held by a test - #1907
Open
vmillet-dev wants to merge 3 commits into
Open
vmillet-dev wants to merge 3 commits into
vmillet-dev wants to merge 3 commits into
Conversation
The names nobody outside the process reads carry no name: the script host's argument is `--script-host`, the prelude's entry points `__prelude`, the network thread `network`, an in-memory library's folder `in-memory-library-…`. The `DEVNOTES_` variables stay, the owner's choice. The names Cargo and the file system keep literal (the binary, the packager's, the deb's and the rpm's names and paths, the desktop entry, the copyright, the master icon) are held by `crates/app/tests/names.rs`: it fails while one differs from the values. Part of #1896 (steps 5, 6) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
Mechanical: the type, its uses, the wiki and the egui skill, then `cargo fmt`. Nothing else changes. Part of #1896 (step 9) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
Fixtures that need the application's name read the values: the database file, the preference keys, the welcome note's title, « About » and « Quitter », the documentation's addresses, the e2e binary, journey 11's files under the configured extension, the logging test's crate. Drawing addresses are built from `DRAWING_SOURCE`. Fixtures that only needed a word take a neutral one (`example.org`, `*.archive`, `seed`, `Notebook`, `notes`, `app`); the tools' samples read the values, so the screens, the README's tools tour and the site's scene stay as they are. Comments, crate descriptions and journey steps say « the application », or `<slug>`/`<binary>` where they spell a key, an address or a command. `DevNotes` leaves `doc-valid-idents`: a doc comment typing it no longer passes clippy. Part of #1896 (step 9) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1896: steps 5, 6 and 9. The last pull request of the ticket closes it.
Four commits; the rename of
DevNotesAppis one of its own, as the ticket asks.Step 5, the internal names made neutral. Nobody outside the process reads these names:
--devnotes-script-hostbecomes--script-host;__devnotesbecomes__prelude;devnotes-networkthread becomesnetwork;in-memory-library-….The
DEVNOTES_*variables of the tests, the examples and the CI stay as they are: the owner's choice, recorded in #1904.Step 6, the literal names held by a test.
crates/app/tests/names.rschecks these names against the values:product-name,identifierandbinaries;package-nameand files, the rpm'snameand every asset path (written{slug}in the test);Exec=,Icon=andName=ofpackaging/<slug>.desktop,Upstream-Nameofcopyright, andicons/<slug>.svg.Change a value without editing these files and it fails. I checked that by leaving one rpm path on another name: red.
CARGO_BIN_EXE_devnotesis held by the compiler itself: it does not build once the binary is renamed. The repository URLs (homepage,copyright's contact) are not one of the values: they move with the GitHub repository (step 12).Step 9, tests, comments, descriptions
DevNotesAppis nowApp: a mechanical commit, which also covers the wiki and the egui skill.gate/tests.rs,backups.rs, the reference bench, the e2e SDK);prefs.rs);notes.rs);help.rs,docs_quotes);docs_tests.rs);CARGO_CRATE_NAME).DRAWING_SOURCE:shown,paintedandembeddingtake&str, and a newembedded(id)helper builds the markdown;{source}in their fixtures;example.organdexample.invalidfor links and unreachable hosts;*.archivefor files picked in a dialog;seedandhellofor the identity and QR seeds;NotebookandMyNotesfor the QR andexpectstrings, same length and same case behaviour;notesfor the language corpus, whose detections are unchanged;appfor the shortcuts' paths;script-librariesfor the sandbox package's name.{host}and{slug}), its YAML/JSON pair ({name}and{slug}) and the identity tool's seed (the slug). That keeps the README's tools GIF and the site's scene true; a rename changes them with everything else.<slug>/<binary>where they spell a key, an address or a command.DevNotesis gone fromdoc-valid-identsin the threeclippy.toml, so a doc comment that types it no longer passes clippy.Wiki. The overview's section « The application's names » now lists the names kept literal and the test that holds them, and the neutral internal names. The script host's argument is updated in
engine.md,environments-and-scripts.mdandCLAUDE.md, and the thread name inlogs.md.Sweep, at this point (throwaway,
grep -rniE devnotes crates e2e golden clippy.toml,DEVNOTES_set aside). What remains is the literal names of step 6, which the new test holds, and the repository URLs. The packages and the CI (step 7) and the documentation and the site (step 8) come in the next two pull requests.Checks run (Linux)
cargo fmt --all --check,cargo clippy --workspace --all-targets --all-features -- -D warnings.cargo test --workspace --exclude e2e --no-fail-fast: every crate green, the newnamestest included.node scripts/architecture-links.mjs.--features e2e, Xvfb + openbox): the fourteen journeys pass,cargo test -p e2e --no-fail-fast. The e2e flavour was then rebuilt on the final code, and08_tools(which opens the Diff tool's sample) passed again. The terminal stays quiet: no log line, only the journeys' steps.Generated by Claude Code