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

refactor(table): use an SCSS variable for the height of aggregations row #3429

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

Kiarokh
Copy link
Contributor

@Kiarokh Kiarokh commented Feb 4, 2025

fix https://product.lime-crm.com/client/object/bug/7808?tab=_overview

The summary/aggregation of the column is not shown correctly. The number is being cut, not being readable.A lot of costumers reaching out about this., see example pic

Review:

  • Commits are atomic
  • Commits have the correct type for the changes made
  • Commits with breaking changes are marked as such

Browsers tested:

(Check any that applies, it's ok to leave boxes unchecked if testing something didn't seem relevant.)

Windows:

  • Chrome
  • Edge
  • Firefox

Linux:

  • Chrome
  • Firefox

macOS:

  • Chrome
  • Firefox
  • Safari

Mobile:

  • Chrome on Android
  • iOS

@Kiarokh Kiarokh added bug Something isn't working 🦄✨ yolo labels Feb 4, 2025
@Kiarokh Kiarokh self-assigned this Feb 4, 2025
Sometimes, a table loads, but the aggregation row is not shown.
That is because the component does real-time (but delayed)
calculations and adds classes or inlined styles. In this case,
the previous code was written relying on existence of a class name
called `has-aggregations`. But this class would be applied to the table,
unless some re-rendering happened; and sometimes it was remove
when some re-rendering happened (e.g. a column was moved).
This caused the styles that are depending on the class name to
have no effect, causing the aggregations row to be covered and hidden
by the rest of the table.
@Kiarokh Kiarokh force-pushed the table-aggregations-row branch from 9638ba3 to 32f2e2e Compare February 4, 2025 09:01
Copy link

github-actions bot commented Feb 4, 2025

Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-3429/

@LucyChyzhova LucyChyzhova self-requested a review February 4, 2025 09:09
Copy link
Contributor

@LucyChyzhova LucyChyzhova left a comment

Choose a reason for hiding this comment

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

great! thanks Kia! ❤️

@LucyChyzhova LucyChyzhova merged commit d65faf9 into main Feb 4, 2025
12 checks passed
@LucyChyzhova LucyChyzhova deleted the table-aggregations-row branch February 4, 2025 09:11
@lime-opensource
Copy link
Collaborator

🎉 This PR is included in version 37.81.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released 🦄✨ yolo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants