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

User Friendly Merge File Selection #1204

Merged
merged 5 commits into from
May 21, 2024

Conversation

t71rs
Copy link
Contributor

@t71rs t71rs commented May 14, 2024

User Friendly Merge File Selction

If you had already added files to Merge them, but forgot one or more files and you went ahead and pressed the "Select Files" button, all previously selected Files were deleted.
I fixed that and made it possible to add Files "File by File". Additionally if someone should add the same File twice, a duplicate warning is now displayed, which is removed, if the duplicates are removed. Merging duplicates is possibel though if someone should want to do that. To work with duplicates I added a unique id for each added FIle in the merging process. This makes it possible to differ between files that have the same Name.

Closes #1174

Checklist:

  • I have read the Contribution Guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

Contributor License Agreement

By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under the MPL 2.0 (Mozilla Public License Version 2.0) license.

(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license)

@t71rs t71rs requested a review from Frooodle as a code owner May 14, 2024 07:24
@t71rs t71rs changed the title User Friendly Merge FIle Selection User Friendly Merge File Selection May 14, 2024
@Frooodle
Copy link
Member

UI has been updated can you confirm this works with latest updates

@t71rs
Copy link
Contributor Author

t71rs commented May 21, 2024

Yes I have just tested it locally with the new UI (looks very nice btw :) ) and it still works!

if (duplicateFiles.length > 1) {
const warning = document.createElement("span");
warning.className = "duplicate-warning";
warning.textContent = "(Duplicate)";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be translatable and dynamic

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will add as todo before next release

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow did not think about that. I can try and do that as well.

@Frooodle Frooodle merged commit 4bad105 into Stirling-Tools:main May 21, 2024
3 checks passed
@t71rs t71rs deleted the Deletion-of-Files-using-Merge branch May 22, 2024 07:13
szinn pushed a commit to szinn/k8s-homelab that referenced this pull request May 23, 2024
…0.24.5 ) (#3716)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[ghcr.io/stirling-tools/s-pdf](https://togithub.com/Stirling-Tools/Stirling-PDF)
| patch | `0.24.4` -> `0.24.5` |

---

### Release Notes

<details>
<summary>Stirling-Tools/Stirling-PDF
(ghcr.io/stirling-tools/s-pdf)</summary>

###
[`v0.24.5`](https://togithub.com/Stirling-Tools/Stirling-PDF/releases/tag/v0.24.5):
0.24.5 reverse proxy fix and czech added

[Compare
Source](https://togithub.com/Stirling-Tools/Stirling-PDF/compare/v0.24.4...v0.24.5)

Czech language added
Reverse proxy fix for non security mode
User Friendly Merge File Selection (needs a translation but reverse
proxy release is more urgent)

#### What's Changed

- Add missing Turkish translation by
[@&#8203;limonkufu](https://togithub.com/limonkufu) in
[Stirling-Tools/Stirling-PDF#1255
- Czech translations by [@&#8203;Houba28](https://togithub.com/Houba28)
in
[Stirling-Tools/Stirling-PDF#1263
- Amended typo: trailing space by
[@&#8203;zallaevan](https://togithub.com/zallaevan) in
[Stirling-Tools/Stirling-PDF#1256
- User Friendly Merge File Selection by
[@&#8203;t71rs](https://togithub.com/t71rs) in
[Stirling-Tools/Stirling-PDF#1204
- Updated ReadMe Screenshot by
[@&#8203;t71rs](https://togithub.com/t71rs) in
[Stirling-Tools/Stirling-PDF#1272
- Add in oauth scope environment variable to docker-compose example by
[@&#8203;pcanham](https://togithub.com/pcanham) in
[Stirling-Tools/Stirling-PDF#1265
- cleanup html for reverse proxy by
[@&#8203;Frooodle](https://togithub.com/Frooodle) in
[Stirling-Tools/Stirling-PDF#1274
- 💾 Update Version by
[@&#8203;github-actions](https://togithub.com/github-actions) in
[Stirling-Tools/Stirling-PDF#1275

#### New Contributors

- [@&#8203;limonkufu](https://togithub.com/limonkufu) made their first
contribution in
[Stirling-Tools/Stirling-PDF#1255
- [@&#8203;Houba28](https://togithub.com/Houba28) made their first
contribution in
[Stirling-Tools/Stirling-PDF#1263
- [@&#8203;zallaevan](https://togithub.com/zallaevan) made their first
contribution in
[Stirling-Tools/Stirling-PDF#1256
- [@&#8203;pcanham](https://togithub.com/pcanham) made their first
contribution in
[Stirling-Tools/Stirling-PDF#1265

**Full Changelog**:
Stirling-Tools/Stirling-PDF@v0.24.4...v0.24.5

</details>

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzQuMyIsInVwZGF0ZWRJblZlciI6IjM3LjM3NC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
@Frooodle
Copy link
Member

This has broken logic for ALL other form inputs with files, now each forms inputs doesnt wipe the previous causing very bad usage for others

@Frooodle
Copy link
Member

reverting until it can be fixed! :)

@t71rs
Copy link
Contributor Author

t71rs commented May 24, 2024

Damn I'm sorry, I will look into it and think of a solution that wont affect anything else since I quite liked this change.

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

Successfully merging this pull request may close these issues.

Merge File Selection
3 participants