Skip to content

Conversation

@LukasHirt
Copy link
Collaborator

Description

If the root.deleted.state property of a space is trashed, the space is not shown in the UI. This includes also personal spaces.

Motivation and Context

User does not see disabled spaces.

How Has This Been Tested?

  • test environment: macos, chrome
  • test case 1: create user, add a dir into his personal space, change this users role to User Light, open the UI again with that user

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
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@LukasHirt LukasHirt requested review from Copilot and mzner October 7, 2025 08:31
@LukasHirt LukasHirt self-assigned this Oct 7, 2025
@LukasHirt LukasHirt added the Category:Enhancement Add new functionality label Oct 7, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements functionality to hide trashed spaces from the UI by filtering out spaces with root.deleted.state set to 'trashed'. This applies to both personal and project spaces.

  • Adds filtering logic to exclude trashed spaces in the getSpacesByType function
  • Introduces a SpaceDeletedState enum for better type safety
  • Includes comprehensive test coverage for the new filtering behavior

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/web-pkg/src/composables/piniaStores/spaces.ts Implements filtering logic to exclude spaces with trashed state
packages/web-pkg/tests/unit/composables/piniaStores/spaces.spec.ts Adds test case to verify trashed spaces are filtered out
packages/web-client/src/helpers/space/types.ts Defines SpaceDeletedState enum for type safety
changelog/unreleased/enhancement-hide-trashed-spaces.md Documents the enhancement

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@LukasHirt LukasHirt enabled auto-merge October 7, 2025 08:36
If the `root.deleted.state` property of a space is `trashed`, the space
is not shown in the UI. This includes also personal spaces.
@LukasHirt LukasHirt force-pushed the feat/hide-disabled-spaces branch from 55b459c to bef280e Compare October 7, 2025 08:38
@LukasHirt LukasHirt merged commit 5e38405 into master Oct 7, 2025
2 checks passed
@LukasHirt LukasHirt deleted the feat/hide-disabled-spaces branch October 7, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category:Enhancement Add new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants