Skip to content

Redesign: Remove reference to commentable in activity cell#10816

Merged
ferblape merged 12 commits intofeature/redesignfrom
feature/redesign-last-activities-comments
May 23, 2023
Merged

Redesign: Remove reference to commentable in activity cell#10816
ferblape merged 12 commits intofeature/redesignfrom
feature/redesign-last-activities-comments

Conversation

@entantoencuanto
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This PR removes the link to commentable present in the title of items of activity feed related with comments creation and replaces it with a generic "New comment:"

📌 Related Issues

Link your PR to an issue

Testing

Visit https://decidim-redesign.populate.tools/last_activities?filter%5Bwith_resource_type%5D=&filter%5Bwith_resource_type%5D=Decidim%3A%3AComments%3A%3AComment

📷 Screenshots

Please add screenshots of the changes you are proposing
Description

♥️ Thank you!

@entantoencuanto entantoencuanto added the project: redesign Barcelona City Council contract label May 3, 2023
@entantoencuanto entantoencuanto marked this pull request as ready for review May 3, 2023 18:21
@entantoencuanto entantoencuanto requested review from ferblape and furilo May 3, 2023 18:22
@entantoencuanto entantoencuanto force-pushed the feature/redesign-last-activities-comments branch from 7f4ae36 to a4d230e Compare May 4, 2023 13:38
@furilo
Copy link
Copy Markdown
Contributor

furilo commented May 5, 2023

In this case, according to the issue, this should be the proposal where the comment happened, that is, the inmediate "parent" - right @decidim/product ?

https://decidim-redesign.populate.tools/processes/Decidim4Dummies

SCR-20230505-ipqd

@furilo furilo self-requested a review May 5, 2023 07:18
@furilo
Copy link
Copy Markdown
Contributor

furilo commented May 8, 2023

@decidim/product we have been talking about this, we see several cases:

  • Last Activity at the level site (example):
    • Item of component (ie. proposal): it makes sense to show the name of the space
    • Comment of Item (ie. a comment in a proposal): if we only show the name of the Item, we would be lacking the name of the space. Alternative: Show a minibreadcrumb: Space / Item
  • Last Activity inside a space (example)
    • Item of component (ie. proposal): omit the second line (since we are already in the space)
    • Comment of Item (ie. a comment in a proposal): show the item name

@carolromero
Copy link
Copy Markdown
Member

@furilo IMO it makes sense what you say about the last activity within a space:
image

Regarding the last activity at site level, and comparing the two mockups, we came to the conclusion that it's better to show the previous parent, without adding the breadcrumb.

with breadcrumb:
image

no breadcrumb:
image

The main points to go with this option are:

  • Proposal titles already tend to be quite long, and if we add the title of the space we may need to trim probably both.
  • It's more consistent with the design of the last activity of a space.
  • This is the current behavior and no problems have been reported (AFAIK)

@furilo
Copy link
Copy Markdown
Contributor

furilo commented May 8, 2023

Perfect. All yours @entantoencuanto

@carolromero
Copy link
Copy Markdown
Member

Also, playing with the filters, we find more logical to adapt the design so that the activity itself corresponds to them. Does it make sense to you as well?

image

@entantoencuanto
Copy link
Copy Markdown
Contributor Author

Changes added, including the first icon previous to the activity title

@furilo
Copy link
Copy Markdown
Contributor

furilo commented May 11, 2023

@entantoencuanto why its not showing 10 items? https://decidim-redesign.populate.tools/last_activities (neither in the second page)

Also, @decidim/product, should we change the default items per page to 20?

@furilo furilo requested a review from a team May 11, 2023 15:53
Copy link
Copy Markdown
Member

@carolromero carolromero left a comment

Choose a reason for hiding this comment

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

Hi @entantoencuanto, to finish with the review of this PR:

  • use the same font color for all activity content (right now the first part has a black color that stands out too much).
    image

  • remove the participation space type icon
    image

  • Regarding the activity of a space:

  • Rename the content block to "Last Activity" and remove the subtitle
  • Missing link (and page) to see all the activity of the space
  • Unify font styles
    image
  • @furilo I would say that 10 items by default is fine but yes, it seems that right now the filter is not working properly. FWIW even if you set the content block to 10, only 6 items are displayed.

@entantoencuanto
Copy link
Copy Markdown
Contributor Author

@entantoencuanto why its not showing 10 items? https://decidim-redesign.populate.tools/last_activities (neither in the second page)

Also, @decidim/product, should we change the default items per page to 20?

