Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Added multiselect delete in manageNotesType

Open jainv4156 opened this issue 1 year ago • 11 comments

Added Multiselect delete in manageNoteType

Purpose / Description

Describe the problem or feature and motivation

Fixes

  • Fixes #15885

Checklist

Please, go through these checks before submitting the PR.

  • [x] You have a descriptive commit message with a short title (first line, max 50 chars).
  • [x] You have commented your code, particularly in hard-to-understand areas
  • [x] You have performed a self-review of your own code
  • [x] UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • [ ] UI Changes: You have tested your change using the Google Accessibility Scanner

Screencast from 2024-09-19 12-33-39.webm

After Changes

  • disabled edit card , rename ,delete
  • pressing back button will disable multiSelect mode rather then nevigating up

Screencast from 2024-09-22 23-08-54.webm

jainv4156 avatar Sep 19 '24 07:09 jainv4156

I think the current delete option shouldn't be there. It's weird that we have the same functionality twice. Also, it makes me anxious when the delete option (a high-risk option) is very easy to reach.

Perhaps, long-press then delete can become the default, maintainers?

brishtibheja avatar Sep 19 '24 07:09 brishtibheja

you got a point. We can disable the delete option while in multiSelect mode or we can completely remove the default delete button

and there is one more problem. When we long press and multiselct mode enables, the other functionalities like add ,rename ,edit are still accessible. so should we disable them too ?

jainv4156 avatar Sep 19 '24 08:09 jainv4156

I'd say yes, remove all but you may want to wait for the maintainers' opinions.

brishtibheja avatar Sep 19 '24 13:09 brishtibheja

so should we disable them too ?

Yes, we should disable at least rename, edit, delete

When the user is in multiselect mode and presses the back button, instead of navigating back to the previous screen (DeckPicker screen), the multiselect mode should be exited. The back button press should act as a trigger to clear the current selection and exit the multiselect state, keeping the user on the same screen

sanjaysargam avatar Sep 22 '24 09:09 sanjaysargam

Another issue: WhatsApp Image 2024-09-22 at 2 57 08 PM The checkbox is not being displayed for all note types

sanjaysargam avatar Sep 22 '24 09:09 sanjaysargam

Another issue: WhatsApp Image 2024-09-22 at 2 57 08 PM The checkbox is not being displayed for all note types

this is due to adding the new selected note type while in multiselect mode . so should i disable it too or fix this issue

jainv4156 avatar Sep 22 '24 10:09 jainv4156

this is due to adding the new selected note type

That's not the case. To reproduce, have more than 5-10 note types, enable multiselect mode and scroll down

should i disable it too or fix this issue

should fix

sanjaysargam avatar Sep 22 '24 10:09 sanjaysargam

this is due to adding the new selected note type

That's not the case. To reproduce, have more than 5-10 note types, enable multiselect mode and scroll down

should i disable it too or fix this issue

should fix

ok , I'll check and correct it

jainv4156 avatar Sep 22 '24 11:09 jainv4156

close button should be at the right most corner. WhatsApp Image 2024-09-27 at 12 39 52 AM

sanjaysargam avatar Sep 26 '24 19:09 sanjaysargam

   > KtLint found code style violations. Please see the following reports:
     - /home/runner/work/Anki-Android/Anki-Android/AnkiDroid/build/reports/ktlint/ktlintMainSourceSetCheck/ktlintMainSourceSetCheck.txt

In addition, please rebase/squash and force push, rather than adding merge commits to the history

david-allison avatar Oct 10 '24 06:10 david-allison

i'll fix that

jainv4156 avatar Oct 10 '24 07:10 jainv4156

Hello 👋, this PR has had no activity for more than 2 weeks and needs a reply from the author. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically

github-actions[bot] avatar Jan 24 '25 02:01 github-actions[bot]

@jainv4156 tests fails

sanjaysargam avatar Jan 24 '25 17:01 sanjaysargam

It's stale & that comment reset the stale bot for a few weeks

Reopen if it can be moved to a fixable state

david-allison avatar Jan 24 '25 22:01 david-allison