-
Notifications
You must be signed in to change notification settings - Fork 96
e-mail attachment flow #1079
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
Open
bikubi
wants to merge
19
commits into
main
Choose a base branch
from
bikubi/email-att-flow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
e-mail attachment flow #1079
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
92f3b77
email attachment flow, implementation
bikubi 3741704
email attachment flow, add quick peek
bikubi b67a7c8
email attachment flow i18n + fixes
bikubi 6808a92
email attachment flow DE translations
bikubi 7fe4049
do not update FoiMessage when post-upload-submitting an email response
bikubi 90b31ba
add seperate route for email responses
bikubi 2ac4b86
update permission check for email responses, assert their properties
bikubi a44e9ef
update mail notification text to link to e-mail response flow
bikubi 5220835
rename+refactor postupload generically, better match email and postal
bikubi 9e8c5fc
fix pdf redaction error on incomplete drag operations
bikubi 55614b3
cleanup
bikubi 90981d1
use alpha-message layout, implement message badges, redact+problem stubs
bikubi 0b87da2
hint when email attachments might be still converting
bikubi 26a8d8b
use form-based message_redact for edit (email) message flow
bikubi 1cbc941
use form-based report_problem for edit (email) message flow
bikubi b33d736
fix (alpha-)message layout in email flow
bikubi 61749d8
cleanup + i18n + l10n DE fixes
bikubi bbdcb66
try fix test
bikubi 785f412
refactor step-intro-email into subcomponent
bikubi 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
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
66 changes: 66 additions & 0 deletions
66
froide/foirequest/templates/foirequest/edit_message_flow_email.html
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,66 @@ | ||
| {% extends "fullscreen_app.html" %} | ||
| {% load i18n %} | ||
| {% load static %} | ||
| {% load block_helper %} | ||
| {% load frontendbuild %} | ||
| {% load form_helper %} | ||
| {% load content_helper %} | ||
| {% load foirequest_tags %} | ||
| {% load problemreport_tags %} | ||
| {% block title %} | ||
| {% blocktrans with title=object.title %}Edit e-mail response for “{{ title }}”{% endblocktrans %} | ||
| {% endblock title %} | ||
| {% block navbar %} | ||
| {% include "header_reduced.html" %} | ||
| {% endblock navbar %} | ||
| {% block body %} | ||
| <div class="bg-body-tertiary editmessageflow-breadcrumbs"> | ||
| {% translate "Edit e-mail response" as breadcrumb_label %} | ||
| {% include "foirequest/header/breadcrumb.html" with last_item=breadcrumb_label %} | ||
| </div> | ||
| {# the form never submits, but is useful for checkValidity #} | ||
| <form name="editmessageflow" class="d-flex flex-col flex-grow-1"> | ||
| {% csrf_token %} | ||
| {# mw-100 crucial for pdf-redaction's dynamic maxWidth calculations #} | ||
| <edit-message-flow class="d-flex flex-column flex-grow-1 mw-100" :config="{{ config_json }}" :schemas="{{ schemas_json }}" :foirequest="{{ foirequest_json }}" :date_max="{{ date_max }}" :date_min="{{ date_min }}" :user_is_staff="{{ user_is_staff }}" :message="{{ message_json }}" :message_timestamp_relative="{{ message.timestamp|relativetime }}" :message_timestamp_local="{{ message.timestamp }}" :currency="{{ froide.currency }}"> | ||
| <template data-slot="message_sender"> | ||
| {% include "foirequest/body/message/sender.html" %} | ||
| </template> | ||
| <template data-slot="redaction_explanation"> | ||
| {% include "foirequest/snippets/redaction_explanation.html" %} | ||
| </template> | ||
| <template data-slot="message_content_hidden"> | ||
| {% blocktrans %}This message may contain information that you may wish to not publish until after the whole request finished. The following message is therefore currently only visible to you.{% endblocktrans %} | ||
| </template> | ||
| <template data-slot="redactbutton"> | ||
| {% if object|can_write_foirequest:request or object|can_moderate_pii_foirequest:request %} | ||
| {% render_message_redact_button message is_edit_message_flow_email=True partial='button' %} | ||
| {% endif %} | ||
| </template> | ||
| <template data-slot="problembutton"> | ||
| {% render_problem_button message is_edit_message_flow_email=True partial='button' %} | ||
| </template> | ||
| {# avoid whitespace, since this will be pre-wrap. spaceless didn't work... #} | ||
| <template data-slot="message_subject_redacted">{% redact_subject message request %}</template> | ||
| <template data-slot="message_content_redacted">{% redact_message message request %}</template> | ||
| <template data-slot="email_request_link"> | ||
| <p> | ||
| {% trans "Read the full message thread on the request page:" %} | ||
| <a href="{{ message.get_absolute_url }}">{{ object.title }}</a> | ||
| </p> | ||
| </template> | ||
| </edit-message-flow> | ||
| </form> | ||
| {% if object|can_write_foirequest:request or object|can_moderate_pii_foirequest:request %} | ||
| {% render_message_redact_button message is_edit_message_flow_email=True partial='modal' %} | ||
| {% endif %} | ||
| {% render_problem_button message is_edit_message_flow_email=True partial='modal' %} | ||
| {% endblock body %} | ||
| {% block scripts %} | ||
| {{ block.super }} | ||
| {% addfrontendbuild "request.js" %} | ||
| {% addfrontendbuild "publicbody.js" %} | ||
| {% addfrontendbuild "editmessageflow.js" %} | ||
| {% addfrontendbuild "messageredaction.js" %} | ||
| {% addfrontendbuild "fileuploader.js" %} | ||
| {% endblock scripts %} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@krmax44 this fixed this failed run