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

Feat: set relevant title in browser tab #928

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Francisco2002
Copy link
Collaborator

No description provided.

@Francisco2002 Francisco2002 self-assigned this Feb 13, 2025
Comment on lines +76 to +86
if (!tree_name) {
tree_name = '';
}

if (!git_branch) {
git_branch = '';
}

const treeDetailsName = `${tree_name} ${git_branch}`.trim();

return treeDetailsName === '' ? '-' : treeDetailsName;
Copy link
Contributor

@ricardodalarme ricardodalarme Feb 13, 2025

Choose a reason for hiding this comment

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

Suggested change
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>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -0,0 +1,167 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
Copy link
Contributor

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",
Copy link
Contributor

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?

Copy link
Collaborator Author

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!

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

Successfully merging this pull request may close these issues.

2 participants