splitbee/react-notion

Checkboxes do not render

plc opened this issue · 6 comments

plc commented

If you import a Notion page that includes checkboxes, the library will cause an error and not render.

Since the library has no way to actually write back the checkbox interaction back to Notion, I propose it simply reads if the checkbox is checked or not and render that (with no way of toggling it from the library) — so if a checkbox is un-checked, it will simply show an empty checkbox, and if it is checked, it will simply show a checked checkbox.

Proposed fix:

  • Render checkboxes with their current state:
  • If a Notion page has a checkbox that is un-checked, render an empty checkbox
  • If a Notion page has a checkbox that is checked, render a checked checkbox.
plc commented

Hello, I made a bounty for this issue since we'd love to see it fixed :) https://gitpay.me/#/task/533

pyk commented

Btw for the checkbox, I think it is by design doesn't support a checkbox. The author recommend to use react-notion-x

@pyk not sure, there is "Not planned" label only at databases line.

I did some experiments with the checkbox and it shouldn't be too hard to support. I'll let you know when there is something usable.

plc commented

@timolins that would be AMAZING