Backfill the new default-on opened-card custom-fields setting for existing boards. Keep regression guards aligned with the intended visibility, date controls, resizable card width, supplied initials and board publication layout, and exclude downloaded Go toolchains from the FerretDB source scan.\n\nThanks to xet7 !
Two fixes that both came out of the same session.
"Upload background image" picked a file and nothing arrived. Two fields of an
upload's config are not optional in the way they look, and the board
background's config - written by hand - had neither:
- `fileId`, and the same id copied into `meta.fileId`. Attachments'
namingFunction decides the name a file is STORED under, and on the client it
reads that id out of `meta` and deletes it. Without it the name is
`undefined`.
- `transport`. HTTP everywhere, because Meteor-Files' default DDP floods the
WebSocket and makes Safari reconnect at ~95%; DDP on Sandstorm, whose
http-bridge strips the x-* upload headers so every chunk comes back "Can't
continue upload, session expired" [408].
Both come from client/lib/attachmentUploadConfig.js now, used by the card's
file picker, the card's pasted image and the board background alike - so the
next uploader gets them by asking for a config rather than by knowing two
things nothing would have told it. The two card call sites lost their
hand-written copies with it.
getInitials() ended with `this.username[0]`, so a user document that arrived
without a username threw a TypeError from a Blaze helper, mid-render. Two
helpers call it, so each avatar threw twice, and the second throw left the
SVG's viewBox half-written ("0 0 15"), which Firefox refuses outright: the
avatar drew nothing and took the rest of that render pass with it. It is total
now - initials, fullname, the first letter of a username, then an empty string -
and a fullname of only spaces no longer spells the literal word "undefined".
tests/attachmentUploadConfig.test.cjs and tests/userInitials.test.cjs pin both,
including the empty-document case that threw.
Thanks to xet7 !