-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat(dashboard-frontend): only use Lit #822
Conversation
Wow! This is a lot of work 👏. I'm wondering if it makes sense to introduce some sort of static rendering. For instance, the homepage is just static content (except for the user icon if you are logged in). But it still requires loading the entire SPA. If Angular is already being removed, maybe it makes sense to look at something like Astro to statically build as much as possible, and keep Lit for any interactive elements/pages? Astro is build on Vite, so the setup should be similar. It will also pre-render Lit components to speed up page load for users, where possible. It's a different setup, because Astro is not a SPA. Components are dynamic, rather than the entire page I have experience with this, so if you want to have a call to discuss options or a demo, let me know. Or tell me if you vehemently disagree 😅 |
I like the idea, but I am not sure how much effort it would take to port it to Astro. I see that they have a Lit guide: https://docs.astro.build/en/guides/integrations-guide/lit/. It might be wise to finish up this up first, what do you think? I'm also going to improve the repositories pages so we can finally release it 😅. I'm available next friday - for the entire day 😃. |
It appears I need to fix the conflicts first. |
5922526
to
f029cc3
Compare
f029cc3
to
56f297d
Compare
@hugo-vrijswijk It's on acceptance now: https://stryker-dashboard-acceptance.azurewebsites.net It might get overwritten soon though (and yes, I will fix the e2e tests and add the other tests when I figure out how.. :)) |
URL's don't accept relative URL's. You can just use a string instead of URL constructor, or create one with the origin of the current page: new URL('/api/reports/github/bla/bla/bla', window.location.origin) Looking at where the error comes from, you could either change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really awesome work! I have some minor code comments. I think we should probably add this extension to the recommended extensions as it caught some bugs (and remove the angular one).
Ive gone through most of the changes. Just not the tests. I think those could use somve love :)
39a156b
to
2fae28a
Compare
29c7d0f
to
bdc4a25
Compare
Things left to do:
After that, I'd say we'll be in a pretty good place 😄 |
Still a bit puzzled why |
packages/stryker-elements/src/stories/atoms/labeled-containers.stories.ts
Outdated
Show resolved
Hide resolved
@hugo-vrijswijk I'm having trouble controlling (or mocking) I see that it might be related to how the tests are run in Playwright.. |
|
For example: to get the current report, the slug is extracted from the URL (
|
4214240
to
1de0293
Compare
I'm pretty much done here, but the E2E tests are a bit flaky it seems... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Other than some minor comments. Congratulations on this massive rework 🙏
packages/website-frontend/test/unit/services/session-storage.service.spec.ts
Show resolved
Hide resolved
One issue with real-time reporting, I will fix that and after that it will be merged 😄 |
Removes Angular.
ToDo list:
Use Typed Inject for dependency injection.This is not going to work since browsers require a constructor without parameters.Closes #483