luzhanov / anki-adder-plus

"Anki Adder" Chrome plugin
38 stars 4 forks source link

Add local decks CRUD functionality to the options page #12

Open luzhanov opened 7 years ago

luzhanov commented 7 years ago

Right now we have only two local decks which are hardcoded here: defaultDataFiller.js:37 A primitive listing of decks implemented here options.js:109 and options.html:22

Please implement simple controls for a deck management. There are no strict requirements to the presentation.

ACCEPTANCE CRITERIA

luzhanov commented 7 years ago

@vvscode If you will have a time to implement this please comment it. It's the last issue before we can release the first "local saving" version of plugin.

vvscode commented 7 years ago

sure. Just added task list

vvscode commented 7 years ago

@luzhanov This one should be branched from 2.0.0_local_storage ?

and also - can you describe logic for current options.js, or I can replace all it's content ( related to decks ) and rewrite it in accordance with acceptance criteria?

luzhanov commented 7 years ago

@vvscode

This one should be branched from 2.0.0_local_storage ?

Yes

can you describe logic for current options.js, or I can replace all it's content ( related to decks ) and rewrite it in accordance with acceptance criteria?

I just thinking about "Hide decks" functionality - it's useless right now, but it can be reused later, when/if we will restore connectivity with Anki. I'd rather vote for commenting it on the options page, but not removing from the code. What do you think?

About "Keyboard shortcuts" - i think it should stay as is.

vvscode commented 7 years ago

https://github.com/luzhanov/anki-adder-plus/pull/14 work in progress

vvscode commented 7 years ago

@luzhanov there are two functions optionsLocalDecks / optionsListDecks . Both fill list of decks block. But second one remove result of first one -- what for do we need two functions? I support that second one should handle remove decks from ankiweb ( is it correct? ). Is it still actual?

vvscode commented 7 years ago

And also as far as I see - please add acceptance criteria for popup/form -- cause decks used and there too.

luzhanov commented 7 years ago

there are two functions optionsLocalDecks / optionsListDecks

My fault. optionsLocalDecks was written by me as a simple example, optionsListDecks was used before - i suppose we can remove it.

acceptance criteria for popup/form -- cause decks used and there too.

I'm expecting that we don't need any changes there - if decks will be stored in the same way as before than the popup form will handle them correctly

luzhanov commented 7 years ago

I added acceptance criteria for popup - now I understand that you need to make some changes there too

vvscode commented 7 years ago

I found https://chrome.google.com/webstore/detail/anki-adder-plus/ahdmkklclpffcjgfllibcojofffgdagd?hl=en -- The question is -- how user can create nested decks? ( or it's just a form of presentation based on names via :: ) ?

luzhanov commented 7 years ago

how user can create nested decks? ( or it's just a form of presentation based on names via :: ) ?

Yes, it's just a presentation of :: name notation