Skip to content
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

Modernise Angular frontend, remove frontpage, remove Nebular #876

Merged
merged 126 commits into from
Jan 8, 2024

Conversation

tsa96
Copy link
Member

@tsa96 tsa96 commented Dec 29, 2023

Completes removes Nebular (closes #865), replacing some components with PrimeNG, others with custom ones I made.

Also,

This is a big PR, but it took a huge amount of work to clean up the 2018 crap. There's still some there, but most stuff is far far nicer to work on.

@tsa96 tsa96 requested a review from Gocnak December 29, 2023 07:19
@tsa96 tsa96 force-pushed the refactor/frontend-cleanup branch 6 times, most recently from 7338a17 to ed8c6cc Compare December 31, 2023 14:27
@tsa96
Copy link
Member Author

tsa96 commented Dec 31, 2023

Sorry, I wanted to get those last big Nx refactors in their own PR, but some weird issue with building one of the backend libraries was failing CI on this PR, and doing that big Nx refactor fixed it, so I just bunged it into this one. Soz!!

@tsa96 tsa96 force-pushed the refactor/frontend-cleanup branch 4 times, most recently from bc17c39 to d444885 Compare January 2, 2024 12:49
Copy link
Member

@GordiNoki GordiNoki left a comment

Choose a reason for hiding this comment

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

Looks great, some small stuff should be resolved, but we talked about them on stream

I hate myself

apps/frontend/src/app/services/notifications.service.ts Outdated Show resolved Hide resolved
apps/backend/src/app/modules/users/users.service.ts Outdated Show resolved Hide resolved
libs/constants/src/consts/jwt.const.ts Outdated Show resolved Hide resolved
@tsa96
Copy link
Member Author

tsa96 commented Jan 7, 2024

WRT the XP systems stuff, I misunderstood the old cosmetic XP code, so the issue and previous PR from @ianwillis98 were actually incorrect - completely my fault, sorry about that. Going to drop the XP related stuff from this PR, and fix everything in a separate branch.

@tsa96
Copy link
Member Author

tsa96 commented Jan 7, 2024

Looks great, some small stuff should be resolved, but we talked about them on stream

I hate myself

are you okay?? is review that bad???

tsa96 added 10 commits January 7, 2024 04:29
This actually breaks Nebular overlays but I'm so sick of Nebular I'm gonna try replace them with PrimeNG stuff right now
These changes are messy but helpful to split these commits up.
This is just the result of running `@angular/core:standalone` scripts,
then format/linting.
There's literally nothing in this, and with standalone components removing all
the excess fluff, I just don't see the reason to keep this stubbed - there's barely anything to keep!
Don't really have a use for this, and I want to bring the Frontend Nx libraries into the main app soon anyway.
Having stuff in separate libraries by packed into modules simplifies imports
a little, not much benefit to keeping standalone
Just another thing I don't wanna use lodash for
tsa96 added 19 commits January 7, 2024 04:37
There's nothing managed by Nx in here, so pointless having it be in
a separate library.
IMO this isn't justified in having a dedicated page, moving to homepage
in next community.
When this was a separate library having a module made some sense, but
standalone is probably a bit better now. (Change to remove PipesModule was
in last commit, annoying to dig it out, sorry!)
This converts everything over to Angular 17's new control flow. I don't
love the extra indentation, but in most cases it's a big improvement
and worth moving to this entirely for sake of consistency IMO
This is just the result of running https://github.com/import-js/eslint-plugin-import with the `order` rule enabled.
I think it's too annoying to enforce as an overall rule. But running it the once to get existing stuff cleaned up
seems okay, whilst I'm moving a bunch of other files around anyway.
Doesn't *actually* work, since LocalUserService errors make the test fail.
No point fixing those til we support accessing the dashboard without a login though.
This is barely doing anything right now since we don't have any frontend e2e tests.
Since I removed the main page, we can no longer just test that, and without a JWT
the dashboard will try to redirect you to Steam, or spit out errors.
We could generate logins and stuff relatively easily, but I just don't want to work
on it for now. So I'm disabling this task until we do the auth-less stuff, or major
new Cypress stuff.
@tsa96 tsa96 force-pushed the refactor/frontend-cleanup branch from cedd59e to 1661a38 Compare January 7, 2024 04:37
@tsa96 tsa96 requested review from Gocnak and GordiNoki January 7, 2024 04:37
@tsa96 tsa96 mentioned this pull request Jan 7, 2024
@Gocnak
Copy link
Member

Gocnak commented Jan 7, 2024

Excellent work Tom, the site is looking amazing.

@tsa96 tsa96 merged commit b2111d9 into main Jan 8, 2024
5 checks passed
@tsa96 tsa96 deleted the refactor/frontend-cleanup branch January 8, 2024 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants