feat: rename project from DocuNova to DocuElevate, update related documentation and templates

This commit is contained in:
Christian Krakau-Louis
2025-04-03 23:25:51 +02:00
parent 7dca46b94b
commit 8f311d730a
35 changed files with 112 additions and 114 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ SESSION_SECRET = config(
default="YOUR_DEFAULT_SESSION_SECRET_MUST_BE_32_CHARS_OR_MORE"
)
app = FastAPI(title="DocuNova")
app = FastAPI(title="DocuElevate")
# 1) Session Middleware (for request.session to work)
app.add_middleware(SessionMiddleware, secret_key=SESSION_SECRET)
+3 -3
View File
@@ -83,7 +83,7 @@ def extract_metadata_from_file(file_path):
return metadata
def attach_logo(msg):
"""Attach the DocuNova logo to the email with proper Content-ID."""
"""Attach the DocuElevate logo to the email with proper Content-ID."""
try:
# Try to find logo in workdir first (for customization)
custom_logo_path = os.path.join(settings.workdir, "templates", "email", "logo.png")
@@ -187,7 +187,7 @@ def upload_to_email(file_path: str, recipients=None, subject=None, message=None,
return {"status": "Skipped", "reason": error}
# Use provided subject or create default
subject = subject or f"DocuNova Document: {filename}"
subject = subject or f"DocuElevate Document: {filename}"
# Extract document metadata if available
metadata = {}
@@ -215,7 +215,7 @@ def upload_to_email(file_path: str, recipients=None, subject=None, message=None,
context = {
"filename": filename,
"message": message or f"Attached is the document: {filename}",
"app_name": "DocuNova",
"app_name": "DocuElevate",
"app_url": f"https://{settings.external_hostname}" if settings.external_hostname else None,
"custom_message": message,
"metadata": metadata,
+1 -1
View File
@@ -151,7 +151,7 @@ def upload_to_google_drive(file_path: str, include_metadata=True):
# Add minimal appProperties
file_metadata['appProperties'] = {
'docunova': 'true'
'docuelevate': 'true'
}
# Add metadata to file description for better visibility in Google Drive UI
+6 -6
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document from DocuNova</title>
<title>Document from DocuElevate</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
@@ -95,7 +95,7 @@
<body>
<div class="header">
{% if has_logo %}
<img src="cid:logo" alt="DocuNova Logo" class="logo">
<img src="cid:logo" alt="DocuElevate Logo" class="logo">
{% endif %}
<h1>Document Delivery</h1>
</div>
@@ -105,7 +105,7 @@
{% if custom_message %}
{{ custom_message }}
{% else %}
A document has been shared with you from DocuNova.
A document has been shared with you from DocuElevate.
{% endif %}
</p>
@@ -148,14 +148,14 @@
{% if app_url %}
<p>
<a href="{{ app_url }}" class="button">Visit DocuNova</a>
<a href="{{ app_url }}" class="button">Visit DocuElevate</a>
</p>
{% endif %}
</div>
<div class="footer">
<p>This is an automated message from DocuNova Document Processing System.</p>
<p>© {{ now().year }} DocuNova</p>
<p>This is an automated message from DocuElevate Document Processing System.</p>
<p>© {{ now().year }} DocuElevate</p>
</div>
</body>
</html>