Skip to content

Bug/69693 adjust the workspace badge icon style to primer#21364

Merged
dombesz merged 6 commits intorelease/17.0from
bug/69693-adjust-the-workspace-badge-icon-style-to-primer
Dec 15, 2025
Merged

Bug/69693 adjust the workspace badge icon style to primer#21364
dombesz merged 6 commits intorelease/17.0from
bug/69693-adjust-the-workspace-badge-icon-style-to-primer

Conversation

@dombesz
Copy link
Contributor

@dombesz dombesz commented Dec 5, 2025

Ticket

https://community.openproject.org/wp/69693

What are you trying to accomplish?

Adapt the workspace badge style to be closer to Primer ActionList item with description:

  • Label in small text 0.75 REM
  • Icon in xsmall
  • More space between the project name and the icon everywhere

Screenshots

image

What approach did you choose and why?

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@dombesz dombesz marked this pull request as ready for review December 10, 2025 11:30
@github-actions
Copy link

Caution

The provided work package version does not match the core version

Details:

Please make sure that:

  • The work package version OR your pull request target branch is correct

@dombesz dombesz force-pushed the bug/69693-adjust-the-workspace-badge-icon-style-to-primer branch 2 times, most recently from 9c1b5d2 to 47f210a Compare December 11, 2025 13:15
@dombesz dombesz force-pushed the bug/69693-adjust-the-workspace-badge-icon-style-to-primer branch from 0229dae to 40aa94f Compare December 11, 2025 14:00
Base automatically changed from bug/69450-complete-specs-for-autocompleter-changes to release/17.0 December 11, 2025 15:10
@dombesz dombesz force-pushed the bug/69693-adjust-the-workspace-badge-icon-style-to-primer branch from 655161b to 48d185c Compare December 11, 2025 19:06
Copy link
Contributor

@EinLama EinLama left a comment

Choose a reason for hiding this comment

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

The changes themselves look good, but two specs are legitimately red:

  • spec/features/projects/persisted_lists_spec.rb
  • spec/features/projects/lists/filters_spec.rb

@@ -1,5 +1,7 @@
@use "sass:list"

@import '../../../../../global_styles/content/_autocomplete.sass'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this import can be removed. It should happen implicitly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately it is not the case. Alternatively I could add the import to the frontend/src/assets/sass/_helpers.sass, but it's not really a helper class. It would also mean the _autocomplete.sass would be duplicated for every component importing the helper.

Copy link
Contributor

Choose a reason for hiding this comment

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

Where does it raise an error? I removed the line and clicked through a couple of pages. Could not find an issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The asset compiler raises the error:

✘ [ERROR] The target selector was not found.
Use "@extend %autocomplete-description !optional" to avoid this error.
    ╷
108 │           @extend %autocomplete-description
    │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
  src/app/spot/styles/sass/components/list.sass 108:11  root stylesheet [plugin angular-sass]

    angular:styles/global:spot:1:8:
      1 │ @import 'src/spot.scss';
        ╵         ~~~~~~~~~~~~~~~


Copy link
Contributor

Choose a reason for hiding this comment

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

I had that too when I removed the line, but a page reload removed the issue and the app still worked afterwards. I suspected this error was a false-positive due to me removing the import line while the server is running. But maybe that was wrong and a server restart would have left the page unusable.

@dombesz
Copy link
Contributor Author

dombesz commented Dec 12, 2025

@EinLama thank you for the review. I addressed the failing specs.

@dombesz dombesz requested a review from EinLama December 12, 2025 19:15
Copy link
Contributor

@EinLama EinLama left a comment

Choose a reason for hiding this comment

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

👍 looks nicer than before 🙂

@dombesz dombesz merged commit fbe5a67 into release/17.0 Dec 15, 2025
19 checks passed
@dombesz dombesz deleted the bug/69693-adjust-the-workspace-badge-icon-style-to-primer branch December 15, 2025 12:49
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants