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

fix(cdk): compat static requests with SSR #5653

Closed
wants to merge 1 commit into from

Conversation

splincode
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring
  • Build or CI related changes
  • Tests related changes
  • Documentation content changes

What is the current behaviour?

Closes #4063

@lumberjack-bot
Copy link

lumberjack-bot bot commented Oct 16, 2023

Pull request was closed ✔️

All saved screenshots (for current PR) were deleted 🗑️

@bundlemon
Copy link

bundlemon bot commented Oct 16, 2023

BundleMon

Files updated (1)
Status Path Size Limits
demo/browser/main.(hash).js
336.31KB (+133B +0.04%) +10%
Unchanged files (5)
Status Path Size Limits
demo/browser/vendor.(hash).js
201.19KB +10%
demo/browser/runtime.(hash).js
38.18KB +10%
demo/browser/polyfills.(hash).js
18.28KB +10%
demo/browser/scripts.(hash).js
17.9KB +10%
demo/browser/styles.(hash).css
1.67KB +10%

Total files change +129B +0.02%

Groups updated (1)
Status Path Size Limits
demo/browser/*..js
2.18MB (+749B +0.03%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2023

Visit the preview URL for this PR (updated for commit 97b1d81):

https://taiga-ui--pr5653-splincode-fix-issues-1ww68sk7.web.app

(expires Tue, 17 Oct 2023 15:42:54 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4b5ece1e114386f6a105425ef799091475b249eb

@splincode splincode force-pushed the splincode/fix/issues/4063 branch from f734b4e to 97b1d81 Compare October 16, 2023 15:36
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Merging #5653 (97b1d81) into main (bb1a7ca) will increase coverage by 0.03%.
Report is 2 commits behind head on main.
The diff coverage is 30.00%.

@@            Coverage Diff             @@
##             main    #5653      +/-   ##
==========================================
+ Coverage   72.31%   72.35%   +0.03%     
==========================================
  Files        1442     1448       +6     
  Lines       15721    15784      +63     
  Branches     2215     2222       +7     
==========================================
+ Hits        11369    11420      +51     
- Misses       3990     4001      +11     
- Partials      362      363       +1     
Flag Coverage Δ
addon-charts 71.10% <ø> (ø)
addon-doc 60.53% <ø> (ø)
addon-mobile 61.14% <ø> (ø)
addon-table 60.63% <ø> (ø)
addon-tablebars 90.90% <ø> (?)
cdk 78.56% <30.00%> (-0.19%) ⬇️
core 78.16% <ø> (ø)
kit 70.91% <ø> (ø)
summary 72.35% <30.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
projects/cdk/constants/version.ts 100.00% <100.00%> (ø)
projects/cdk/services/static-request.service.ts 26.66% <22.22%> (-5.16%) ⬇️

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

? `${hostname}${port}/${this.baseHref}`
: this.baseHref;

url = `${baseUrl}/${url}`.replace(/(https?:\/\/)|(\/)+/g, `$1$2`);
Copy link
Member

Choose a reason for hiding this comment

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

I confirm that there are no more warning in console.

But icons still do not work during SSR 🤔
Screenshot 2023-10-18 at 13 22 07

Copy link
Member

Choose a reason for hiding this comment

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

@splincode
Should we merge this PR and create the separate issue for absence of icons ?

Or it can be solved in this PR?

@@ -23,6 +26,17 @@ export class TuiStaticRequestService {
return cache;
}

if (!url.startsWith(`http`)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need all this? If it was working under CSR, should we only do this under SSR?

@splincode splincode closed this Oct 18, 2023
@splincode splincode deleted the splincode/fix/issues/4063 branch October 18, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

🐞 - Svg throws Assertion failed: Failed to load external SVG during SSR
3 participants