Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(site): connect open_in parameter#16036

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
defelmnq merged 7 commits intomainfromopen_in_fe
Jan 7, 2025
Merged

feat(site): connect open_in parameter#16036

defelmnq merged 7 commits intomainfromopen_in_fe
Jan 7, 2025

Conversation

defelmnq
Copy link
Contributor

@defelmnqdefelmnq commentedJan 3, 2025
edited
Loading

Second step toresolveopen_in issue

This PR improves the way the open_in parameter is forwarded across the code, changing the laststring to const everywhere.

Also make sure it is available and forwarded up to theCreateLink component.

@defelmnqdefelmnq marked this pull request as ready for reviewJanuary 6, 2025 10:48
@defelmnqdefelmnq requested review fromdannykopping and removed request forspikecurtisJanuary 6, 2025 10:48
@@ -64,6 +65,7 @@ func TestManifest(t *testing.T) {
},
Health: codersdk.WorkspaceAppHealthInitializing,
Hidden: true,
OpenIn: codersdk.WorkspaceAppOpenInTab,
Copy link
Member

Choose a reason for hiding this comment

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

We changed the test inputs and it passes with no futher changes? Are we not checking for this in the test?
Should we also add a test with an invalid value forOpenIn?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I indeed will add some more tests 👀

@@ -518,6 +518,7 @@ func Apps(dbApps []database.WorkspaceApp, agent database.WorkspaceAgent, ownerNa
},
Health: codersdk.WorkspaceAppHealth(dbApp.Health),
Hidden: dbApp.Hidden,
OpenIn: codersdk.WorkspaceAppOpenIn(dbApp.OpenIn),
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

This piece is the most important of the PR - basically extracting data from the db to make them be visible in the SDK and API calls.

Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

I think your description might need updating now.

Also:

Also make sure it is available and forwarded up to the CreateLink component.

Is this present?

Nit:
This PR almost feels too small now; I'm happy to merge it as-is but it might make more sense to combine this change with the new frontend behavior so it's all logically grouped instead of spread out over several PRs.

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

Approving to unblock; would still like to see a couple of additional tests but no other major blockers from my side.

@defelmnqdefelmnq merged commit289338f intomainJan 7, 2025
33 of 35 checks passed
@defelmnqdefelmnq deleted the open_in_fe branchJanuary 7, 2025 17:08
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 7, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

@johnstcnjohnstcnjohnstcn approved these changes

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@defelmnqdefelmnq

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Opening a coder_app in a new browser window is awkward
4 participants
@defelmnq@dannykopping@johnstcn@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp