feat(profile): drop seed-glyph illustrations from the avatar picker

The picker now offers only a photo; with none, the generated DiceBear
avatar is used. Removes the seedks-ttf illustration row (and the now-dead
avatarGlyphNames/avatarGlyphToken). tane:seed:<glyph> values set before
this still render (avatarGlyphChar kept) for backward compatibility.
This commit is contained in:
vjrj 2026-07-12 23:22:20 +02:00
parent 109c85298c
commit 17612b8147
3 changed files with 15 additions and 54 deletions

View file

@ -9,12 +9,11 @@ import '../support/test_support.dart';
void main() {
group('avatar value scheme', () {
test('every offered illustration maps to a glyph; unknown → null', () {
for (final name in avatarGlyphNames) {
expect(avatarGlyphChar(name), isNotNull, reason: name);
}
test('legacy seed-illustration names still map to a glyph; unknown → null',
() {
expect(avatarGlyphChar('jars'), isNotNull);
expect(avatarGlyphChar('sack'), isNotNull);
expect(avatarGlyphChar('nope'), isNull);
expect(avatarGlyphToken('jars'), 'tane:seed:jars');
});
});