Taking a look to the code the paginated results are filtered to display only visible items:

  • From the controller there is a query which generates a paginated list of activities
  • From the view there is a call to a cell with the list of activities. The cell filters the passed list to show only activities visible by current user

To fix this the visibility scope should be passed to the query before paginate it, but I'm not sure how complex this would be.

@furilo
Copy link
Copy Markdown
Contributor

furilo commented May 19, 2023

@carolromero it seems the malfunctioning of the item list is a current problem, I opened an issue: #10882

@furilo furilo requested a review from carolromero May 19, 2023 10:11
…-comments

* feature/redesign:
  Add redesign enable ENV variable to control the pipeline (#10610)
  Redesign: progress bar (#10638)
  Redesign: meeting cards (#10722)
  Redesign: pending login (#10699)
  simplify 2col layout (#10819)
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

Proper visuals encountered
image

@ferblape ferblape merged commit 5a93c81 into feature/redesign May 23, 2023
@ferblape ferblape deleted the feature/redesign-last-activities-comments branch May 23, 2023 02:41
entantoencuanto added a commit that referenced this pull request May 26, 2023
* feature/redesign:
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
entantoencuanto added a commit that referenced this pull request May 26, 2023
…rafts

* feature/redesign:
  Feature/redesign components breadcrumb (#10441)
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
  Add redesign enable ENV variable to control the pipeline (#10610)
  Redesign: progress bar (#10638)
  Redesign: meeting cards (#10722)
  Redesign: pending login (#10699)
  simplify 2col layout (#10819)
  Redesign: processes groups content blocks (#10491)
  Redesign: assemblies content blocks (#10573)
entantoencuanto added a commit that referenced this pull request May 26, 2023
* feature/redesign: (21 commits)
  Feature/redesign components breadcrumb (#10441)
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
  Add redesign enable ENV variable to control the pipeline (#10610)
  Redesign: progress bar (#10638)
  Redesign: meeting cards (#10722)
  Redesign: pending login (#10699)
  simplify 2col layout (#10819)
  Redesign: processes groups content blocks (#10491)
  Redesign: assemblies content blocks (#10573)
  Redesign: process & process group cards (#10716)
  Redesign: conference cards (#10502)
  Redesign: pending blogs (#10686)
  Redesign: blog cards (#10685)
  Redesign: filters (#10390)
  replace uses of specific margin-bottom for layout margins (#10675)
  Redesign: menu mobile (#10351)
  Fix comments scss to avoid compilation errors (#10657)
  ...
entantoencuanto added a commit that referenced this pull request May 26, 2023
* feature/redesign:
  Feature/redesign components breadcrumb (#10441)
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
entantoencuanto added a commit that referenced this pull request Jun 2, 2023
…blies-details-page

* feature/redesign:
  Redesign: amendments (#10765)
  Redesign: proposals (#10555)
  Remove unused preset-env dependencies (#10916)
  Feature/redesign components breadcrumb (#10441)
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
  Add redesign enable ENV variable to control the pipeline (#10610)
entantoencuanto added a commit that referenced this pull request Jun 2, 2023
* feature/redesign:
  Redesign: amendments (#10765)
  Redesign: proposals (#10555)
  Remove unused preset-env dependencies (#10916)
  Feature/redesign components breadcrumb (#10441)
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
  Add redesign enable ENV variable to control the pipeline (#10610)
entantoencuanto added a commit that referenced this pull request Jun 2, 2023
* feature/redesign:
  Redesign: amendments (#10765)
  Redesign: proposals (#10555)
  Remove unused preset-env dependencies (#10916)
  Feature/redesign components breadcrumb (#10441)
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
  Add redesign enable ENV variable to control the pipeline (#10610)
  Redesign: progress bar (#10638)
  Redesign: meeting cards (#10722)
  Redesign: pending login (#10699)
entantoencuanto added a commit that referenced this pull request Jun 2, 2023
* feature/redesign:
  Redesign: amendments (#10765)
  Redesign: proposals (#10555)
  Remove unused preset-env dependencies (#10916)
  Feature/redesign components breadcrumb (#10441)
  Redesign: debates (#10653)
  Redesign: Remove reference to commentable in activity cell (#10816)
  Redesign: spinner (#10848)
  Redesign: omnipresent banner (#10847)
  Add redesign enable ENV variable to control the pipeline (#10610)
  Redesign: progress bar (#10638)
  Redesign: meeting cards (#10722)
  Redesign: pending login (#10699)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project: redesign Barcelona City Council contract

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants