Page MenuHomePhabricator

Allow Remarkup lists to have checkboxes
ClosedPublic

Authored by epriestley on May 1 2014, 8:10 PM.
Tags
None
Referenced Files
F14054308: D8931.diff
Fri, Nov 15, 11:54 PM
F14043853: D8931.diff
Tue, Nov 12, 1:25 PM
F14028588: D8931.diff
Fri, Nov 8, 2:15 PM
F14017617: D8931.diff
Mon, Nov 4, 7:52 PM
F13996929: D8931.id21195.diff
Thu, Oct 24, 1:06 AM
F13986147: D8931.diff
Mon, Oct 21, 12:56 AM
F13967498: D8931.diff
Oct 16 2024, 1:59 PM
F13967480: D8931.id.diff
Oct 16 2024, 1:54 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).