Skip to content

Conversation

@JammingBen
Copy link
Contributor

Follow-up for #997.

@JammingBen JammingBen self-assigned this Jul 24, 2025
Copilot AI review requested due to automatic review settings July 24, 2025 09:15
Copy link
Contributor

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 improves the design and functionality of the tile sort menu dropdown and drawer, following up on previous work in PR #997. The changes focus on enhancing the user experience through better visual design and improved interaction patterns.

  • Updates the sort filter chip to use a proper list structure and improved styling
  • Modifies the filter label and active state handling for better user feedback
  • Refactors the test to use a more robust element selection approach

Reviewed Changes

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

File Description
packages/web-pkg/src/components/FilesList/ResourceTiles.vue Restructures sort dropdown with proper list markup, updates styling classes, and improves active state display
packages/web-pkg/tests/unit/components/FilesList/ResourceTiles.spec.ts Updates test to use findAll() with array indexing instead of CSS nth-child selector

<li v-for="(option, index) in sortFields" :key="index">
<oc-button
appearance="raw"
:class="{ 'oc-secondary-container': currentSortField === option }"
Copy link

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

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

[nitpick] The conditional class 'oc-secondary-container' should be applied consistently. Consider using a computed property or method to determine the button's class state for better maintainability.

Copilot uses AI. Check for mistakes.
&-item:hover:not(&-item-active) {
background-color: var(--oc-role-surface-container) !important;
&-item {
justify-content: space-between !important;
Copy link

Copilot AI Jul 24, 2025

Choose a reason for hiding this comment

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

Using !important should be avoided as it makes styles harder to maintain and override. Consider restructuring the CSS specificity or using more specific selectors instead.

Suggested change
justify-content: space-between !important;
display: flex;
justify-content: space-between;

Copilot uses AI. Check for mistakes.
@JammingBen JammingBen requested a review from AlexAndBear July 24, 2025 09:17
@JammingBen JammingBen merged commit ed6dea5 into main Jul 24, 2025
28 checks passed
@JammingBen JammingBen deleted the feat/tile-sort-by-drop-design branch July 24, 2025 09:50
@openclouders openclouders mentioned this pull request Jul 24, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants