Skip to content

refactor: move getIndicators to a composable#1904

Merged
JammingBen merged 1 commit intomainfrom
refactor/resource-indicators-composable
Feb 4, 2026
Merged

refactor: move getIndicators to a composable#1904
JammingBen merged 1 commit intomainfrom
refactor/resource-indicators-composable

Conversation

@JammingBen
Copy link
Member

@JammingBen JammingBen commented Jan 30, 2026

This way we don't need to pass all the data to getIndicators(). Also, it allows us to use the sidebar store actions instead of using the now deprecated events.

The old getIndicators method has been deprecated for compatibility reasons. It now calls the new composable internally.

Follow-up for #1897

This way we don't need to pass all the data to the method that can easily be retrieves when using other composables.
@JammingBen JammingBen added the Type:Maintenance E.g. technical debt, packaging, etc. label Jan 30, 2026
@JammingBen JammingBen self-assigned this Feb 3, 2026
Base automatically changed from refactor/use-sidebar-to-store to main February 3, 2026 15:34
@JammingBen JammingBen marked this pull request as ready for review February 3, 2026 15:34
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.

works 🥳

SpaceResource
} from '@opencloud-eu/web-client'
import { useInterceptModifierClick } from '../keyboardActions'
import { useResourcesStore, useSideBar, useUserStore } from '../piniaStores'
Copy link
Member

Choose a reason for hiding this comment

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

didn't notice it before, but why is useSideBar not named useSideBarStore? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

Mainly because of compatibility reasons (would be breaking otherwise). But I also find that ...Store in this context is not really needed. We also don't have it for e.g. useModals and useMessages.

@JammingBen JammingBen merged commit b0edebe into main Feb 4, 2026
29 checks passed
@JammingBen JammingBen deleted the refactor/resource-indicators-composable branch February 4, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants