Page MenuHomePhabricator

Make Tables play well in PHUIObjectBoxView
ClosedPublic

Authored by chad on Jan 7 2014, 12:37 AM.
Tags
None
Referenced Files
F13189494: D7901.diff
Sat, May 11, 6:07 AM
F13182168: D7901.id17889.diff
Thu, May 9, 8:25 PM
Unknown Object (File)
Tue, May 7, 9:41 AM
Unknown Object (File)
Fri, May 3, 9:29 AM
Unknown Object (File)
Thu, Apr 25, 3:02 AM
Unknown Object (File)
Apr 9 2024, 1:30 AM
Unknown Object (File)
Apr 6 2024, 6:37 AM
Unknown Object (File)
Apr 6 2024, 6:37 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.