Page MenuHomePhabricator

Make Tables play well in PHUIObjectBoxView
ClosedPublic

Authored by chad on Jan 7 2014, 12:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 4:08 PM
Unknown Object (File)
Fri, Dec 27, 4:08 PM
Unknown Object (File)
Fri, Dec 27, 4:08 PM
Unknown Object (File)
Fri, Dec 27, 4:08 PM
Unknown Object (File)
Fri, Dec 27, 3:52 PM
Unknown Object (File)
Sun, Dec 22, 2:29 AM
Unknown Object (File)
Sat, Dec 14, 4:49 PM
Unknown Object (File)
Fri, Dec 13, 11:31 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.