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

[full-ci] Admin: Spaces actions in sidebar #8233

Merged
merged 5 commits into from
Jan 23, 2023

Conversation

lookacat
Copy link
Contributor

@lookacat lookacat commented Jan 13, 2023

Description

See #8222

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

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs
Copy link

update-docs bot commented Jan 13, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@lookacat lookacat changed the title Implement spaces actions in sidebar Admin: Spaces actions in sidebar Jan 13, 2023
@lookacat lookacat marked this pull request as ready for review January 13, 2023 13:45
@lookacat lookacat changed the title Admin: Spaces actions in sidebar [full-ci] Admin: Spaces actions in sidebar Jan 13, 2023
@lookacat lookacat force-pushed the admin-panel-spaces-actions-sidebar branch 2 times, most recently from 426f1e1 to 6797726 Compare January 16, 2023 09:40
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.

Did you consider extracting web-app-files/src/components/SideBar/Actions/SpaceActions.vue into web-pkg? This new panel brings quite some code duplication...

@JammingBen
Copy link
Contributor

Did you consider extracting web-app-files/src/components/SideBar/Actions/SpaceActions.vue into web-pkg? This new panel brings quite some code duplication...

Yeah we did, but decided against it eventually, mainly because of:

  • We would need to move the 2 image-related actions (upload & set as image) to web-pkg. This requires the ThumbnailService to be moved as well, maybe goes even deeper.
  • The architecture of mixins will change anyways in the future, which probably effects such components pretty heavily.

@lookacat lookacat requested a review from kulmann January 16, 2023 12:24
@lookacat
Copy link
Contributor Author

@kulmann can we merge it?

@JammingBen JammingBen force-pushed the admin-panel-spaces-actions-sidebar branch from 6797726 to bdb30eb Compare January 18, 2023 12:57
@kulmann kulmann force-pushed the admin-panel-spaces-actions-sidebar branch from bdb30eb to 0f1dc50 Compare January 23, 2023 22:22
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.

👍

component: MembersPanel,
default: false,
enabled: unref(selectedSpaces).length === 1,
componentAttrs: {
spaceResource: unref(selectedSpaces)[0]
}
},
{
app: 'SpaceActions',
Copy link
Member

Choose a reason for hiding this comment

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

Please insert the Actions panel before the Members panel. Otherwise the order of panels is inconsistent in the files app (project spaces overview) and here in the admin settings app.

Copy link
Member

Choose a reason for hiding this comment

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

(took care myself, so that we can merge this asap)

@sonarcloud
Copy link

sonarcloud bot commented Jan 23, 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 0 Code Smells

81.0% 81.0% Coverage
0.0% 0.0% Duplication

@kulmann kulmann merged commit 847d83e into master Jan 23, 2023
@delete-merged-branch delete-merged-branch bot deleted the admin-panel-spaces-actions-sidebar branch January 23, 2023 22:56
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