-
Notifications
You must be signed in to change notification settings - Fork 3
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: set relevant title in browser tab #928
base: main
Are you sure you want to change the base?
Conversation
if (!tree_name) { | ||
tree_name = ''; | ||
} | ||
|
||
if (!git_branch) { | ||
git_branch = ''; | ||
} | ||
|
||
const treeDetailsName = `${tree_name} ${git_branch}`.trim(); | ||
|
||
return treeDetailsName === '' ? '-' : treeDetailsName; |
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.
if (!tree_name) { | |
tree_name = ''; | |
} | |
if (!git_branch) { | |
git_branch = ''; | |
} | |
const treeDetailsName = `${tree_name} ${git_branch}`.trim(); | |
return treeDetailsName === '' ? '-' : treeDetailsName; | |
if (!tree_name && !git_branch) return '-'; | |
if (!tree_name) return git_branch; | |
if (!git_branch) return tree_name; | |
return `${tree_name} ${git_branch}`; |
@@ -266,6 +280,7 @@ function TreeDetails(): JSX.Element { | |||
/> | |||
} | |||
> | |||
<title>{`Tree: ${getTreeName(treeInfo.treeName, treeInfo.gitBranch)}`}</title> |
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.
this should be localized
@@ -309,6 +309,8 @@ function HardwareDetails(): JSX.Element { | |||
/> | |||
} | |||
> | |||
<title>{`Hardware: ${hardwareId}`}</title> |
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.
ditto
@@ -268,6 +268,7 @@ const TestDetails = ({ | |||
/> | |||
} | |||
> | |||
<title>{`Test: ${data?.path}`}</title> |
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.
ditto
@@ -185,6 +185,7 @@ export const IssueDetails = ({ | |||
/> | |||
} | |||
> | |||
<title>{`Issue: ${data?.comment}`}</title> |
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.
ditto
@@ -229,6 +229,8 @@ const BuildDetails = ({ | |||
/> | |||
} | |||
> | |||
<title>{`Build: ${data?.config_name}`}</title> |
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.
ditto
@@ -185,6 +185,7 @@ export const IssueDetails = ({ | |||
/> | |||
} | |||
> | |||
<title>{`Issue: ${data?.comment}`}</title> |
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.
This might set the title to Issue: undefined
. Check it out:
@@ -0,0 +1,167 @@ | |||
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat"; |
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.
Don't forget to delete the old one
@@ -10,7 +10,7 @@ | |||
"coverage": "vitest run --coverage", | |||
"storybook": "storybook dev -p 6006", | |||
"build-storybook": "storybook build", | |||
"lint-staged": "eslint --max-warnings=0 --ext .ts,.tsx,.js,.jsx src", | |||
"lint-staged": "eslint --max-warnings=0 -c ./eslint.config.mjs", |
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.
Is it really necessary to specify the eslint config file path?
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.
I put this line to test when I update eslint
. This is unnecessary and I will remove it. Thanks!
No description provided.