Page MenuHomePhabricator

Make Tables play well in PHUIObjectBoxView
ClosedPublic

Authored by chad on Jan 7 2014, 12:37 AM.
Tags
None
Referenced Files
F13295397: D7901.diff
Thu, Jun 6, 2:24 AM
F13275679: D7901.diff
Fri, May 31, 5:04 AM
F13261837: D7901.diff
Mon, May 27, 1:30 AM
F13256997: D7901.id17889.diff
Sat, May 25, 7:29 PM
F13245228: D7901.diff
Thu, May 23, 5:52 AM
F13234398: D7901.id17883.diff
Tue, May 21, 3:21 AM
F13222934: D7901.diff
Sun, May 19, 4:07 AM
F13209802: D7901.diff
Fri, May 17, 2:14 AM

Details

Summary

Updates table design to use new standards, work well in PHUIObjectBox. Fixes T4142

Comma

Test Plan

Tested on Diffusion, Settings, will roll out to more places soon

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Tables look great, but one issue inline.

I think you can swap the FormLayoutView back to a FormView? Maybe? If that doesn't work, let me know and we can sort something else out.

If that doesn't work, you can use phabricator_form() to put a style-less <form /> around some content.

src/applications/settings/panel/PhabricatorSettingsPanelHomePreferences.php
199

This button doesn't actually work now (i.e., clicking it does nothing), since FormLayoutView just looks like a form, but is not actually a <form /> tag.

Oh I wound swear PHUIFormlayoutView extended AphrontFormView. Basically I just want something unstyled. Will recheck when I get back.

Yeah that was silly. Basically AphrontFormView adds padding, which I dont want. I can either add a setNoPadding, or wrap the page in a special class. I'll probably do the latter since there isn't much re-use of the former.

chad updated this revision to Unknown Object (????).Jan 7 2014, 3:36 AM
  • Make it work write
chad updated this revision to Unknown Object (????).Jan 7 2014, 6:58 PM
  • Update Diffusion to use new tables.

I got a message saying this wasn't accepted when I went to land. Is that expected?

Yes, if someone requests changes, that person is required to clear the flag for the revision to be marked as accepted.

There's a bunch of meta-discussion on this (mostly in T1279) but it probably shouldn't work just like that forever.