-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Migrate to NEXTJS #136
Comments
Branch challenges/next for any further development. Im going to rewrite the whole code base, even tho it will be based on the old one. Helper functions will be better documented and probably merged, as these are working fine. Only the frontend should be rebuild. |
What section/task can I start out with for helping with the migration? :o |
As the current version is almost empty, except for the start page, you can add whatever section you want. So, if you want, just tell me what you are working on and it should be good to go :) |
I think I'll start with the Communities page. I haven't worked with Next.js before so this will be fun. :3 |
So for the provider you mentioned, how do you want it implemented? I'm thinking of implementing it as a service class with methods like I'm looking into doing the Titles page thingie. :> |
Yes exactly. The problem is that I am not sure on how to handle these, probably by using async. Both titles and challengeNames should be preloaded (in English at least) on the first startup to support searching challenges and titles by using the (non existent) search bar. |
Additionally, this should be sticky challenges/styles/challenge.module.scss Line 153 in dcb54a4
|
Should I try to migrate the Challenges page? I'm looking at the current one but there is some stuff that is dark magic to me. I remember seeing an endpoint being called somewhere that brought an array of values for challenges that are used for |
The old code is dark magic for me too. That's what the rework is for ^^ You meant probably this ChallengeObject. You could either use the old object code OR you just output a div with, for example, the challenge name by now, because the ChallengeObject is one of the things I would love to rewrite, since it is just poorly coded. You could also say that you wait a few more days and I will re-code this Component first. |
Yeah, it was something to do with the ChallengeObject for the totes' dark magic stuff. >.< I'll see if I can start on the Challenges page and just use a |
@BlossomiShymae is it ok if I name you on an /about page and link to your GitHub or would you rather stay within the dark of GitHub's commit history? |
I will be delighted if you did put an acknowledgment. Gladly! (..◜ᴗ◝..) |
In Commit the Challenge Provider URLs were changed to a new api structure. Currently, I am not sure how to cache this request. The only thing I know is that I have to cache this request, otherwise it could be very redundant. Some of the old pages might break as the url structure changed a bit. Sorry for that @BlossomiShymae , if you have time, could you take a look at the typedef file in the commit mentioned? I tried to modify it conforming to the new api response, but I'm not sure if I used typedef correctly, as I never really worked with it. A quick look would be enough ^^ |
Yep! It appears you grasped it nicely. :3 There is one line I noticed right here: I think it should be The property of the returned JSON, |
Thanks a lot |
So there is a new feature: you can pin challenges. Im not sure why and where to use it, but good to have. Also, a (very optimistic) release date is planned: April 28th 🥳 |
Is there anything I could work on here? |
Currently the only big part missing is the user page. The functionally of the user page is required to add all the other pending feature requests, but you don't have to add the user page and wait until someone else adds it (me) and then add a smaller feature request :) |
Alright, then I will start with making myself familiar with the project. Btw. why are you not using TS 😭 |
I have no clue but I regret it too :/ |
There we have the next refactor after this one 😂 |
How optimistic are you feeling 15 days away? |
Let's say its okay ^^ |
Good to hear |
The /challenge page was moved into a component to be also used on the user page. Now user challenge data can be "applied" to the Challenge component as well to ensure displaying all challenges with or without progress. |
Rewriting the /next branch in /next-next to typescript and upgraded to NextJS 13 app directory. There was a problem which wasn't fixed in the current version used |
Yesn't... This project requires another version of nextJS and if everything is going to start from scratch anyways, why not just rewrite it in typescript. *Of course I am not going to rewrite everything from scratch. I thought about migrating the new code to typescript, which could be a bit challenging as some of the code is a bit "illegal" but overall I think that would be the best approach for the future instead of having it un-typed again |
The page should be rewritten in next, because...
I hate myself for using React in the first place.
Try to migrate the old code as good as possible, make it nextjs-friendly and more structured and then redesign the site.
New features planned:
The text was updated successfully, but these errors were encountered: