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

Feature/2198/multitool multi select move pages #2294

Conversation

reecebrowne
Copy link
Contributor

Description

Drag and drop multiple pages at once using checkboxes

image

Closes #(2198)

Checklist

  • [ X] I have read the Contribution Guidelines
  • [ X] I have performed a self-review of my own code
  • [ X] I have attached images of the change if it is UI based
  • [ X] I have commented my code, particularly in hard-to-understand areas
  • [ X] If my code has heavily changed functionality I have updated relevant docs on Stirling-PDFs doc repo
  • [ X] My changes generate no new warnings
  • [ X] I have read the section Add New Translation Tags (for new translation tags only)

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Nov 21, 2024
@github-actions github-actions bot added Java Pull requests that update Java code Front End Issues or pull requests related to front-end development Back End Issues related to back-end development Translation API API-related issues or pull requests labels Nov 21, 2024
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Nov 21, 2024
Copy link
Contributor

github-actions bot commented Nov 21, 2024

🚀 Translation Verification Summary

📋 Checking with the file messages_en_GB.properties from the pr-branch - Checking the pr-branch

🗂️ Checking File: messages_ar_AR.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_bg_BG.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_ca_CA.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_cs_CZ.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_da_DK.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_de_DE.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_el_GR.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_en_US.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_es_ES.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_eu_ES.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_fr_FR.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_ga_IE.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_hi_IN.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_hr_HR.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_hu_HU.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_id_ID.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_it_IT.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_ja_JP.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_ko_KR.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_nl_NL.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_no_NB.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_pl_PL.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_pt_BR.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_pt_PT.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_ro_RO.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_ru_RU.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_sk_SK.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_sr_LATN_RS.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_sv_SE.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_th_TH.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_tr_TR.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_uk_UA.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_vi_VN.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_zh_CN.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

🗂️ Checking File: messages_zh_TW.properties...

  • Test 1 Status: ✅ Passed
  • Test 2 Status: ✅ Passed

✅ Overall Check Status: Success

Thanks @reecebrowne for your help in keeping the translations up to date.

@Frooodle
Copy link
Member

/deploypr

Copy link
Contributor

🚀 PR Test Deployment

Your PR has been deployed for testing!

🔗 Test URL: http://185.252.234.121:2294

This deployment will be automatically cleaned up when the PR is closed.

@Frooodle
Copy link
Member

Frooodle commented Nov 21, 2024

one weird interaction
select page(s) with multi select, drag them, then clears the select page menu (I understand why you want it to clear)
since its cleared its means you have basically disabled all top buttons even if the user wants to do a rotate all

I think with the usecase of user clicking when selected pages = 0 we have it act as though its not in select mode at all?

@Frooodle
Copy link
Member

Also do you think its valuable to implement a multi select -direction shift- as well?
Honest question for opinion just typing it before I forget

if you have 2,5,9 selected and you go on one of them and hit the move right one space key should it shift them all one space?
Right now this multiselect it good for grouping pages but not mass shifting them etc

@reecebrowne
Copy link
Contributor Author

one weird interaction
select page(s) with multi select, drag them, then clears the select page menu (I understand why you want it to clear)
since its cleared its means you have basically disabled all top buttons even if the user wants to do a rotate all

I think with the usecase of user clicking when selected pages = 0 we have it act as though its not in select mode at all?

Agreed that maybe it is a little weird, I think dropping right out of select mode is also a little wonky though. Perhaps retaining now moved pages as checked pages? I wasn't sure either way

Also do you think its valuable to implement a multi select -direction shift- as well? Honest question for opinion just typing it before I forget

if you have 2,5,9 selected and you go on one of them and hit the move right one space key should it shift them all one space? Right now this multiselect it good for grouping pages but not mass shifting them etc

Yes 100% agree that other methods would be good and possibly outright better than the drag and drop, I have some ideas for what to do here but decided to make it a 2nd phase so that this initial feature can go out for now.

@Frooodle
Copy link
Member

Frooodle commented Nov 21, 2024

one weird interaction
select page(s) with multi select, drag them, then clears the select page menu (I understand why you want it to clear)
since its cleared its means you have basically disabled all top buttons even if the user wants to do a rotate all
I think with the usecase of user clicking when selected pages = 0 we have it act as though its not in select mode at all?

Agreed that maybe it is a little weird, I think dropping right out of select mode is also a little wonky though. Perhaps retaining now moved pages as checked pages? I wasn't sure either way

Also do you think its valuable to implement a multi select -direction shift- as well? Honest question for opinion just typing it before I forget
if you have 2,5,9 selected and you go on one of them and hit the move right one space key should it shift them all one space? Right now this multiselect it good for grouping pages but not mass shifting them etc

Yes 100% agree that other methods would be good and possibly outright better than the drag and drop, I have some ideas for what to do here but decided to make it a 2nd phase so that this initial feature can go out for now.

It would break you away if it removed the 'mode' UI but a user shouldn't click the rotate button and it do nothing
if there is no selected pages for it to rotate since its empty you should assume the user wants to rotate all pages (but can keep selection UI open I guess?)

@reecebrowne
Copy link
Contributor Author

one weird interaction
select page(s) with multi select, drag them, then clears the select page menu (I understand why you want it to clear)
since its cleared its means you have basically disabled all top buttons even if the user wants to do a rotate all
I think with the usecase of user clicking when selected pages = 0 we have it act as though its not in select mode at all?

Agreed that maybe it is a little weird, I think dropping right out of select mode is also a little wonky though. Perhaps retaining now moved pages as checked pages? I wasn't sure either way

Also do you think its valuable to implement a multi select -direction shift- as well? Honest question for opinion just typing it before I forget
if you have 2,5,9 selected and you go on one of them and hit the move right one space key should it shift them all one space? Right now this multiselect it good for grouping pages but not mass shifting them etc

Yes 100% agree that other methods would be good and possibly outright better than the drag and drop, I have some ideas for what to do here but decided to make it a 2nd phase so that this initial feature can go out for now.

It would break you away if it removed the 'mode' UI but a user shouldn't click the rotate button and it do nothing if there is no selected pages for it to rotate since its empty you should assume the user wants to rotate all pages (but can keep selection UI open I guess?)

Would definitely have to turn off the mode and have them have to re-enter it, Download selected needs to disappear and page break needs to be clear it's going to apply to every page, especially as right now there is no undo for that beyond manually deleting pages.

@Frooodle Frooodle merged commit 0e60215 into Stirling-Tools:main Nov 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API-related issues or pull requests Back End Issues related to back-end development enhancement New feature or request Front End Issues or pull requests related to front-end development Java Pull requests that update Java code size:M This PR changes 30-99 lines, ignoring generated files. Translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants