twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
GNU Affero General Public License v3.0
15.58k stars 1.65k forks source link

Activities now displayed on table view #6214

Open FelixMalfait opened 1 month ago

FelixMalfait commented 1 month ago

Since we recently added the possibility to display one-to-many relationship directly on the table views, it's now possible to add activities:

Screenshot 2024-07-11 at 09 18 37

As we can see here, since there is an intermediate joint table (activityTarget) and activity don't have a show page, it completely breaks.

I wonder if there's a way to improve this that wouldn't be too dirty or expensive. It feels like we're getting into many-to-many territory...

FelixMalfait commented 1 month ago

(1) Introduce isJointTable on ObjectMetadata (2) If we hit an object that is a JointTable we go one level deeper (3) Adapt RelationFromMany display to look one level deeper if it's a jointTable? (4) Enable show pages for tasks/notes