therealsujitk Kyrne Yup, it's fixed now! Some ideas for future releases: Would be great if the drafts feature was available for posts too. Would be great if drafts were saved automatically when typed so that the user can continue the draft incase the browser crashes for some reason.
fakruzaruret I wrote long article and I forget session time duration. I clicked to save draft then the editor was closed and flarum gave me error (Oops.. Somethings went wrong ... ) and success (Draft saved) notification together. But my article has gone because editor was closed. I could not save. Can we prevent closing of editor window. You can try this. Sign in to flarum which draft ext. is enabled and open two tabs. Then write sometings and sign out on second tab. After this save your post by draft. You will see.
Ralkage fakruzaruret maybe an auto-save feature after X amount of time? Your situation seems very unique as session timeouts do happen from time to time and I believe this feature suggestion should solve your issue.
iPurpl3x This extension seems broken on beta 13, when posting a previously created draft, nothing happens, it's just gone. No error.
IanM 0.1.6 Improve UI of using drafts: Load drafts list when opening the composer; this way, we avoid a situation where a new draft is being saved, no drafts have been loaded, and the user is presented with an empty draft list in the header. Load draft count on page load separately from the draft list itself: this means that the count is always accurate. Don't close the composer when saving drafts; this is behavior not used in any other product (imagine if Microsoft Word shut down whenever you pressed save). When a new draft is created, save it as the composer component's stored draft, so that future saves will be treated as updates Prevent duplicate save messages; ensure that the save message disappears and reappears when updating a draft so that the user clearly sees that the change was successsful, and not a left-over save message Right now, the drafts dropdown is only shown if there are already cached drafts saved. However, this doesn't really work, since drafts aren't downloaded by default. Now, the dropdown button will always be shown, and the list of drafts will be loaded by clicking on it, as always. Updating composer require fof/drafts php flarum cache:clear Thank you @askvortsov for your work on this! 🙂
Operator IanM imagine if Microsoft Word shut down whenever you pressed save 😂 Thoughtful update and fixes... 👏🏽@IanM 👏🏽@askvortsov
Ghost_chu So there has a bug in 0.1.6. Guest will receive the No Permission error while plugin trying to pull drafts list when they not logged in.
askvortsov I'll open a PR to fix this, must have been introduced accidentally with the UI changes yesterday.
fakruzaruret askvortsov Could you give an avarage time for the next release? We get No Permission error 😀 I follow your improvements on github and you are great. Also next release solve the all problems.
sakibarifin Can't remove the fof drafts extension via bazaar. When I try to remove it, it says something went wrong, please try again after refreshing the page. I tried that several times but the same error is returned. How do I solve this?
luceos sakibarifin I guess migrations can't be run down (eg removing tables). You can either use composer directly or wait for the issue to be resolved. Filing an issue on the repository would speed up the process of getting issues resolved.
askvortsov Hi! I'm not a member of FoF, so I don't know exactly when the next release is coming out, but there's only one PR left to merge, and that's ready for review. Hopefully that should be done soon. The release will also fix the migration issue.
askvortsov 0.1.7 - Features Galore! This release brings a bunch of new features, UI improvements, and bug fixes. 💾 Drafts will now autosave every 6 seconds (this interval can be adjusted in user preferences) if any fields in the composer have change. Autosave can be disabled in user preferences. ⬅️ Full support for reply drafts and Byobu Private Discussion drafts has been added ⏰ The ability to schedule drafts to post at a later date has been added. This can be disabled by admins in site settings. To make this actually work, admins will need to enable a cron job to run the laravel scheduler script. Please note that validation DOES NOT happen at the time of scheduling: If your draft is invalid (missing content, not enough tags, not enough private recipients, etc...), it will fail to post, and an error message explaining the validation error will be shown next time you check your drafts. This will only happen after the scheduled time. 📱 Buttons for saving your draft have been added to the composer on mobile. 🗯️ Intrusive alerts have been repoaced with a nicer save button loading animation. This is largely to make autosave more user friendly and avoid spamming alerts. ❌ The annoying permission denied bug for non-logged-in users has been fixed, thanks to @wloot for that great fix! 🗑️ The UI for deleting drafts and closing the composer has been improved, see a full list of changes here You'll need to disable & re-enable the extension for the scheduling assets to be copied over.