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

add remote fetch of welcome page #1373

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions activity_browser/layouts/panels/right.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ class RightPanel(ABTab):
def __init__(self, *args):
super(RightPanel, self).__init__(*args)
package_dir = Path(__file__).resolve().parents[2]
html_file = str(package_dir.joinpath("static", "startscreen", "welcome.html"))

try:
file = RestrictedWebViewWidget("https://raw.githubusercontent.com/LCA-ActivityBrowser/activity-browser/refs/heads/main/activity_browser/static/startscreen/welcome.html")
except:
# use local fallback if we fail to connect
html_file = str(package_dir.joinpath("static", "startscreen", "welcome.html"))
file = RestrictedWebViewWidget(html_file=html_file)

self.tabs = {
"Welcome": RestrictedWebViewWidget(html_file=html_file),
"Welcome": file,
"Characterization Factors": CharacterizationFactorsTab(self),
"Activity Details": ActivitiesTab(self),
"LCA Setup": LCASetupTab(self),
Expand Down
Loading