mirror of
https://github.com/penpot/penpot.git
synced 2026-09-26 05:46:13 +00:00
* ♻️ Build organization invitation audit event in frontend * ♻️ Align invitation token profile-id with created-by The invitation token carried the minter in :profile-id while the invitation row tracks the creator in :created-by. Both mean the inviter, so re-sends or re-requested links made them disagree and forced a second response key, :user-who-send-invitation. Mint :profile-id from :created-by in both token creators, backfill it from the row on accept (covers stale in-flight tokens), and drop the duplicate response key. The frontend maps :profile-id to the unchanged :user-who-send-invitation audit prop. AI-assisted-by: Muse Spark 1.3 Free * ♻️ Reuse token ids in invitation accept response Backfill :member-id with the accepting profile and drop the :user-id duplicate from the verify-token response, mirroring the :profile-id/:user-who-send-invitation cleanup. The frontend maps :member-id to the unchanged :user-id audit prop. AI-assisted-by: Muse Spark 1.3 Free --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>