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

Add header to the sidebar in spaces management #8234

Merged
merged 3 commits into from
Jan 16, 2023

Conversation

JammingBen
Copy link
Collaborator

@JammingBen JammingBen commented Jan 13, 2023

Description

image

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

@JammingBen JammingBen force-pushed the spaces-management-sidebar-header branch from b26d0bd to b8ae606 Compare January 13, 2023 16:08

export default defineComponent({
name: 'SpaceInfo',
props: {
spaceResource: {
Copy link
Member

Choose a reason for hiding this comment

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

Don't we call the prop just space usually?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's kinda all over the place. A lot of these space sidebar components have a computed prop space, so we do this to avoid name clashing.

Copy link
Member

@kulmann kulmann Jan 16, 2023

Choose a reason for hiding this comment

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

Wouldn't it make more sense to have a consistent space var name in public component API (here: in props) and whatever other var name for internal use?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, at least we keep the API consistent this way. But I'd do this in a follow-up as well, as it probably touches more components.

@sonarcloud
Copy link

sonarcloud bot commented Jan 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

66.7% 66.7% Coverage
0.0% 0.0% Duplication

Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Apart from the var name choice this is good 👍

Var name could also be solved in a followup, as it also would need changes in different components.

@JammingBen JammingBen merged commit aba36d9 into master Jan 16, 2023
@delete-merged-branch delete-merged-branch bot deleted the spaces-management-sidebar-header branch January 16, 2023 08:59
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.

4 participants