daedalus-developers / daedalus.codes

Home Page
https://daedalus.codes
9 stars 18 forks source link

#86 Jellyfish/registration page #88

Closed Frostzeichen closed 7 months ago

Frostzeichen commented 9 months ago

This PR adds new functionality for the checkbox, radio, and file types in the eventRequirements factory.

The changes are as follows:

These changes were used to build parts of the registration page.

DDuran19 commented 9 months ago

Kindly run

pnpm format && pnpm lint

to ensure that there'll be no linting issue prior to pushing

Frostzeichen commented 9 months ago

Got it. Seems like pnpm lint returns the following error:

daedalus.codes@0.0.2 lint /home/terenzjomar/Daedalus/daedalus-codes-landing prettier --check src/* && eslint .

Checking formatting... All matched files use Prettier code style!

/home/terenzjomar/Daedalus/daedalus-codes-landing/src/lib/components/events/Register.svelte 3:9 error 'CardsCourses' is defined but never used @typescript-eslint/no-unused-vars 122:6 error {@html} can lead to XSS attack svelte/no-at-html-tags

✖ 2 problems (2 errors, 0 warnings)

 ELIFECYCLE  Command failed with exit code 1.

Frostzeichen commented 9 months ago

Should I try fixing these? I'm not quite sure what to do though

DDuran19 commented 9 months ago

Got it. Seems like pnpm lint returns the following error:

kindly fix by removing those unused variables. I also added some todos for changes

Frostzeichen commented 9 months ago

Got it. Seems like pnpm lint returns the following error:

kindly fix by removing those unused variables. I also added some todos for changes

Alright, I'll work on them asap!

DDuran19 commented 9 months ago

Should I try fixing these? I'm not quite sure what to do though

Yes, it says

/Register.svelte 3:9 error 'CardsCourses' is defined but never used

which means that on line 3, 9th character, CardsCourses were defined but never used. You have to delete the definition image

DDuran19 commented 9 months ago

@directormac do we have someone assigned in making the api route where the data for these forms will be delivered?

-edited- referencing #89

Frostzeichen commented 9 months ago

Current Progress: Register.svelte

+page.svelte

Frostzeichen commented 9 months ago

@DDuran19 I've finished the changes. There's a problem with pnpm run check though, seems like a problem with the utils/CardsProjects component.

Does the Register component depend on this component somewhere down the line?

Also, nice job with the tests. That thing looks sleek!

Frostzeichen commented 9 months ago

Forgot to add this in:

Changelog

DDuran19 commented 9 months ago

Good job with the consistent PR and you were able to address everything.

Frostzeichen commented 9 months ago

Late reply, sorry. Working on it now!

Current progress:

Frostzeichen commented 9 months ago

@DDuran19 done with the edits! I think the sun emoji kind of fits better than the fire and wing emoji pair. But I'm not sure if it's good enough. What do you think?