Problem/Motivation

At the moment companies have a page for their contributions, but it is only listing contributions per projects, then alphabetical. To engage more companies to contribute it would be great to provide more visibility and clarity on their contributions. This can help companies better understand their contributions, communicate more about their contributions, provide better rewards to their contributors ... etc.

Proposed resolution

We could provide some filters and sorting options in the list. This could be a sortable table, or filters dropdown for example.
Example of scenario:
1. On the company contributions page, I would like to list all issues contributed by John Doe, listed from the most recent to the oldest.
2. On the company contributions page, I would like to list all issues contributed by everyone, listed from the most recent to the oldest.

Comments

Luukyb created an issue. See original summary.

drumm’s picture

Listing the people is a great idea, since contributions are always made by people, even when they are on behalf of an organization.

I’m not sure that there is a particular reason they are grouped by project currently.

drumm’s picture

This page is already a bit heavy, due to the amount of entity references & data. I think we will need to avoid having a sortable table, so Views content caching can have more hits with fewer combinations. Exposed filters for project & person should be fine.

To make up for not having sortable tables, we could add a CSV export of the View. People with more reporting requirements can then download the data and do any sorting/manipulation they want locally. This also fills the gap in our API where this data is not easily accessible in a machine-readable way.

  • Remove the grouping by project
  • Add people credited and project to each list item
  • Add exposed filters for person and project
luukyb’s picture

Issue tags: +Prague2022
luukyb’s picture

@hestenet I made good progress on this with the help of @drumm. I have a sortable table working.
One thing to note: My changes broke the filter on the page called "Date range", which limits the results to 30 days / 60 days / 90 days / 12 months. I think this field is not relevant anymore, since the credits can now be sorted by date using the clickable table's column "Date". Can I remove the "Date range" filter?
Thanks,
Luc

hestenet’s picture

@luukyb - If it were possible to be able to still apply these filters to your new table, that would be ideal. Organizations often want to be able to see at a glance their activity in those sorts of date ranges (it can be relevant to marketplace position)

If it's not easily possible could you provide a screenshot of what the new table looks like or link to a dev site with the functionality?

luukyb’s picture

Hi @hestenet, you can see an example here: https://credit-drupal.dev.devdrupal.org/node/1204416/issue-credits?page=1
Looks like not all contribs are shown. I haven't tried to remove the filter yet, there maybe some custom code related to it too.

hestenet’s picture

Seems like a good start - happy to continue reviewing as you make further progress. I do think trying to keep some kind of date range filter would be a good idea.