Skip to content

Conversation

agg23
Copy link
Contributor

@agg23 agg23 commented Aug 22, 2025

#37146

For some reason when we have no user specified projects, we insert a project with the empty string as its name. This was getting displayed following #36866.

@agg23 agg23 requested a review from pavelfeldman August 22, 2025 15:26
Copy link
Contributor

Test results for "tests 1"

1 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1079 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node18`

46633 passed, 805 skipped


Merge workflow run.

style?: React.CSSProperties,
}> = ({ projectNames, activeProjectName, otherLabels, useLinks, style }) => {
return (projectNames.length > 0 || otherLabels.length > 0) && <span className='label-row' style={style ?? {}}>
// We can have an empty project name if we have no projects specified in the config
Copy link
Contributor

Choose a reason for hiding this comment

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

We can also have multiple empty projects. Will this code work in such a case?

projects: [
  { name: 'chromium' },
  { /* some settings */ },
  { /* different settings */ },
  { name: 'webkit' },
]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot 2025-08-26 at 5 46 02 AM

It functions with any project without a name.

@agg23 agg23 merged commit f9cffd6 into microsoft:main Aug 27, 2025
32 checks passed
mxschmitt pushed a commit that referenced this pull request Aug 27, 2025
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