Affiliation-extras plugin: add Affiliation Catalogs#6
Draft
duartegalvao wants to merge 38 commits into
Draft
Conversation
hatchling does not need this
e974458 to
7bcee8e
Compare
7bcee8e to
cb3c6f2
Compare
3a9c0ea to
d3959e6
Compare
* Add invite affiliations tab Move AffiliationInvitations definition to another file Improve AddItemsModal UI Migrate invite dialog to use AffiliationListField Replaces the regform-endpoint-based AffiliationsTab with AffiliationInvitations, which delegates affiliation selection to the existing AffiliationListField component. AddItemsModal is refactored from a generic data-URL modal to an affiliation-specific search modal. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Show user count per affiliation in AddItemsModal search results Extends the affiliations search API to include user_count per affiliation. AddItemsModal gains a showInviteCount prop that, when enabled, displays the registration count per result item and a running total of registrations for newly added affiliations in the footer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Fix send button to show correct invitation count Adds a backend endpoint that counts unique users across the selected affiliations, groups, and tags (deduplicating users who belong to multiple entries). AffiliationListField fetches this count asynchronously and stores it in _userCount so the synchronous getCount callback in AffiliationInvitations can return the accurate value for the send confirmation dialog. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Improve ui Self review minor improvements Turn the results column in a ternary expression Decouple userCount from AffiliationListField and AddItemsModal Disable search button if no search input Change UserBasicSchema for BasicUserSchema Remove comments Use resolve_affiliations when necessary Rename affiliationInvitations Move AddItemsModal.jsx Fix rebase problems Convert AddItemsModal from JS to TS Remove email attachments comments Improve CSS for AddItemsModal.tsx Small refactor Self review fixes * Small refactor to follow indico patterns * Improve tags * Refactor useEffect and variable names * Add AddAffiliationsModal scss module * Add AffiliationListField scss module * Improve css styles * Run biomejs * Fix affiliation invitation schema import * Fix conditional hook * Add compatibility shim * Apply code style improvements --------- Co-authored-by: Duarte Galvão <duarte.galvao@unconventional.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains a second version of the affiliation-extras plugin.
Changelog:
Depends on: