alejmedinajr / AI-Detector

Repo for 2024 CS Capstone Project
1 stars 0 forks source link

Report Page #67

Closed noahzamarripa closed 7 months ago

noahzamarripa commented 7 months ago

The user(professor accounts) will be able to see a report page that is a table of their past submissions, percentage, and a button to see each comparison functions' accuracy. As well as the ability to say whether or not the comparison was useful (with a yes or no button) to include it in the custom AI model. Issue #62 will be included on this page in the form of modals for each of the comparison functions(see issue #62 for more information on what this will look like). IMG_3217

noahzamarripa commented 7 months ago

Working on this now

noahzamarripa commented 7 months ago

Ran into local issues regarding not having some packages installed and the react app was not compiling,, I have installed everything but there is some issue still.

noahzamarripa commented 7 months ago

nearly fixed all of the issues,, there is an exporting issue now

noahzamarripa commented 7 months ago

solved the exporting issue and can finally work on the issue as intended. There were many installations others did on their machines that were not done on mine as we have all worked on different issues

noahzamarripa commented 7 months ago

New error appeared after fixing what was originally the problem,, however this is more unclear on what is happening as it could be a multitude of things.

noahzamarripa commented 7 months ago

Created .js file for report page and imported starter imports like chakra and react router stuff,, making the skeleton page now

noahzamarripa commented 7 months ago

added function to navigate back to account page and made a box to organize the information modals about comparison information

noahzamarripa commented 7 months ago

Added theme toggle button and imported HStack to line up the modals horizontally. Using text import to put a small title above the modals as in "Comparison Information'

noahzamarripa commented 7 months ago

Added the 3 modals next to each other with placeholder explanations,, each has their respective button to open with corresponding title

alejmedinajr commented 7 months ago

Update: Am still working on setting up the database so the metrics can be stored for the signed in user (and they will be able to generate their history of reports)

alejmedinajr commented 7 months ago

Update: File-File metric comparison works and is stored in firebase, though each report is saved, I need to make it for individual users by adding an extra level (which should be easy in theory).

Screenshot 2024-04-18 at 12 18 44 AM
alejmedinajr commented 7 months ago

Update: I just realized that this does not matter since I proactively saved the user id in the report as well, I can just order by user id and time to only get the reports from the current user.

alejmedinajr commented 7 months ago

Made a basic report page that works, i need to make it match the rest of the app. I also realized that when generating a report, the user needs to also enter an assignment name (or the file name needs to also be saved to the report object).

Screenshot 2024-04-18 at 1 06 55 AM
alejmedinajr commented 7 months ago

Current Update: New aesthetically pleasing and cleaned up report page, also has navigation to other relevant pages like prompt, account home, and sign out.

Screenshot 2024-04-18 at 1 37 29 AM
alejmedinajr commented 7 months ago

@noahzamarripa I am going to push these changes so that you can incorporate your modal code to the table headers (for the metric explanations).

alejmedinajr commented 7 months ago

Update: I hooked up the machine learning model, and I tested it out with one of my papers. I think now it would be fairly simple to add the self training buttons.

Screenshot 2024-04-18 at 2 40 18 AM
alejmedinajr commented 7 months ago

Update: Now there is a not complete implementation for self labeling (with the chakra thumbs up or down buttons (they are really icons)). This is hooked up to the api, but it does not do anything to the model yet. The idea is that the user labels the data and the model is training again with this new data.

Screenshot 2024-04-18 at 3 26 45 AM
alejmedinajr commented 7 months ago

I think I am going to bed now

noahzamarripa commented 7 months ago

Closing this issue as I am incorporating the modals in the up-to-date code in a new issue,, this issue is referenced in the description in the new issue