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)
Sat, Dec 7, 2:49 AM
Unknown Object (File)
Mon, Dec 2, 7:04 AM
Unknown Object (File)
Sun, Dec 1, 12:46 AM
Unknown Object (File)
Nov 19 2024, 11:10 PM
Unknown Object (File)
Nov 16 2024, 7:19 AM
Unknown Object (File)
Nov 11 2024, 8:10 PM
Unknown Object (File)
Nov 8 2024, 12:55 AM
Unknown Object (File)
Oct 22 2024, 5:26 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.