Repository navigation
Commit ed503d3
test(mobile): slim npub-identity tests, key avatars to hex pubkey
PR-M1 follow-up: consolidate the npub identity test surface into fewer
table-driven cases while keeping every behavior assertion, and land the
hex-keyed avatar-initial repair verified end to end.
## Summary
- compose_note_page_test: replace the mid-edit 3-remount reply-preview
test (it referenced the deleted _NoSelfProfileNotifier) with one
unnamed-parent scenario through buildTestable(users:) — asserts the
compact npub label and the hex-keyed preview avatar initial; the named
parent control stays in the existing rich-preview test.
- note_card_test: fold the reply-target and avatar cases into one table
test — p-tag parent (compact npub, npub count 2, initial B), e-only
parent (hex event id, npub count 1), cached author (authored label +
name initial C); KeyedSubtree remounts keep each scenario's user cache
isolated and the avatar finder is scoped to the single card.
- channel_management_provider_test: combine the member-label and
directory-label pairs (assertions unchanged); keep the
AddMembersException compact-npub case.
- string_utils_test: table-combine the fullNpub wrapper cases
(hex/uppercase/padded/npub converge on the canonical npub); keep the
shared canonical vector, invalid no-leak matrix, idempotence, and
invite round-trip.
- profile_provider_test: drop the redundant npub shape regex now that
the exact compact label is pinned.
- channel_detail/channels_page/compose_bar: folded scenarios verified —
DM-header unnamed avatar, membership-sheet invalid-copy keyed
remount, seven-fixture member preview (self/a11ce/cached Carol/3
members/agent asserting A/C/Y), DM tile labels and avatars, and
mention-suggestion initials all assert at the production seams.
- Delete the untracked 188-line channel_details_page driver: its
member-row identity coverage is carried by the preview test at the
same channel-details-member-* row seam.
- Production avatar repairs ride along unchanged: hex-keyed initials
for DM headers/tiles, suggestions, and member rows, and compact npub
labels for unnamed DM counterparts.
Full suite: 2088 passing. flutter analyze clean.
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <[email protected]>1 parent d325e4c commit ed503d3
15 files changed
Lines changed: 546 additions & 204 deletions
File tree
- mobile
- lib/features
- channels
- channel_detail_page
- channels_page
- compose_bar
- pulse
- test
- features
- channels
- profile
- pulse
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
| 658 | + | |
658 | 659 | | |
659 | 660 | | |
660 | | - | |
| 661 | + | |
661 | 662 | | |
662 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
663 | 670 | | |
664 | 671 | | |
665 | 672 | | |
| |||
671 | 678 | | |
672 | 679 | | |
673 | 680 | | |
674 | | - | |
| 681 | + | |
675 | 682 | | |
676 | 683 | | |
677 | 684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
57 | 75 | | |
58 | 76 | | |
59 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
0 commit comments