Page MenuHomePhabricator

Add a "WorkboardCardTemplate" class to make workboard client code easier to reason about
ClosedPublic

Authored by epriestley on Mar 11 2019, 3:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 11:10 PM
Unknown Object (File)
Sat, Nov 16, 7:19 AM
Unknown Object (File)
Mon, Nov 11, 8:10 PM
Unknown Object (File)
Fri, Nov 8, 12:55 AM
Unknown Object (File)
Oct 22 2024, 5:26 PM
Unknown Object (File)
Oct 17 2024, 8:33 AM
Unknown Object (File)
Oct 9 2024, 11:52 AM
Unknown Object (File)
Oct 1 2024, 3:44 PM
Subscribers
None

Details

Summary

Depends on D20266. Boards currently have several whateverMap<cardPHID => stuff> properties, but we can just move these all down into a CardTemplate, similar to the recently introduced HeaderTemplate.

The CardTemplate holds all the global information for a card, and then Card is specific for a particular copy in a column. Today, each CardTemplate has one Card, but a CardTemplate may have more than one card in the future (when we add subproject columns).

Test Plan

Viewed workboards in different sort orders and dragged stuff around, grepped for all affected symbols.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 12 2019, 7:05 PM
webroot/rsrc/js/application/projects/WorkboardBoard.js
314

This might be a behavioral change / wrong, but I couldn't figure out why this check existed, and I've touched most of this code now in implementing the new "Group By Header" stuff. Generally, all the code handles updates to objects it already knows about gracefully, and the obvious cases (adding a new card / editing an existing card) appear to work fine, so I suspect this wasn't meaningful.

This revision was automatically updated to reflect the committed changes.