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

Allow custom Javascript files for specific page #2375

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

namnguyen20999
Copy link
Member

@namnguyen20999 namnguyen20999 commented Dec 30, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Allowing custom javascript file for specific page from Page()

Related Tickets & Documents

#2366

Checklist

We encourage you to keep the code coverage percentage at 80% and above.

  • This solution meets the acceptance criteria of the related issue.
  • The related issue checklist is completed.
  • This PR adds unit tests for the developed code. If not, why?
  • End-to-End tests have been added or updated. If not, why?
  • The documentation has been updated, or a dedicated issue created. (If applicable)
  • The release notes have been updated? (If applicable)

@namnguyen20999 namnguyen20999 linked an issue Dec 30, 2024 that may be closed by this pull request
6 tasks
@namnguyen20999 namnguyen20999 marked this pull request as ready for review December 30, 2024 09:50
@namnguyen20999 namnguyen20999 changed the title init commit Allow custom Javascript files for specific page Dec 30, 2024
@namnguyen20999 namnguyen20999 self-assigned this Dec 30, 2024
Copy link
Contributor

github-actions bot commented Dec 30, 2024

Coverage report for ./frontend/taipy

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 51.87376725838264%

St.
Category Percentage Covered / Total
🔴 Statements 51.87% 263/507
🔴 Branches 21.61% 67/310
🔴 Functions 14.66% 17/116
🔴 Lines 53.19% 242/455

Test suite run success

7 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from c5fda73

Copy link
Contributor

Coverage report for ./frontend/taipy-gui

Caution

Coverage does not meet threshold
Branches coverage not met for global: expected >=80%, but got 69.27231381466743%

St.
Category Percentage Covered / Total
🟢 Statements
87.31% (-0.14% 🔻)
3524/4036
🟡 Branches
69.27% (-0.06% 🔻)
2437/3518
🟢 Functions
83.27% (-0.09% 🔻)
652/783
🟢 Lines
87.75% (-0.16% 🔻)
3265/3721
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / TaipyRendered.tsx
55.17% (-9.41% 🔻)
12.77% (-0.87% 🔻)
37.5% (-12.5% 🔻)
55.17% (-9.41% 🔻)

Test suite run success

717 tests passing in 47 suites.

Report generated by 🧪jest coverage report action from 359fef6

Copy link
Contributor

github-actions bot commented Dec 30, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
19526 17002 87% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
taipy/gui/_page.py 89% 🟢
taipy/gui/gui.py 79% 🟢
taipy/gui/page.py 76% 🟢
taipy/gui/server.py 79% 🟢
TOTAL 81% 🟢

updated for commit: c5fda73 by action🐍

@@ -61,6 +62,18 @@ const setStyle = (id: string, styleString: string): void => {
}
};

// set script tag for the page
const setScript = (id: string, scriptPaths: string[]): void => {
Copy link
Member

Choose a reason for hiding this comment

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

Can we not use helmet for this ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've put the script outside of the Helmet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow custom Javascript files for specific page
2 participants