Skip to content

PR to merge update into next#8

Open
ThaNightHawk wants to merge 147 commits into
nextfrom
dev/rewrite_reactnextjs
Open

PR to merge update into next#8
ThaNightHawk wants to merge 147 commits into
nextfrom
dev/rewrite_reactnextjs

Conversation

@ThaNightHawk
Copy link
Copy Markdown
Member

No description provided.

Frontpage, navbar, footer, half-finished profile-page

Missing: Shop, Challenges + Challenge-selection, Leaderboard, Login-functionality, Settings-page, Patreon-features and so on
Removed:
- Easy

Renamed:
- Medium => Normal
- Extreme => Expert
Tested down to 1366x768 screensize on own work-laptop
Removing deprecated profile-directory. 

Contained the profile-page before adding server-side rendering to the meta-data, to allow for embeds on Discord and various platforms.
Added `needLogin` to allow for links in the navbar, that requires the user to be logged in, for them to show.
Updated the upload-methods to fit all screensizes properly, by using 50% on width for both methods, I did `max-width: 450px` before 🤡
Leaderboard is *finished*, minor tweaks can be done to design, but right now it looks stable. Currently mocking the API with mock-data from the /api/-endpoints on frontend. Needs to be adapted to final API when CORS is fixed on that.
Changed the rank shown on leaderboard to match the users actual rank, and not index of the array for the shown page of the leaderboard. Also fixes rank-colors.
Storm lost avatar-privileges. Fixing null-check on user-avatar on leaderboard. Returns /Logo.svg if user-avatar is null.
Finished challenges-page design. Currently not using live-data, but just HTML. - Removed Mock-API.
added: Middleware.ts

Fixed an oversight in the Leaderboard-fetch, replaced Fetch with Axios, and listens to response-codes instead of the data returned.
…<img> to be <Image>-tags from NextJS - Temp replaced /profile/id with /profile/id/advanced to mock login.
Added an IMGTest endpoint on /profile, to test all borders - Added borders to player-PFP's, where visible, fake-auth in Middleware - Updated NavBar component to have a *somewhat* useable phone-menu but still need updates to it.
…, +Type refactoring, +Enums, +AES256 Encrypt JWT token on cookie creation.

Removed fakeauth, we only use real auth RAAAAAAAAHHH (Updated Middleware, could probably be even better, idk rn?) - Implemented daily challenges-page with countdown until next set of challenges. - Enums added, no way???? - Refactored type interfaces to reuse types, instead of have copies of 3 user-types.

Shop is broken. Missing logic to handle when a user tries to purchase + needs a redesign.
Shop is now added + Rarities-tags + Notification-system (Supports `success`, `error`, `warning` + timer.)
…Footer????, removed wrong "Session" import in Shop

Updated the user-inventory to show item rarity, both in border, hover:background and in the name of the item. - Footer had something updated somewhere????? (Idk wtf is updated in it) - Updated type interface for Items to reflect added rarity-string
…abled **all** frontend caching, to allow the backend to handle that.

Middleware updated to account for new authed page, Patreons can now select borders on the settings-page (Instantly updated throughout the site), Borders.ts-list added, containing all the current borders. Updated various pages to fix glitching effect not being removed, when the user deselect the glitched-border.
Fixed caching on leaderboard-page, to allow for new borders to be loaded on change. - Fixed border-clause on profile-menu - Added a reason as to why a user is not allowed to use a patreon-border, if they're not patreon.

Profile-page sometimes doesn't render, when a user selects "Profile" from the profile-menu.
Added tabs + animations to the about-page, to minimize the length of the page. - Updated navbar styling
Updated the navbar to work for phones (99.9% of the cases), redid the phone menu for the user-menu, fixed centering on footer, updated leaderboard to be responsive in size. Updated minor things on the About-page
Added a complete list of challenges to /about, under the "Challenges"-tab. Redid color of "normal" difficulty, and redid some styling on the frontpage, to make it more useable on screen with scaled text
Copy link
Copy Markdown

@raineaeternal raineaeternal left a comment

Choose a reason for hiding this comment

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

lgtm

NejcZivic and others added 19 commits February 1, 2024 15:38
Updated shop to use the Leaderboard-template, so ensure uniform styling. - Crafting-page moved to the profile-menu as a sub-option
Fixed missing padding top/bottom
Feedback, Settings, Shop and About changes. Only missing profile now. - Added rarity-indicator to shop-items when in mobile-UI: https://i.imgur.com/IF2psXv.png
Profile now supports mobile.
Made the inventory-tab and completed challenges-tab have same styling, to keep a uniform design, and not have it change to random widths, depending on the content. (Idk why I did that in the first place, it's dumb)
Uses API_URL to correctly show images.
Now extends further back than the 10 latest challenges, by using the correct API endpoint. (Avoiding CORS by using server-side API made on the Frontend in this one :fear:)
NextJS made breaking changes in 14.2.5, causing the frontend to hot reload **constantly**.

Given that I haven't fixed stuff, I'm currently downgrading the package until I have done so.
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.

4 participants