Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

feat: add workspace preferred model - #217

Merged
peppescg merged 29 commits into
mainfrom
issues/209
Jan 29, 2025
Merged

feat: add workspace preferred model#217
peppescg merged 29 commits into
mainfrom
issues/209

Conversation

@peppescg

@peppescgpeppescg commented Jan 28, 2025

Copy link
Copy Markdown
Collaborator

Select preferred model from model providers endpoint.

BE is not ready, we are going to hide this section for now, so it is safe to merge it.

Kapture.2025-01-29.at.13.24.40.mp4

@peppescgpeppescg self-assigned this Jan 28, 2025
@ghost

ghost commented Jan 28, 2025

Copy link
Copy Markdown

Minder Vulnerability Report ✅

Minder analyzed this PR and found it does not add any new vulnerable dependencies.

Vulnerability scan of 81dbe59d:

  • 🐞 vulnerable packages:0
  • 🛠 fixes available for:0

@ghostghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @dnd-kit/accessibility

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity6.9
User activity7.9
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions12
Number of git tags or releases121
Versions matched to tags or releases8

📦 Dependency: @dnd-kit/core

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.6
Repository activity6.9
User activity8.3
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions134
Number of git tags or releases128
Versions matched to tags or releases41

📦 Dependency: @dnd-kit/sortable

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity6.9
User activity7.9
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions106
Number of git tags or releases125
Versions matched to tags or releases21

📦 Dependency: @dnd-kit/utilities

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity6.9
User activity7.9
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions87
Number of git tags or releases88
Versions matched to tags or releases12

📦 Dependency: uuid

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.7
Repository activity6
User activity9.4
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions45
Number of git tags or releases48
Versions matched to tags or releases29
Alternatives
PackageScoreDescription
uuid-13450
uuid-random0

@coveralls

coveralls commented Jan 28, 2025

Copy link
Copy Markdown
Collaborator

Pull Request Test Coverage Report for Build 13033214444

Details

  • 32 of 46(69.57%) changed or added relevant lines in 7 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.8%) to 72.297%

Changes Missing CoverageCovered LinesChanged/Added Lines%
src/mocks/msw/handlers.ts020.0%
src/api/generated/sdk.gen.ts3650.0%
src/api/generated/@tanstack/react-query.gen.ts71643.75%
TotalsCoverage Status
Change from base Build 13033106631:0.8%
Covered Lines:775
Relevant Lines:1009

💛 - Coveralls

@ghostghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @dnd-kit/accessibility

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions12
Number of git tags or releases121
Versions matched to tags or releases8
Alternatives
PackageScoreDescription
@reach/visually-hidden0
@react-aria/visually-hidden0

📦 Dependency: @dnd-kit/core

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions134
Number of git tags or releases128
Versions matched to tags or releases41
Alternatives
PackageScoreDescription
react-dnd0

📦 Dependency: @dnd-kit/sortable

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions106
Number of git tags or releases125
Versions matched to tags or releases21

📦 Dependency: @dnd-kit/utilities

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions87
Number of git tags or releases88
Versions matched to tags or releases12

📦 Dependency: uuid

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.7
Repository activity6
User activity9.4
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions45
Number of git tags or releases48
Versions matched to tags or releases29
Alternatives
PackageScoreDescription
uuid-13450
uuid-random0

@ghostghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @dnd-kit/accessibility

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions12
Number of git tags or releases121
Versions matched to tags or releases8
Alternatives
PackageScoreDescription
@reach/visually-hidden0
@react-aria/visually-hidden0

📦 Dependency: @dnd-kit/core

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions134
Number of git tags or releases128
Versions matched to tags or releases41
Alternatives
PackageScoreDescription
react-dnd0

📦 Dependency: @dnd-kit/sortable

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions106
Number of git tags or releases125
Versions matched to tags or releases21

📦 Dependency: @dnd-kit/utilities

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions87
Number of git tags or releases88
Versions matched to tags or releases12
Alternatives
PackageScoreDescription
@dnd-kit/core0
@dnd-kit/sortable0

📦 Dependency: uuid

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.7
Repository activity6
User activity9.4
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions45
Number of git tags or releases48
Versions matched to tags or releases29
Alternatives
PackageScoreDescription
uuid-13450
uuid-random0

@ghostghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @dnd-kit/accessibility

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions12
Number of git tags or releases121
Versions matched to tags or releases8
Alternatives
PackageScoreDescription
@reach/visually-hidden0
@react-aria/visually-hidden0

📦 Dependency: @dnd-kit/core

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions134
Number of git tags or releases128
Versions matched to tags or releases41
Alternatives
PackageScoreDescription
react-dnd0

📦 Dependency: @dnd-kit/sortable

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions106
Number of git tags or releases125
Versions matched to tags or releases21

📦 Dependency: @dnd-kit/utilities

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions87
Number of git tags or releases88
Versions matched to tags or releases12
Alternatives
PackageScoreDescription
@dnd-kit/core0
@dnd-kit/sortable0

📦 Dependency: uuid

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.7
Repository activity6
User activity9.4
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions45
Number of git tags or releases48
Versions matched to tags or releases29
Alternatives
PackageScoreDescription
uuid-13450
uuid-random0

@ghostghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @dnd-kit/accessibility

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions12
Number of git tags or releases121
Versions matched to tags or releases8
Alternatives
PackageScoreDescription
@reach/visually-hidden0
@react-aria/visually-hidden0

📦 Dependency: @dnd-kit/core

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions134
Number of git tags or releases128
Versions matched to tags or releases41
Alternatives
PackageScoreDescription
react-dnd0

📦 Dependency: @dnd-kit/sortable

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions106
Number of git tags or releases125
Versions matched to tags or releases21

📦 Dependency: @dnd-kit/utilities

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.4
Repository activity7
User activity8
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions87
Number of git tags or releases88
Versions matched to tags or releases12
Alternatives
PackageScoreDescription
@dnd-kit/core0
@dnd-kit/sortable0

📦 Dependency: uuid

Trusty Score: 0

Scoring details
ComponentScore
Package activity7.7
Repository activity6
User activity9.4
Provenancehistorical_provenance_match
Proof of Origin (Provenance)

This package can be linked back to its source code using a historical provenance map.

We were able to correlate a significant number of git tags and tagged releases in this package’s source code to versions of the published package. This mapping creates a strong link from the package back to its source code repository, verifying proof of origin.

Published package versions45
Number of git tags or releases48
Versions matched to tags or releases29
Alternatives
PackageScoreDescription
uuid-13450
uuid-random0

@peppescgpeppescg changed the title feat(muxing): add workspace model overridesfeat(muxing): add workspace preferred modelJan 29, 2025
@peppescgpeppescg changed the title feat(muxing): add workspace preferred modelfeat: add workspace preferred modelJan 29, 2025
@peppescg
peppescgforce-pushed the issues/209 branch 2 times, most recently from 5fc877e to 9e4adf9CompareJanuary 29, 2025 13:56
@peppescgpeppescg linked an issue Jan 29, 2025 that may be closed by this pull request
@peppescg
peppescgforce-pushed the issues/209 branch 2 times, most recently from 0143e9c to 341bf2cCompareJanuary 29, 2025 14:01
await invalidate();
},
successMsg: (variables) =>
`Preferred model on ${variables.path.workspace_name} successfully submitted!`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Super tiny nit, just to make the message more consistent with existing ones

Suggested change
`Preferred model on ${variables.path.workspace_name} successfully submitted!`,
`Preferred model for "${variables.path.workspace_name}" updated`,

workspaceName={name}
/>
<WorkspacePreferredModel
className="mb-4 hidden"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tailwind can truly do anything, even feature flags :trollface: 🚀

kantord
kantord previously approved these changes Jan 29, 2025
await waitFor(() => {
expect(
screen.getByText(
/preferred model on fake-workspace successfully submitted!/i,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The corresponding tweak for my other comment

Suggested change
/preferredmodelonfake-workspacesuccessfullysubmitted!/i,
/preferredmodelfor"fake-workspace"updated/i

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

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

yep makes sense, 🙏

lxmcgvrn
lxmcgvrn previously approved these changes Jan 29, 2025
@peppescg
peppescg dismissed stale reviews from kantord and lxmcgvrn via 88588e7January 29, 2025 14:13
@peppescg
peppescg merged commit 90dfbe9 into mainJan 29, 2025
@peppescg
peppescg deleted the issues/209 branch January 29, 2025 14:15
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Muxing support within workspace

4 participants

@peppescg@coveralls@kantord@lxmcgvrn