Skip to content

armgit / posta

Public Imported from GitHub
0

Self-hosted email delivery platform that enables applications to send emails via HTTP APIs while handling SMTP delivery, templates, storage, security, and analytics. Fully self-hostable alternative to services like SendGrid or Mailgun.

docs: update screenshots

Jonas Kaninda24aa108bdb5a
diff --git a/README.md b/README.md
index 4ed32a4..1ef0276 100644
--- a/README.md
+++ b/README.md
@@ -348,7 +348,7 @@ Running locally with the default port, that is [http://localhost:9000/docs](http
# Dashboard
-Posta includes a web dashboard for managing templates, SMTP servers, domains, contacts, API keys, and analytics.
+Posta includes a web dashboard for managing templates, SMTP servers, domains, contacts, forms, API keys, and analytics.
<p align="center">
<img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/dashboard.png" alt="Posta Dashboard" width="900"/>
@@ -360,6 +360,30 @@ Posta includes a web dashboard for managing templates, SMTP servers, domains, co
<img src="https://raw.githubusercontent.com//goposta/posta/main/docs/static/img/screenshots/analytics.png" alt="Email Analytics" width="900"/>
</p>
+### Form Messages
+
+<p align="center">
+ <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/messages.png" alt="Form messages inbox" width="900"/>
+</p>
+
+### Form Widget
+
+<p align="center">
+ <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/form-widget.png" alt="A contact form widget embedded on a website" width="900"/>
+</p>
+
+### Shared Form Link
+
+<p align="center">
+ <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/form-share.png" alt="A survey opened from its share link" width="900"/>
+</p>
+
+### Form Responses
+
+<p align="center">
+ <img src="https://raw.githubusercontent.com/goposta/posta/main/docs/static/img/screenshots/form-responses.png" alt="Form responses summary" width="900"/>
+</p>
+
### Template Detail
<p align="center">
diff --git a/docs/docs/webhooks/audit-log.md b/docs/docs/webhooks/audit-log.md
index cf88bee..2bf65d1 100644
--- a/docs/docs/webhooks/audit-log.md
+++ b/docs/docs/webhooks/audit-log.md
@@ -13,7 +13,7 @@ Posta maintains two separate audit trails depending on what you need to audit.
The workspace audit log records operational activity scoped to a workspace: API key creation/revocation, template changes, SMTP server changes, webhook changes, and similar configuration actions. Requires the `admin` or `owner` workspace role.
:::info Posta Enterprise
-Posta Community shows the last **7 days** of the workspace audit log; an older event
+Posta Community shows the last **24 hours** of the workspace audit log; an older event
answers `402`. The full history, and workspace audit events in the admin **Events** list,
need a [Posta Enterprise](https://goposta.dev/enterprise) license. Posta records the events
in every edition, so installing a license shows the history from before it. The personal
diff --git a/docs/static/img/screenshots/admin-platform-metrics-dark.png b/docs/static/img/screenshots/admin-platform-metrics-dark.png
index 56e14be..1b60da6 100644
Binary files a/docs/static/img/screenshots/admin-platform-metrics-dark.png and b/docs/static/img/screenshots/admin-platform-metrics-dark.png differ
diff --git a/docs/static/img/screenshots/admin-platform-metrics.png b/docs/static/img/screenshots/admin-platform-metrics.png
index 75438b5..5d6c702 100644
Binary files a/docs/static/img/screenshots/admin-platform-metrics.png and b/docs/static/img/screenshots/admin-platform-metrics.png differ
diff --git a/docs/static/img/screenshots/analytics.png b/docs/static/img/screenshots/analytics.png
index 9a2f35f..914dcd8 100644
Binary files a/docs/static/img/screenshots/analytics.png and b/docs/static/img/screenshots/analytics.png differ
diff --git a/docs/static/img/screenshots/dashboard.png b/docs/static/img/screenshots/dashboard.png
index 757c12f..d989e25 100644
Binary files a/docs/static/img/screenshots/dashboard.png and b/docs/static/img/screenshots/dashboard.png differ
diff --git a/docs/static/img/screenshots/form-responses.png b/docs/static/img/screenshots/form-responses.png
new file mode 100644
index 0000000..db8c313
Binary files /dev/null and b/docs/static/img/screenshots/form-responses.png differ
diff --git a/docs/static/img/screenshots/form-share.png b/docs/static/img/screenshots/form-share.png
new file mode 100644
index 0000000..8ad0aff
Binary files /dev/null and b/docs/static/img/screenshots/form-share.png differ
diff --git a/docs/static/img/screenshots/form-widget.png b/docs/static/img/screenshots/form-widget.png
new file mode 100644
index 0000000..6e012dd
Binary files /dev/null and b/docs/static/img/screenshots/form-widget.png differ
diff --git a/docs/static/img/screenshots/messages.png b/docs/static/img/screenshots/messages.png
new file mode 100644
index 0000000..12742a7
Binary files /dev/null and b/docs/static/img/screenshots/messages.png differ
diff --git a/docs/static/img/screenshots/template-detail.png b/docs/static/img/screenshots/template-detail.png
index 46454a5..7d6c311 100644
Binary files a/docs/static/img/screenshots/template-detail.png and b/docs/static/img/screenshots/template-detail.png differ
diff --git a/docs/static/img/screenshots/template-editor.png b/docs/static/img/screenshots/template-editor.png
index 0b6fead..43f2e7a 100644
Binary files a/docs/static/img/screenshots/template-editor.png and b/docs/static/img/screenshots/template-editor.png differ
diff --git a/internal/handlers/event_handler.go b/internal/handlers/event_handler.go
index f00083b..a3b6c14 100644
--- a/internal/handlers/event_handler.go
+++ b/internal/handlers/event_handler.go
@@ -35,10 +35,7 @@ type EventHandler struct {
edition enterprise.EE
}
-// CommunityAuditDays is how far back Posta Community shows a workspace audit
-// log. Its full history, and workspace audit events in the platform-wide
-// event list, need a Posta Enterprise license. Every edition records them.
-const CommunityAuditDays = 7
+const CommunityAuditWindow = 24 * time.Hour
// SetEdition decides how much of the workspace audit trail is shown.
func (h *EventHandler) SetEdition(ee enterprise.EE) { h.edition = ee }
@@ -49,7 +46,7 @@ func (h *EventHandler) licensed() bool {
// communityAuditSince is the oldest audit event Posta Community shows.
func communityAuditSince() time.Time {
- return time.Now().AddDate(0, 0, -CommunityAuditDays)
+ return time.Now().Add(-CommunityAuditWindow)
}
// isWorkspaceAudit reports whether e is part of a workspace audit trail.
diff --git a/internal/routes/workspace_routes.go b/internal/routes/workspace_routes.go
index 2eea110..7584b16 100644
--- a/internal/routes/workspace_routes.go
+++ b/internal/routes/workspace_routes.go
@@ -244,7 +244,7 @@ func (r *Router) workspaceRoutes() []okapi.RouteDefinition {
Group: wsGroup,
Middlewares: []okapi.Middleware{middlewares.RequireWorkspaceRole(models.WorkspaceRoleAdmin)},
Summary: "List workspace audit log",
- Description: "Returns the audit trail for the current workspace (admin/owner only). Posta Community returns the last 7 days; the full history needs Posta Enterprise.",
+ Description: "Returns the audit trail for the current workspace (admin/owner only). Posta Community returns the last 24 hours; the full history needs Posta Enterprise.",
Request: &handlers.ListEventsRequest{},
Response: &dto.PageableResponse[models.Event]{},
Options: []okapi.RouteOption{workspaceHeaderRequired},
@@ -256,7 +256,7 @@ func (r *Router) workspaceRoutes() []okapi.RouteDefinition {
Group: wsGroup,
Middlewares: []okapi.Middleware{middlewares.RequireWorkspaceRole(models.WorkspaceRoleAdmin)},
Summary: "Get workspace audit event",
- Description: "Returns a single audit event for the current workspace (admin/owner only). In Posta Community, events older than 7 days answer 402.",
+ Description: "Returns a single audit event for the current workspace (admin/owner only). In Posta Community, events older than 24 hours answer 402.",
Request: &handlers.AuditEventRequest{},
Response: &dto.Response[models.Event]{},
Options: []okapi.RouteOption{workspaceHeaderRequired},
diff --git a/web/src/views/audit/AuditLogDetail.vue b/web/src/views/audit/AuditLogDetail.vue
index b812620..6824e24 100644
--- a/web/src/views/audit/AuditLogDetail.vue
+++ b/web/src/views/audit/AuditLogDetail.vue
@@ -61,7 +61,7 @@ const prettyMetadata = computed(() => {
<EnterpriseLock
v-else-if="beyondWindow"
feature="Audit Log history"
- description="Posta Community shows the last 7 days of workspace activity. This event is older; the full history comes with Posta Enterprise."
+ description="Posta Community shows the last 24 hours of workspace activity. This event is older; the full history comes with Posta Enterprise."
/>
<div v-else-if="!event" class="card">