EINDEX / logseq-copilot

Logseq Copilot is a Browser extension that allows you to access your Logseq via your browser.
https://logseq-copilot.eindex.me
GNU General Public License v3.0
235 stars 21 forks source link

Refine the error message in Options page when can't connect to Logseq #19

Closed jinliu closed 1 year ago

jinliu commented 1 year ago

Currently when clicking the connect button and it fails, the error message is "Unknow issues, may you can connect with author".

  1. Should be "Unknown issues. Maybe you can contact with the author.".

  2. More importantly, most often this error is because Logseq is not running, or the API Server is not started. So, instead of "contact with the author", we should prompt the user to check these first. E.g. :

    [Connection failed] (button)
    (text) Can't connect to the Logseq API Server. Please check that:
    1. Logseq is running.
    2. Logseq API Server is started. ((link)Guide)
    3. The Logseq host and token entered above are correct. 
  3. API Server doesn't need Developer Mode in the latest Logseq, so the setup guide should be changed accordingly.

jinliu commented 1 year ago

Oh, I see you are redoing the options page: https://github.com/EINDEX/logseq-copilot/issues/17 Nevermind.

EINDEX commented 1 year ago

Wow, thanks for sharing!