Skip to content

Fix SCEvents API functions and add registration/me endpoint support#2123

Merged
steeevin88 merged 2 commits into
devfrom
khoa/fix-stuff
May 3, 2026
Merged

Fix SCEvents API functions and add registration/me endpoint support#2123
steeevin88 merged 2 commits into
devfrom
khoa/fix-stuff

Conversation

@KhoaNguyen706

Copy link
Copy Markdown
Collaborator

The normal view of the admin of the event:
image

We can fetch api from our backend right now, i dont know why but i think we have sth broken and fetch function:
image

The flow work quite normal:
image

We can edit the event right now:
image

We can see it works:
image

Can we update the user registration data UI. It look quite terrible:

image

closes 2121

The Cause: The code was calling new URL('/api/scevents/...'). In JavaScript, if you provide a relative path to the URL constructor, you must provide a base URL as the second argument. -> fix by updating every new URL call in src/APIFunctions/SCEvents.js to include window.location.origin as the base. Idk it yet Can we discuss on Discord ?

@KhoaNguyen706

KhoaNguyen706 commented May 1, 2026

Copy link
Copy Markdown
Collaborator Author

I have to merge dev into my branch because i dont know how rebase would work for this situation, because dev branch is up to date

@steeevin88 steeevin88 mentioned this pull request May 1, 2026

@c1ndytat c1ndytat left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lsatm

@steeevin88 steeevin88 merged commit 24acd51 into dev May 3, 2026
4 checks passed
@steeevin88 steeevin88 deleted the khoa/fix-stuff branch May 3, 2026 01:24
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.

Fix admin view of event attendees

3 participants