IEEE-RVCE / IEEE-RVCE.github.io

Development site of only frontend
https://ieee-rvce.org
1 stars 2 forks source link

Design and Development of Page to capture Execom Member Data #86

Open Prajwalprakash3722 opened 1 year ago

Prajwalprakash3722 commented 1 year ago

As discussed in #84, we will be transitioning from our current file-based storage system to a database. To facilitate this transition, we need to create a user-friendly form UI for data input that can replace our existing system.

The form UI should be designed to capture all the relevant data fields required for our new database system. Additionally, it should be robust and secure, with proper error handling to ensure data integrity.

Assigning this to @naveenbteli @sannidhi-s-shetty, please discuss and provide an estimated timeline for completion.

@dragonfist453 will be leading this feature

Deadline : 18/03/2023

Prajwalprakash3722 commented 1 year ago

Take help of @jahnavi-urs in designing a new UI

Prajwalprakash3722 commented 1 year ago

I will clarify more on requirements later by this weekend.

Prajwalprakash3722 commented 1 year ago

Requirements

Form Field Information:

Extra Components

FYI @dragonfist453

dragonfist453 commented 1 year ago

Thanks @Prajwalprakash3722 for the detailed requirements! All of this is good, I just have a better suggestion than using the suggested new table component. We could have a more interesting UI to this.

Here's an example mockup that I tried to give an idea:

image

When logged in as an admin, an "Add" (plus) icon can show up in the same size as the picture, which is clickable to show the Form Modal as described. Other than this, a "Edit" (pencil) icon can be added for each execom picture on the top right to be clicked on to edit the details of an execom. For the end tenure, a "Close" (X) icon next to the Executive Committee title with a tooltip of "End tenure", with a "Confirm end tenure" with a proper mean red warning along with a confirmation of typing their IEEE membership number should be nice (Idea taken from the "Delete repository" option in GitHub lmao)

@jahnavi-urs You can get as creative as you want with this

Prajwalprakash3722 commented 1 year ago

Super cool idea, this means we don't need to develop another page, we just can build on the top of ExecomAccordian.

genius @dragonfist453 🔥🫡

Prajwalprakash3722 commented 1 year ago

As we are aware, IEEE numbers are unique to each member. However, asking to enter their IEEE number for endTenure purposes would require additional server-side verification to ensure the correct IEEE number is being entered.

Instead, I suggest that we can validate endTenure using their full name or any other simple identification method. This would not only simplify the process also makes whoever is deleting the member's information to think for a second before confirming the action which doesn't deviate from the original goal.

dragonfist453 commented 1 year ago

My question to this is... are we verifying if the Full Name entered is theirs or it's just so that they enter it?? If we are verifying if it is their name, isn't that still going to make a server call? If you mean "Full name of execom member", wasn't the idea to end tenure for the whole batch itself, and not individually for each member?

Another way to do this confirmation without making a server call is simply to store the UserID on login in localStorage and validate with that. It's not a security flaw and is an information we pass to the site when logging in.

OH and, when I meant enter IEEE number, I did not mean of the execom member whose tenure we are ending. I mean the IEEE number of the execom who logged in, whose userID is anyway the IEEE number.

Prajwalprakash3722 commented 1 year ago

Oh, you meant the logged user ieee no, I was mistaken, then ieee number makes sense.

QUESTION? can we have both features?

dragonfist453 commented 1 year ago

Oh yeah! We can do that but does it make sense?? Why would we end a tenure for just 1 guy? Is it because he got kicked out? left early? We surely can but I don't see how we will use that

Prajwalprakash3722 commented 1 year ago

It may not seem immediately useful, it could be a valuable addition to the system in the long run.