Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new card from the widget #37

Open
lack opened this issue Jul 26, 2019 · 6 comments
Open

Add a new card from the widget #37

lack opened this issue Jul 26, 2019 · 6 comments

Comments

@lack
Copy link
Collaborator

lack commented Jul 26, 2019

I'd love a "quick add" button in the title-bar of the widget. It could open a little dialog that lets me add a card (by title only). The goal would not be to re-create trello's whole "add card" with all the features and additions and things, but just a quick thing for one-off ideas that I would then edit in trello later as I refined them.

@lack
Copy link
Collaborator Author

lack commented Jul 26, 2019

Here's what I mean by an add button in the title bar:

quickadd-button

@lack
Copy link
Collaborator Author

lack commented Jul 26, 2019

Here's my proof-of-concept for the add button. I actually have it fully coded and working:

quickadd-popup

Features:

  • Type in some text and click the "AT END" or "AT TOP" button, and a new card is created in the current list at either the top or the bottom, with the provided text as the title. The popup closes and the widget is refreshed - There's your new card.
  • Want to do more that just add a title? Enable "And open". After you click the "AT END" or "AT TOP" button, the card is created and then opened either in the Trello app or your browser. You can add a description, checklists, other users, etc.
  • Want to add a bunch of cards all at once? Enable the "Multiples" option. When you click "AT END" or "AT TOP", the dialog isn't closed - Instead it creates the new card and clears the "title" text entry box, ready for another.
  • Click the "X" button to close the dialog.

@lack
Copy link
Collaborator Author

lack commented Jul 26, 2019

An interesting side-effect of this - I had to change the authentication a bit, as to do this kind of thing we need to start requesting write privileges.

I have this implemented and working, too, to a point. If you upgrade from a version that only has read privs, you need to logout and re-login to enable the new privs. If you click "add" and try to add a card before you've done this login/logout, the only error you get right now is a toast that tells you to login and logout again... Maybe this can be made better.

@lack
Copy link
Collaborator Author

lack commented Jul 27, 2019

I just reworked my change some, so that when you click the "add" button but we don't have write privs yet, it pops up a dialog:

image

Clicking "Cancel" just closes the dialog, and the widget functions as before (the add button can be hidden via on option screen toggle)

Clicking "OK" invalidates our cached login token and opens up the main activity where clicking the "Login" button will now request write access.

@lack
Copy link
Collaborator Author

lack commented Jul 27, 2019

FYI: Work-in-progress branch is here: https://github.com/lack/TrelloWidget/tree/add_button

@oryanm
Copy link
Owner

oryanm commented Oct 24, 2019

This is pretty cool.
However,

  • I would prefer to keep the widget as a read-only thing and not expand the feature set to a point where it's now an app that is being developed in parallel to the official one. (Ideally if the guys at Trello got their act together and created a usable widget instead of what they currently offer, this widget will be "deprecated").
  • This arguably only saves you the couple of clicks of pressing the title to open the app and creating a card from there.
  • Plus the widget title is already looking a bit crowded with buttons.

I'll have to say no to this, even though it looks like you've put a decent amount of work into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants