Repository navigation
[dtq-dev-93] Warn when the share link e-mail was not sent - #1761
Open
milanmajchrak wants to merge 1 commit into
Open
milanmajchrak wants to merge 1 commit into
milanmajchrak wants to merge 1 commit into
Conversation
The share response now says whether the mail went out. On false the page shows a warning, not success, and the share page does not promise an e-mail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
References
No dtq-dev source. Pairs with the BE branch
93/be-error-responses, which addsemailSentto the share link response.Description
When the share link e-mail cannot be sent, the share page now shows a warning instead of "sent successfully".
Instructions for Reviewers
List of changes in this PR:
WorkspaceitemActionsComponent.shareSubmission()shows a warning when the response hasemailSent: false. The share page still opens with the link, so the user can copy it.emailSentin the URL. Onfalseit says the e-mail could not be sent, instead of "You will also receive an email with this link".submission.workflow.share-submission.email.not-sentandshare.submission.page.share-link.message.end.not-sentin en and cs.workspaceitem-actions.component.spec.tsandshare-submission-page.component.spec.ts. The warning spec and the share page spec fail on the old code.How to test:
93/be-error-responseswithout a working SMTP server.npm run test -- --include=src/app/shared/mydspace-actions/workspaceitem/workspaceitem-actions.component.spec.ts --include=src/app/share-submission/share-submission-page/share-submission-page.component.spec.tsCodex review (gpt-6.2-sol, high), 2 rounds: 1 finding fixed (the share page still promised an e-mail that was not sent). The last round found nothing.
Checklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.🤖 Generated with Claude Code