Skip to content

Show the organizer every link a speaker has, not one called Website - #327

Merged
EllAchE merged 1 commit into
mainfrom
portal-profile-links-20260817t2005
Aug 18, 2026
Merged

Show the organizer every link a speaker has, not one called Website#327
EllAchE merged 1 commit into
mainfrom
portal-profile-links-20260817t2005

Conversation

@EllAchE

@EllAchE EllAchE commented Aug 17, 2026

Copy link
Copy Markdown
Owner

sbek SPK-S1, run 2026-08-17T05-46-05:

A speaker's portal profile save silently destroys organizer-entered profile data and does not deliver its own. Priya's Website field was populated with her LinkedIn URL by the organizer at creation and was still populated later in SPK-S1; after she saved her portal profile (which has its own Links section with LinkedIn and Twitter URLs) the organizer-side Website field is empty and shows only its placeholder. The LinkedIn and Twitter URLs she entered in the portal never appear anywhere on the organizer record, so the round trip both loses organizer input and drops speaker input.

What was actually happening

Both sides write the same column — participant.links, a labelled set. The portal edits the set. The organizer screen had one text input, and websiteOf resolved it by looking for the link whose label is exactly Website.

So when the speaker relabelled the row the organizer had typed her LinkedIn URL into, and added a second, the organizer's Website field went empty and her two links had nowhere to appear. Nothing was destroyed; the organizer's view of the field was one link wide, and the speaker had moved off it. From behind that single input the two are indistinguishable, which is the defect.

The fix

The organizer speaker form gets the same Links editor the portal has: label, address, remove, add — capped at the eight profileSchema already enforces, so the limit is refused by the button rather than by the save.

profileLinks names who may say a link is gone. A caller that sent the whole set is replacing it, and is the only caller entitled to, because it is the one that showed the organizer every link before asking. A caller that sent only website — the CSV import, the API — is naming one link and leaving the rest alone.

This also closes a smaller hole: with only website to work with, blanking that input could never remove a link (mergeLinks reads an empty value as no opinion, which is right for a CSV column and wrong for a field an organizer has just cleared). The set-sending path can now clear it.

speaker.website is unchanged and still exported — the CSV import and export both name that column.

Tests

lib/services/speaker-profile-links.test.ts, 8 cases: no links sent keeps what is stored; a sent set replaces it; an empty sent set clears; a bare website leaves the rest alone and replaces rather than duplicates the stored one; a website folds into a sent set; a blank website is no opinion; the set caps at eight.

lint, typecheck, test (2041 in 190 files), build, docs:openapi, docs:mcp all clean.

Not merged and not deployed.

The organizer speaker record had a single "Website" input. The portal has a
Links section. Both write `participant.links`, and `websiteOf` resolved that
input by looking for the link labelled exactly "Website".

So when a speaker relabelled the row an organizer had typed her LinkedIn URL
into and added a second link, the organizer's Website field went empty and
her two links had nowhere to appear. Nothing was destroyed; the organizer's
view of the field was one link wide and the speaker had moved off it. From
behind that input the two are indistinguishable, which is the defect.

The organizer form gets the same Links editor the portal has — label,
address, remove, add — capped at the eight `profileSchema` already enforces,
so the limit is refused by the button rather than by the save.

`profileLinks` names who may say a link is gone. A caller that sent the whole
set is replacing it, and is the only caller entitled to: it is the one that
showed the organizer every link before asking. A caller that sent only
`website` — the CSV import, the API — is naming one link out of the set and
leaving the rest alone.

That also closes a smaller hole. With only `website` to work with, blanking
the input could never remove a link, because `mergeLinks` reads an empty
value as no opinion — right for a CSV column, wrong for a field an organizer
has just cleared. The set-sending path can clear it.

`speaker.website` is unchanged and still exported; the CSV import and export
both name that column.

Found by `sbek` SPK-S1 against run 2026-08-17T05-46-05.
@EllAchE
EllAchE merged commit ab56abc into main Aug 18, 2026
7 checks passed
@EllAchE
EllAchE deleted the portal-profile-links-20260817t2005 branch August 18, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant