fix(file-manager): prioritize file names in narrow lists (#1483)

* fix(file-manager): prioritize file names in narrow lists

* test(css): exercise the configured PostCSS plugin chain

* test(identity): preserve full Ed25519 public keys in fixtures

* test(remote-desktop): always mutate ciphertext in tamper test
This commit is contained in:
ZacharyZcR authored and GitHub committed 2026-09-27 00:10:51 -05:00
1 parent 44f751a5e5
commit c98003f90e
6 files changed
+27 -18

No files matched your search

@@ -13,11 +13,14 @@ afterEach(async () => {
});
function ed25519Line(comment = "") {
const pair = ssh2.utils.generateKeyPairSync("ed25519");
const parsed = ssh2.utils.parseKey(pair.public);
const key = Array.isArray(parsed) ? parsed[0] : parsed;
if (key instanceof Error) throw key;
const line = `${key.type} ${key.getPublicSSH().toString("base64")}`;
// ssh2's generator can truncate leading zero bytes in Ed25519 keys.
const { publicKey } = crypto.generateKeyPairSync("ed25519");
const raw = Buffer.from(publicKey.export({ format: "jwk" }).x!, "base64url");
const blob = Buffer.concat([
Buffer.from("0000000b7373682d6564323535313900000020", "hex"),
raw,
]);
const line = `ssh-ed25519 ${blob.toString("base64")}`;
return comment ? `${line} ${comment}` : line;
}