Page MenuHomePhabricator

Allow Remarkup lists to have checkboxes
ClosedPublic

Authored by epriestley on May 1 2014, 8:10 PM.
Tags
None
Referenced Files
F14351570: D8931.diff
Thu, Dec 19, 8:19 AM
Unknown Object (File)
Tue, Dec 17, 8:03 AM
Unknown Object (File)
Tue, Dec 17, 7:54 AM
Unknown Object (File)
Sun, Dec 8, 12:43 AM
Unknown Object (File)
Wed, Dec 4, 11:30 AM
Unknown Object (File)
Wed, Nov 20, 9:44 PM
Unknown Object (File)
Nov 15 2024, 11:54 PM
Unknown Object (File)
Nov 12 2024, 1:25 PM
Subscribers

Details

Summary

Fixes T3945. This provides a convenience style for checkmark lists. They're read-only. See disucssion in T3945.

We're limited on how much we can style the checkboxes -- it would be nice to make them a little more visible, but this seems mostly OK to me. I added some hinting to the item text to make the completion state more clear.

Test Plan
  • Added unit tests.
  • Ran unit tests.
  • Fixed a couple of existing unit test issues.

Screen_Shot_2014-05-01_at_12.59.18_PM.png (792×1 px, 75 KB)

Diff Detail

Repository
rPHU libphutil
Branch
checkboxes
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningsrc/markup/engine/__tests__/remarkup/link-alternate.txt:6TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-brackets.txt:3TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-edge-cases.txt:13TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-edge-cases.txt:15TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-edge-cases.txt:17TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-edge-cases.txt:19TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-edge-cases.txt:21TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-edge-cases.txt:23TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-mixed.txt:8TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-mixed.txt:10TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-mixed.txt:12TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-square.txt:11TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-square.txt:13TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-with-punctuation.txt:5TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-with-punctuation.txt:6TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-with-punctuation.txt:7TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link-with-tilde.txt:3TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/link.txt:3TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/list-checkboxes.txt:13TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/list-checkboxes.txt:14TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/list-checkboxes.txt:15TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/list-checkboxes.txt:20TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/list-checkboxes.txt:21TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/list-checkboxes.txt:22TXT3Line Too Long
Warningsrc/markup/engine/__tests__/remarkup/list-checkboxes.txt:23TXT3Line Too Long
Unit
Tests Passed
Build Status
Buildable 170
Build 170: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Allow Remarkup lists to have checkboxes.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, chad.

Yeah, the only issue with browser checkboxes is they give the impression they should be interactive. You could use a font-icon here maybe, not sure how good those icons are though for this.

btrahan edited edge metadata.

Interesting feature.

Are there any plans to have Maniphest task lists show up and have some "click to close" functionality right from the list? That's the only functional crash I can foresee (well, unless we get some lightweight "TODO" app or something too...)

This revision is now accepted and ready to land.May 2 2014, 12:46 AM

Let's see how sketchy this is with browser chrome. It basically has two issues:

  • the checkboxes are kind of hard to see
  • the checkboxes sort of look like they're interactable

But these issues fight one another, so maybe we end up somewhere reasonable. If not, we can switch to drawing our own obviously-not-interactable-but-prominent checkboxes (with icons or whatever else), but I think this element is relatively obscure.

(I don't have any plans to make a more lightweight view of Maniphest tasks, but who knows. I wouldn't completely rule it out.)

epriestley updated this revision to Diff 21215.

Closed by commit rPHUd7732a7cc050 (authored by @epriestley).