rhysd / tweet-app

Desktop Twitter client only for tweeting. Timeline never shows up.

Home Page:https://www.npmjs.com/package/tweet-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New feature: Draft

rhysd opened this issue · comments

Twitter does not support saving draft of tweet as service since each Twitter client supports it.

I'm considering this app supports the feature:

  • Add 'Draft' menu and 'Save as Draft' as its first menu item
  • When clicking it, renderer checks input form and extract following information and send it to main
    • text
    • in_reply_to user ID (should be undefined on normal tweet)
  • Main process manages draft in JSON file at user data directory
    • Draft items should be put per user
  • Draft items are listed in 'Draft' menu as menu item after first item 'Save as Draft'
    • When clicking it, main process will reopen the application window with proper text= and in_reply_to= params
    • After content is opened correctly (I think it can be confirmed by online status), main will delete the draft item and the menu item

Alternative implementation is saving the data to local storage, but I'm considering that managing drafts in main would make things simpler.

Current limitation: Chain of tweets in tweet form is not preserved.

This feature is now available thanks to Twitter's official "Unsent Tweet" feature.

  • Click "Unsent Tweet" and choose a draft in the list. To cancel it, select "New Tweet" in "Edit" menu
  • Select "Cancel Tweet" in "Edit" menu to save current text as draft. It shows a Discard/Save dialog. Click "Save" button

スクリーンショット 2021-01-28 2 54 43