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: show template.display_name on Workspace pages#5082

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
mtojek merged 6 commits intocoder:mainfrommtojek:3321-workspaces-api
Nov 16, 2022

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedNov 15, 2022
edited
Loading

Fixes:#3321

This PR modifies the Workspaces API to exposetemplate.display_name. The property is consumed by Workspace pages.

@mtojekmtojek changed the titlefeat: expose template.display_name via Workspaces endpointfeat: show template.display_name on Workspace pagesNov 15, 2022
@mtojekmtojek requested a review froma teamNovember 15, 2022 12:02
@mtojekmtojek marked this pull request as ready for reviewNovember 15, 2022 12:02
@mtojekmtojek requested a review froma team as acode ownerNovember 15, 2022 12:02
@mtojekmtojek requested review froma team,code-asher andpresleyp and removed request fora team,code-asher andpresleypNovember 15, 2022 12:02
Copy link
Member

@deansheatherdeansheather left a comment

Choose a reason for hiding this comment

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

Backend lgtm

Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM. Just left some comments but it is up to you.

mtojek reacted with thumbs up emoji
it("renders the template display name",async()=>{
awaitrenderWorkspacePage()
awaitscreen.findByText(MockWorkspace.template_display_name)
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the FE, we use Storybook for visual tests and "integration tests"(the ones run by Jest) only for testing actions. So I think we can remove this.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Removed, thanks for the suggestion!

<TableCellDataPrimary>
{workspace.template_display_name.length>0
?workspace.template_display_name
:workspace.template_name}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we could have a util function onutils/workspace calledgetWorkspaceDisplayName(workspace: Workspace): string but it is your call.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Added a util function.

@mtojekmtojek merged commit32927b1 intocoder:mainNov 16, 2022
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsNov 16, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

@deansheatherdeansheatherdeansheather approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add a display name to template settings

3 participants

@mtojek@BrunoQuaresma@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp