style(web): tighten the in-memory caveat and punctuate the footer
Reads "Memory (this session only): Secrets are not written anywhere and are lost on exit." — shorter tail than "lost when the Inspector exits", and a colon separating the store from what follows it. The colon is added at the footer's composition, not inside `secretStorageLabel`. The label is also consumed alone by `secretStorageSummary`, which appends " at <path>" for a file-backed store, so a colon baked into the label would print "File (encrypted): at /path" in the startup banner. It renders only when a detail actually follows. The caveat string is shared with the banner's warning line, so the terminal picks up the shorter wording too. Signed-off-by: cliffhall <cliff@futurescale.com>
This commit is contained in:
parent
0cb59cf3fd
commit
2d2c787e22
1 changed files with 123 additions and 14 deletions
|
|
@ -121,14 +121,14 @@ export function secretStorageTone(info: SecretStorageInfo): SecretStorageTone {
|
|||
|
||||
/**
|
||||
* One sentence of consequence, or undefined when there is none worth
|
||||
* saying. Consequence, not mechanism: "will be lost when the Inspector
|
||||
* exits" is what a user can act on; "uses an in-memory Map" is not.
|
||||
* saying. Consequence, not mechanism: "lost on exit" is what a user can
|
||||
* act on; "uses an in-memory Map" is not.
|
||||
*/
|
||||
export function secretStorageCaveat(
|
||||
info: SecretStorageInfo,
|
||||
): string | undefined {
|
||||
if (info.kind === "memory") {
|
||||
return "Secrets are not written anywhere and are lost when the Inspector exits.";
|
||||
return "Secrets are not written anywhere and are lost on exit.";
|
||||
}
|
||||
// The permission problem outranks the encryption one when both hold: a
|
||||
// file other users can read is a live exposure, while "unencrypted" is a
|
||||
|
|
|
|||
Loading…
Reference in a new issue