-
Notifications
You must be signed in to change notification settings - Fork 6
Chore/file manager and esigner bug fixes #729
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bb7dc26
fix(file-manager-api): prevent file deletion when file has signature …
coodos b599cbc
fix(file-manager): show clear message when file cannot be deleted (us…
coodos f903b96
fix(esigner-api): sync file name and displayName from webhook so rena…
coodos 9cb1daa
fix(file-manager): persist folder and view in URL so refresh keeps cu…
coodos 5be1aa7
fix(file-manager-api): preserve file folder when webhook payload has …
coodos 23be158
fix(esigner-api,esigner): show only explicit signing containers in eS…
coodos 39a0b13
fix(file-manager,esigner): display user-friendly file type labels (DO…
coodos ded4d61
fix: rename and delete sync
coodos 90484b3
fix(file-manager-api): resolve one-request delay in update sync
coodos 5e236de
fix(dreamsync-api): resolve one-request delay in wishlist sync
coodos aeae3c8
fix: prevent users from calling there files by the soft delete term
coodos c6bac25
fix: add id to afterUpdate
coodos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| /** | ||
| * Returns a short, user-friendly label for a MIME type (e.g. DOCX, XLSX, PDF) | ||
| * instead of long strings like application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | ||
| */ | ||
| export function getMimeTypeDisplayLabel(mimeType: string): string { | ||
| if (!mimeType || typeof mimeType !== "string") return mimeType ?? ""; | ||
| const m = mimeType.toLowerCase(); | ||
| // Office / common document types | ||
| if (m.includes("spreadsheetml.sheet") || m.includes("ms-excel")) return "XLSX"; | ||
| if (m.includes("wordprocessingml.document") || m.includes("msword")) return "DOCX"; | ||
| if (m.includes("presentationml") || m.includes("ms-powerpoint")) return "PPTX"; | ||
| if (m === "application/pdf") return "PDF"; | ||
| // Generic fallback: last meaningful part | ||
| const parts = m.split(/[/+]/); | ||
| const last = parts[parts.length - 1]; | ||
| if (last && last !== "application" && last.length <= 20) return last.toUpperCase(); | ||
| return mimeType; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.