Skip to content

Remove user tooltips in the application#14442

Merged
andreslucena merged 14 commits intodevelopfrom
fix/flaky-spec
Apr 24, 2025
Merged

Remove user tooltips in the application#14442
andreslucena merged 14 commits intodevelopfrom
fix/flaky-spec

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu commented Mar 31, 2025

🎩 What? Why?

This PR is disabling user tooltips, as it generated some flaky specs in the pipeline.

During a telegram discussion with maintainer's chat, we agreed to temporary remove the support for this functionality, until we have a better solution / approach to it.

Also, it has some inconsistent way of working that could be traced back to 0.29.2. The tooltips are generated when the app is loading firs time, but then, in proposal will disappear when trying to change the listing from list to grid, or sorting by other criterias or even filtering.

Fixes: #14431

Testing:

  1. Make sure the pipeline is green
  2. Visit any pages ( proposals index, proposal show )
  3. See there are no tooltips being displayed.

♥️ Thank you!

@github-actions github-actions bot added module: core type: fix PRs that implement a fix for a bug labels Mar 31, 2025
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: ['type: feature', 'type: change', 'type: fix', 'type: removal', 'target: developer-experience', 'type: internal']

github-actions[bot]
github-actions bot previously approved these changes Mar 31, 2025
@alecslupu alecslupu changed the title Fix comments flacky spec Fix comments flaky spec Mar 31, 2025
@alecslupu alecslupu closed this Mar 31, 2025
@alecslupu alecslupu deleted the fix/flaky-spec branch April 3, 2025 07:26
@alecslupu alecslupu restored the fix/flaky-spec branch April 3, 2025 07:26
@alecslupu alecslupu reopened this Apr 3, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 3, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 3, 2025
@andreslucena
Copy link
Copy Markdown
Member

proud-ron-swanson

github-actions[bot]
github-actions bot previously approved these changes Apr 3, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 3, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 3, 2025
@alecslupu alecslupu marked this pull request as ready for review April 3, 2025 13:27
@alecslupu alecslupu added the release: v0.30 Issues or PRs that need to be tackled for v0.30 label Apr 3, 2025
@alecslupu alecslupu requested a review from andreslucena April 3, 2025 13:27
github-actions[bot]
github-actions bot previously approved these changes Apr 3, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 3, 2025
@github-actions github-actions bot added module: core type: fix PRs that implement a fix for a bug module: design labels Apr 10, 2025
@alecslupu alecslupu changed the title Disable the user tooltips in the application Remove user tooltips in the application Apr 10, 2025
@alecslupu alecslupu marked this pull request as draft April 10, 2025 09:38
github-actions[bot]
github-actions bot previously approved these changes Apr 16, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 16, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 16, 2025
Copy link
Copy Markdown
Member

@greenwoodt greenwoodt left a comment

Choose a reason for hiding this comment

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

Pipeline is green and so far no errors. I can still see some references to the Tooltip in the codebase like: decidim-core/app/packs/stylesheets/decidim/_tooltip.scss.

If I understand right this is temporary removal until we have another solution?

github-actions[bot]
github-actions bot previously approved these changes Apr 17, 2025
@alecslupu
Copy link
Copy Markdown
Contributor Author

Pipeline is green and so far no errors. I can still see some references to the Tooltip in the codebase like: decidim-core/app/packs/stylesheets/decidim/_tooltip.scss.

This PR aims to remove just the author tooltip. The CSS stays behind as it is generic, and may be used for other things as well.

github-actions[bot]
github-actions bot previously approved these changes Apr 17, 2025
github-actions[bot]
github-actions bot previously approved these changes Apr 17, 2025
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I think we should drop the SCSS too:

diff --git a/decidim-core/app/packs/stylesheets/decidim/_author.scss b/decidim-core/app/packs/stylesheets/decidim/_author.scss
index c9d59d256d..abeb8051ed 100644
--- a/decidim-core/app/packs/stylesheets/decidim/_author.scss
+++ b/decidim-core/app/packs/stylesheets/decidim/_author.scss
@@ -37,27 +37,6 @@
     }
   }

-  &__tooltip {
-    @apply grid grid-cols-[1fr_max-content] gap-6 odd:[&>*]:place-self-start even:[&>*]:place-self-end z-50;
-
-    /* overwrite default styles */
-    &[role="tooltip"] {
-      @apply max-w-max;
-    }
-
-    &-links {
-      @apply flex flex-col items-end justify-evenly h-full whitespace-nowrap text-sm hover:[&>*]:underline;
-    }
-  }
-
-  &__tooltip &__avatar-container {
-    @apply w-10 h-10 border-2 border-white hover:border-tertiary;
-  }
-
-  &__tooltip &__name {
-    @apply text-white text-lg font-bold hover:underline;
-  }
-
   &__coauthors {
     @apply flex flex-wrap items-center gap-2;

alecslupu and others added 3 commits April 23, 2025 19:49
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Copy link
Copy Markdown
Member

@andreslucena andreslucena 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-pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: conferences module: core module: design module: meetings module: proposals no-backport Pull Requests that should not be backported type: fix PRs that implement a fix for a bug type: removal PRs that implement a removal of a functionality or code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The profile tooltips are causing a lot of requests to the server

3 participants