Skip to content

add Event Edit Page#2080

Open
KhoaNguyen706 wants to merge 1 commit intodevfrom
khoa/editEventUI
Open

add Event Edit Page#2080
KhoaNguyen706 wants to merge 1 commit intodevfrom
khoa/editEventUI

Conversation

@KhoaNguyen706
Copy link
Copy Markdown
Collaborator

@KhoaNguyen706 KhoaNguyen706 commented Apr 12, 2026

I changed these:

  • add Event Edit page ( just the same format with create page)
  • add the little button edit on the top right corner
  • Temporarily grant Admin permission for create and update event
  • Authorization will add later
  • currently enable the SCE events
    Under construction...............

@steeevin88
Copy link
Copy Markdown
Collaborator

did you test this? could you include screenshots

@KhoaNguyen706
Copy link
Copy Markdown
Collaborator Author

KhoaNguyen706 commented Apr 12, 2026

Yes, I did, It worked for mock data

Copy link
Copy Markdown
Collaborator

@steeevin88 steeevin88 left a comment

Choose a reason for hiding this comment

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

left a few comments, in general though im confused why we have mock functions? as opposed to testing with actual Clark

i know it'll take a few extra steps to create the account in local Clark, create event, etc... but i'd prefer to be extra and ensure things work

also, i don't think any of this stuff is gated. remember that anything SCEvents related on Clark shouldn't be made public yet... so we need to ensure your new page is gated. (even though technically it's true that accessing this page is hard b/c you'd need access to the gated Events page... we should still be thorough)


const SCEVENTS_API_URL = 'http://localhost:8002';

// ======== ORIGINAL BACKEND API REQUESTS ========
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

remove this comment


export const SceContext = createContext({
user: {},
setUser: () => {},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this change needed? if not please remove so we don't cherry pick

setUser: () => {},
setUser: () => { },
authenticated: false,
setAuthenticated: () => {},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

same here

}
// ==========================================

// ======== MOCKED VERSION FOR TESTING ========
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

again im confused why we have a mock version; was there a reason why we didn't just use Clark locally?

return (
<div className="m-10 max-w-4xl px-4 sm:px-6">
<div className="mb-8 pt-8 pb-2">
<Link to="/events" className="block pb-3 text-sm link link-primary">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hmm... this probably doesn't belong in this PR but it's fine

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.

2 participants