Skip to content

feat: add my_registrations plugin - #12

Open
moliholy wants to merge 9 commits into
indico:masterfrom
moliholy:feat/my-registrations
Open

feat: add my_registrations plugin#12
moliholy wants to merge 9 commits into
indico:masterfrom
moliholy:feat/my-registrations

Conversation

@moliholy

@moliholy moliholy commented May 26, 2026

Copy link
Copy Markdown

Summary

Adds a per-user dashboard listing the events the user is registered for, split into upcoming and past sections, paginated independently. Lives under the user profile sidebar as "My Registrations".

Screenshots

Screenshot 2026-05-26 at 11 53 54 6-empty-state

Overview

Two URLs:

  • /user/my-registrations/ — current session user
  • /user/<id>/my-registrations/ — explicit user (own profile or admin)

Upcoming covers ongoing and future events (end_dt >= now), ordered by start ascending. Past covers ended events, ordered by start descending.

Pagination follows the categories management pattern: numeric page links and a N / total count badge in each section header. Both page numbers are preserved in the URL (?upcoming_page=2&past_page=1) so navigating one section keeps the other in place. Page size is fixed; no "Show all" link, since a user's registration history can grow without bound.

Comment thread my_registrations/pytest.ini Outdated
Comment thread my_registrations/README.md Outdated
Comment thread my_registrations/indico_my_registrations/templates/dashboard.html Outdated
Comment thread my_registrations/indico_my_registrations/templates/dashboard.html
@moliholy
moliholy force-pushed the feat/my-registrations branch from 2594761 to 53ab888 Compare June 3, 2026 13:35
tomako pushed a commit to wipo-digital-secretariat/indico-plugins-contrib that referenced this pull request Jul 20, 2026
bec22fa feat: add my_registrations plugin
26c61a3 chore: address review feedback
4a8d103 refactor: match indico kebab-case style in scss
988d39b fix: pass dynamic page kwargs via dict unpacking in pagination
9a3d804 refactor: drop redundant count query in pagination helper
a5b4684 refactor: drop unreachable page-clamp branch
27bd838 fix: scope my-registrations pagination to avoid core collision
21b44b4 fix: avoid duplicate events join in _base_query via contains_eager
efee5c2 feat: show attended status for checked-in registrations
tomako pushed a commit to wipo-digital-secretariat/indico-plugins-contrib that referenced this pull request Jul 22, 2026
bec22fa feat: add my_registrations plugin
26c61a3 chore: address review feedback
4a8d103 refactor: match indico kebab-case style in scss
988d39b fix: pass dynamic page kwargs via dict unpacking in pagination
9a3d804 refactor: drop redundant count query in pagination helper
a5b4684 refactor: drop unreachable page-clamp branch
27bd838 fix: scope my-registrations pagination to avoid core collision
21b44b4 fix: avoid duplicate events join in _base_query via contains_eager
efee5c2 feat: show attended status for checked-in registrations
@moliholy
moliholy force-pushed the feat/my-registrations branch from 53ab888 to ec4550b Compare July 27, 2026 14:32
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.

3 participants