@cosmicdrift/kumiko-samples 0.406.0 → 0.410.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/bundled-features/package.json +31 -4
- package/packages/bundled-features/src/account-security/feature.ts +9 -1
- package/packages/bundled-features/src/admin-shell/changes.json +6 -0
- package/packages/bundled-features/src/admin-shell/feature.ts +4 -1
- package/packages/bundled-features/src/agent-tools/agent-manifest.ts +1 -0
- package/packages/bundled-features/src/agent-tools/changes.json +6 -0
- package/packages/bundled-features/src/agent-tools/tool-catalog.ts +1 -0
- package/packages/bundled-features/src/agent-tools/types.ts +4 -0
- package/packages/bundled-features/src/audit/event-classification.ts +1 -0
- package/packages/bundled-features/src/auth-email-password/bootstrap.ts +1 -0
- package/packages/bundled-features/src/auth-email-password/errors.ts +18 -66
- package/packages/bundled-features/src/auth-email-password/handlers/login-options.query.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/handlers/self-registration-status.query.ts +1 -1
- package/packages/bundled-features/src/auth-email-password/web/auth-client.ts +30 -64
- package/packages/bundled-features/src/auth-email-password/web/auth-redirect.ts +2 -2
- package/packages/bundled-features/src/auth-email-password/web/confirm-account-unlock-screen.tsx +20 -66
- package/packages/bundled-features/src/auth-email-password/web/index.ts +1 -0
- package/packages/bundled-features/src/auth-email-password/web/read-path-param.ts +8 -0
- package/packages/bundled-features/src/auth-email-password/web/return-path.ts +3 -2
- package/packages/bundled-features/src/auth-email-password/web/token-confirm-screen.tsx +97 -0
- package/packages/bundled-features/src/auth-email-password/web/verify-email-screen.tsx +20 -68
- package/packages/bundled-features/src/auth-foundation/boot-checks.ts +22 -15
- package/packages/bundled-features/src/auth-foundation/boot-rules.ts +33 -0
- package/packages/bundled-features/src/auth-mfa/errors.ts +12 -42
- package/packages/bundled-features/src/auth-mfa/feature-exports.ts +6 -45
- package/packages/bundled-features/src/auth-mfa/feature.ts +8 -19
- package/packages/bundled-features/src/auth-mfa/web/mfa-client.ts +19 -33
- package/packages/bundled-features/src/billing-foundation/consumer-protection/termination-notify.ts +1 -0
- package/packages/bundled-features/src/billing-foundation/web/plan-price.ts +20 -7
- package/packages/bundled-features/src/cap-counter/stock-cap-guard.ts +1 -0
- package/packages/bundled-features/src/channel-in-app/changes.json +7 -0
- package/packages/bundled-features/src/channel-in-app/feature.ts +2 -0
- package/packages/bundled-features/src/channel-in-app/handlers/read-state-by-keys.query.ts +35 -0
- package/packages/bundled-features/src/channel-in-app/in-app-channel.ts +1 -0
- package/packages/bundled-features/src/channel-in-app/tables.ts +5 -1
- package/packages/bundled-features/src/compliance-profiles/handlers/sub-processors.query.ts +4 -1
- package/packages/bundled-features/src/contact/challenge.ts +41 -0
- package/packages/bundled-features/src/contact/changes.json +33 -0
- package/packages/bundled-features/src/contact/client/contact-client-source.ts +203 -0
- package/packages/bundled-features/src/contact/client/contact-website-client.ts +29 -0
- package/packages/bundled-features/src/contact/client/index.ts +9 -0
- package/packages/bundled-features/src/contact/entity.ts +168 -0
- package/packages/bundled-features/src/contact/feature.ts +174 -0
- package/packages/bundled-features/src/contact/handlers/access.ts +17 -0
- package/packages/bundled-features/src/contact/handlers/attempts.ts +76 -0
- package/packages/bundled-features/src/contact/handlers/challenge.query.ts +44 -0
- package/packages/bundled-features/src/contact/handlers/forward-request.write.ts +98 -0
- package/packages/bundled-features/src/contact/handlers/mark-done.write.ts +40 -0
- package/packages/bundled-features/src/contact/handlers/notify-reporter-in-app.write.ts +48 -0
- package/packages/bundled-features/src/contact/handlers/open-count.query.ts +15 -0
- package/packages/bundled-features/src/contact/handlers/open-count.ts +17 -0
- package/packages/bundled-features/src/contact/handlers/replies.query.ts +29 -0
- package/packages/bundled-features/src/contact/handlers/reply.write.ts +197 -0
- package/packages/bundled-features/src/contact/handlers/report.write.ts +126 -0
- package/packages/bundled-features/src/contact/handlers/request-delivery.query.ts +143 -0
- package/packages/bundled-features/src/contact/handlers/request-detail.query.ts +50 -0
- package/packages/bundled-features/src/contact/handlers/request-list.query.ts +14 -0
- package/packages/bundled-features/src/contact/handlers/send-reply-mail.write.ts +124 -0
- package/packages/bundled-features/src/contact/handlers/send-test.write.ts +45 -0
- package/packages/bundled-features/src/contact/handlers/submit.write.ts +194 -0
- package/packages/bundled-features/src/contact/handlers/take-over-uploads.ts +47 -0
- package/packages/bundled-features/src/contact/i18n.ts +192 -0
- package/packages/bundled-features/src/contact/index.ts +29 -0
- package/packages/bundled-features/src/contact/lib.ts +176 -0
- package/packages/bundled-features/src/contact/mail.ts +401 -0
- package/packages/bundled-features/src/contact/options.ts +95 -0
- package/packages/bundled-features/src/contact/panels.ts +28 -0
- package/packages/bundled-features/src/contact/payloads.ts +106 -0
- package/packages/bundled-features/src/contact/pow.ts +22 -0
- package/packages/bundled-features/src/contact/screens.ts +507 -0
- package/packages/bundled-features/src/contact/subject.ts +13 -0
- package/packages/bundled-features/src/contact/user-agent.ts +39 -0
- package/packages/bundled-features/src/contact/user-data-hooks.ts +180 -0
- package/packages/bundled-features/src/contact/web/constants.ts +160 -0
- package/packages/bundled-features/src/contact/web/index.ts +29 -0
- package/packages/bundled-features/src/crypto-shredding/handlers/forget-subject.write.ts +5 -16
- package/packages/bundled-features/src/data-retention/changes.json +6 -0
- package/packages/bundled-features/src/data-retention/feature.ts +16 -2
- package/packages/bundled-features/src/data-retention/index.ts +5 -0
- package/packages/bundled-features/src/data-retention/run-retention-cleanup.ts +138 -41
- package/packages/bundled-features/src/data-retention/tenant-destruction-hold.ts +196 -0
- package/packages/bundled-features/src/delivery/address-opt-out.ts +1 -0
- package/packages/bundled-features/src/delivery/changes.json +7 -0
- package/packages/bundled-features/src/delivery/channel-context.ts +2 -0
- package/packages/bundled-features/src/delivery/delivery-service.ts +29 -5
- package/packages/bundled-features/src/delivery/events.ts +2 -0
- package/packages/bundled-features/src/delivery/feature.ts +3 -2
- package/packages/bundled-features/src/delivery/handlers/attempts-by-keys.query.ts +55 -0
- package/packages/bundled-features/src/delivery/handlers/log.query.ts +1 -1
- package/packages/bundled-features/src/delivery/jobs.ts +5 -0
- package/packages/bundled-features/src/delivery/tables.ts +13 -2
- package/packages/bundled-features/src/delivery/types.ts +3 -0
- package/packages/bundled-features/src/delivery/unsubscribe-page.ts +2 -0
- package/packages/bundled-features/src/delivery/web/delivery-channel-cell.tsx +1 -1
- package/packages/bundled-features/src/delivery/web/delivery-error-cell.tsx +1 -1
- package/packages/bundled-features/src/delivery/web/delivery-status-cell.tsx +1 -1
- package/packages/bundled-features/src/delivery/web/delivery-time-cell.tsx +3 -2
- package/packages/bundled-features/src/delivery/web/delivery-type-cell.tsx +1 -1
- package/packages/bundled-features/src/delivery/web/public-names.ts +1 -0
- package/packages/bundled-features/src/document-ingest-foundation/boot-checks.ts +14 -9
- package/packages/bundled-features/src/document-ingest-foundation/boot-rules.ts +22 -0
- package/packages/bundled-features/src/document-ingest-foundation/changes.json +6 -0
- package/packages/bundled-features/src/document-ingest-foundation/events.ts +17 -0
- package/packages/bundled-features/src/document-ingest-foundation/feature.ts +39 -1
- package/packages/bundled-features/src/document-ingest-foundation/index.ts +10 -0
- package/packages/bundled-features/src/document-ingest-foundation/report-ingest-progress.ts +43 -0
- package/packages/bundled-features/src/document-ingest-foundation/tables.ts +43 -0
- package/packages/bundled-features/src/file-derivatives/handlers/public-variant-by-file-ref.query.ts +1 -1
- package/packages/bundled-features/src/file-derivatives/handlers/public-variant.query.ts +1 -1
- package/packages/bundled-features/src/files-tenant-data/changes.json +6 -0
- package/packages/bundled-features/src/files-tenant-data/hooks.ts +4 -1
- package/packages/bundled-features/src/folders/web/folder-manager.tsx +8 -9
- package/packages/bundled-features/src/folders/web/folder-section.tsx +1 -1
- package/packages/bundled-features/src/form-draft-user-data/index.ts +2 -0
- package/packages/bundled-features/src/inbound-mail-foundation/changes.json +13 -0
- package/packages/bundled-features/src/inbound-mail-foundation/entities.ts +2 -0
- package/packages/bundled-features/src/inbound-mail-foundation/events.ts +2 -0
- package/packages/bundled-features/src/inbound-mail-foundation/feature.ts +6 -6
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/attach-message-content.write.ts +7 -0
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/ingest-message.write.ts +6 -0
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/list-messages.query.ts +6 -2
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/message-content.query.ts +3 -0
- package/packages/bundled-features/src/inbound-mail-foundation/handlers/message-content.ts +19 -0
- package/packages/bundled-features/src/inbound-mail-foundation/projection.ts +2 -0
- package/packages/bundled-features/src/inbound-mail-foundation/sanitize-inbound-html.ts +150 -0
- package/packages/bundled-features/src/inbound-mail-foundation/types.ts +1 -0
- package/packages/bundled-features/src/jobs/job-run-logger.ts +24 -25
- package/packages/bundled-features/src/ledger/handlers/reports.query.ts +46 -31
- package/packages/bundled-features/src/ledger/recurring.ts +1 -0
- package/packages/bundled-features/src/managed-pages/handlers/branding.query.ts +1 -1
- package/packages/bundled-features/src/managed-pages/handlers/by-slug.query.ts +1 -1
- package/packages/bundled-features/src/managed-pages/handlers/by-tenant-published.query.ts +1 -1
- package/packages/bundled-features/src/notes-history/web/notes-section.tsx +3 -1
- package/packages/bundled-features/src/personal-access-tokens/feature.ts +9 -17
- package/packages/bundled-features/src/personal-access-tokens/handlers/create.write.ts +2 -7
- package/packages/bundled-features/src/secrets/changes.json +6 -0
- package/packages/bundled-features/src/secrets/handlers/delete.write.ts +8 -4
- package/packages/bundled-features/src/secrets/handlers/list.query.ts +6 -3
- package/packages/bundled-features/src/secrets/handlers/set.write.ts +9 -4
- package/packages/bundled-features/src/secrets/secret-scope.ts +33 -0
- package/packages/bundled-features/src/seo/handlers/seo-config.query.ts +1 -1
- package/packages/bundled-features/src/sessions/changes.json +6 -0
- package/packages/bundled-features/src/sessions/feature.ts +21 -18
- package/packages/bundled-features/src/sessions/handlers/last-activity-probe.query.ts +53 -0
- package/packages/bundled-features/src/sessions/handlers/last-activity-probe.route.ts +39 -0
- package/packages/bundled-features/src/sessions/screens.ts +1 -0
- package/packages/bundled-features/src/sessions/session-callbacks.ts +13 -12
- package/packages/bundled-features/src/sessions/web/i18n.ts +4 -1
- package/packages/bundled-features/src/shared/assert-billing-live.ts +14 -0
- package/packages/bundled-features/src/shared/collect-extension-options.ts +12 -0
- package/packages/bundled-features/src/shared/index.ts +16 -0
- package/packages/bundled-features/src/shared/late-bound-slot.ts +19 -0
- package/packages/bundled-features/src/shared/mail-locale-templates.ts +7 -1
- package/packages/bundled-features/src/shared/price-env-shape.ts +44 -0
- package/packages/bundled-features/src/shared/purge-row-file-refs.ts +1 -1
- package/packages/bundled-features/src/shared/read-feature-export-fn.ts +16 -0
- package/packages/bundled-features/src/shared/signup-handover.ts +3 -4
- package/packages/bundled-features/src/shared/tenant-destruction-hold.ts +49 -0
- package/packages/bundled-features/src/shared/unprocessable.ts +19 -0
- package/packages/bundled-features/src/shared/web/index.ts +3 -0
- package/packages/bundled-features/src/subscription-paddle/checkout-config.query.ts +1 -1
- package/packages/bundled-features/src/subscription-paddle/feature.ts +7 -15
- package/packages/bundled-features/src/subscription-paddle/runtime.ts +4 -7
- package/packages/bundled-features/src/subscription-stripe/feature.ts +7 -15
- package/packages/bundled-features/src/subscription-stripe/runtime.ts +4 -7
- package/packages/bundled-features/src/tags/entity.ts +1 -0
- package/packages/bundled-features/src/tags/web/tag-chip.tsx +14 -0
- package/packages/bundled-features/src/tags/web/tag-filter.tsx +4 -5
- package/packages/bundled-features/src/tags/web/tag-manager.tsx +1 -1
- package/packages/bundled-features/src/tags/web/tag-section.tsx +3 -6
- package/packages/bundled-features/src/tags/web/tags-cell.tsx +4 -5
- package/packages/bundled-features/src/template-resolver/compile-document-body.ts +27 -15
- package/packages/bundled-features/src/template-resolver/handlers/by-slug.query.ts +1 -1
- package/packages/bundled-features/src/template-resolver/handlers/by-tenant.query.ts +12 -9
- package/packages/bundled-features/src/template-resolver/handlers/discard-draft.write.ts +1 -0
- package/packages/bundled-features/src/template-resolver/handlers/overview.query.ts +1 -0
- package/packages/bundled-features/src/template-resolver/handlers/send-test.write.ts +5 -5
- package/packages/bundled-features/src/template-resolver/handlers/toggle-status.write.ts +3 -0
- package/packages/bundled-features/src/template-resolver/linked-resources.ts +11 -6
- package/packages/bundled-features/src/template-resolver/store-template-resource.ts +15 -12
- package/packages/bundled-features/src/template-resolver/web/document-images.ts +6 -6
- package/packages/bundled-features/src/template-resolver/web/document-insert-fields.tsx +41 -36
- package/packages/bundled-features/src/template-resolver/web/document-schema.ts +11 -12
- package/packages/bundled-features/src/template-resolver/web/tiptap-attribute-parse-rule.ts +19 -0
- package/packages/bundled-features/src/tenant/i18n.ts +3 -0
- package/packages/bundled-features/src/tenant/schema/tenant.ts +1 -0
- package/packages/bundled-features/src/tenant/web/member-roles-cell.tsx +1 -1
- package/packages/bundled-features/src/tenant/web/member-status-cell.tsx +1 -1
- package/packages/bundled-features/src/tenant-inactivity/changes.json +8 -0
- package/packages/bundled-features/src/tenant-inactivity/check-inactive-tenants.ts +260 -0
- package/packages/bundled-features/src/tenant-inactivity/constants.ts +12 -0
- package/packages/bundled-features/src/tenant-inactivity/email-templates.ts +24 -0
- package/packages/bundled-features/src/tenant-inactivity/feature.ts +66 -0
- package/packages/bundled-features/src/tenant-inactivity/handlers/inactivity-state.query.ts +49 -0
- package/packages/bundled-features/src/tenant-inactivity/handlers/keep-account.write.ts +59 -0
- package/packages/bundled-features/src/tenant-inactivity/inactivity-plan.ts +187 -0
- package/packages/bundled-features/src/tenant-inactivity/index.ts +5 -0
- package/packages/bundled-features/src/tenant-inactivity/keep-token.ts +44 -0
- package/packages/bundled-features/src/tenant-inactivity/mail-notifications.ts +62 -0
- package/packages/bundled-features/src/tenant-inactivity/options.ts +38 -0
- package/packages/bundled-features/src/tenant-inactivity/remote-activity.ts +32 -0
- package/packages/bundled-features/src/tenant-inactivity/state-store.ts +71 -0
- package/packages/bundled-features/src/tenant-inactivity/state-table.ts +50 -0
- package/packages/bundled-features/src/tenant-lifecycle/boot-checks.ts +8 -6
- package/packages/bundled-features/src/tenant-lifecycle/boot-rules.ts +16 -0
- package/packages/bundled-features/src/tenant-lifecycle/changes.json +18 -0
- package/packages/bundled-features/src/tenant-lifecycle/feature.ts +24 -1
- package/packages/bundled-features/src/tenant-lifecycle/handlers/request-destruction.write.ts +12 -87
- package/packages/bundled-features/src/tenant-lifecycle/index.ts +4 -0
- package/packages/bundled-features/src/tenant-lifecycle/request-tenant-destruction.ts +108 -0
- package/packages/bundled-features/src/tenant-lifecycle/retention-config-destroy-hooks.ts +62 -0
- package/packages/bundled-features/src/tenant-lifecycle/run-tenant-destroy.ts +58 -5
- package/packages/bundled-features/src/tenant-lifecycle/stages.ts +31 -2
- package/packages/bundled-features/src/tenant-lifecycle/testing.ts +1 -1
- package/packages/bundled-features/src/tier-engine/caps-for-tier-from-map.ts +16 -0
- package/packages/bundled-features/src/tier-engine/changes.json +6 -0
- package/packages/bundled-features/src/tier-engine/compose-app.ts +21 -20
- package/packages/bundled-features/src/tier-engine/index.ts +1 -0
- package/packages/bundled-features/src/user-data-rights/feature.ts +2 -0
- package/packages/bundled-features/src/user-data-rights/handlers/confirm-deletion-by-token.write.ts +4 -1
- package/packages/bundled-features/src/user-data-rights/handlers/download-by-token.query.ts +1 -0
- package/packages/bundled-features/src/user-data-rights/handlers/request-deletion-by-email.write.ts +4 -1
- package/packages/bundled-features/src/user-data-rights/run-forget-cleanup.ts +2 -0
- package/packages/bundled-features/src/user-data-rights/web/privacy-center-screen.tsx +1 -1
- package/packages/bundled-features/src/user-data-rights/zip-path.ts +1 -0
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/config-value.userdata-hook.ts +8 -27
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/delivery-attempt.userdata-hook.ts +11 -8
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/forget-own-rows-delete-hook.ts +42 -0
- package/packages/bundled-features/src/user-data-rights-defaults/hooks/notification-preference.userdata-hook.ts +8 -27
- package/packages/bundled-features/src/user-profile/handlers/change-email.write.ts +2 -6
- package/packages/bundled-features/src/user-profile/web/profile-screen.tsx +2 -3
- package/packages/bundled-features/src/waitlist/changes.json +6 -0
- package/packages/bundled-features/src/waitlist/handlers/submit.write.ts +1 -2
- package/samples/apps/styleguide/src/features/widgets/i18n.ts +6 -0
- package/samples/apps/styleguide/src/features/widgets/web/InboxReaderExamples.tsx +158 -0
- package/samples/apps/styleguide/src/features/widgets/web/Widgets.tsx +2 -0
- package/samples/apps/styleguide/src/features/widgets/web/sample-pdf.ts +28 -0
- package/samples/apps/use-all-bundled/feature-manifest.json +113 -2
- package/samples/apps/use-all-bundled/kumiko/migrations/0063_contact.rebuild.json +4 -0
- package/samples/apps/use-all-bundled/package.json +1 -0
- package/samples/apps/use-all-bundled/src/app/client.tsx +3 -0
- package/samples/apps/use-all-bundled/src/app/screens-feature.ts +46 -2
- package/samples/apps/use-all-bundled/src/run-config.ts +23 -1
- package/samples/recipes/anonymous-access/README.md +2 -0
- package/samples/recipes/anonymous-access/src/feature.ts +7 -1
- package/samples/recipes/contact/README.md +52 -0
- package/samples/recipes/contact/package.json +12 -0
- package/samples/recipes/contact/src/feature.ts +27 -0
- package/samples/recipes/delivery-notifications/src/feature.ts +3 -0
- package/samples/recipes/record-detail-layout/src/feature.ts +9 -1
- package/samples/recipes/search/README.md +2 -0
- package/samples/recipes/search/src/feature.ts +27 -2
- package/samples/recipes/secrets-demo/README.md +1 -0
- package/samples/recipes/secrets-demo/src/feature.ts +56 -0
- package/samples/recipes/tenant-inactivity/README.md +21 -0
- package/samples/recipes/tenant-inactivity/package.json +12 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import { UnprocessableError, writeFailure } from "@cosmicdrift/kumiko-framework/errors";
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
import { AuthErrors } from "../../auth-email-password/index.ts";
|
|
9
|
-
import { decryptStoredPii, verifyPassword } from "../../shared/index.ts";
|
|
9
|
+
import { decryptStoredPii, unprocessable, verifyPassword } from "../../shared/index.ts";
|
|
10
10
|
import { UserErrors, UserHandlers, UserQueries } from "../../user/index.ts";
|
|
11
11
|
import { UserProfileErrors } from "../web/constants.ts";
|
|
12
12
|
|
|
@@ -15,11 +15,7 @@ import { UserProfileErrors } from "../web/constants.ts";
|
|
|
15
15
|
// and i18nKey are stable public API.
|
|
16
16
|
// @wrapper-known error-helper
|
|
17
17
|
function invalidCredentials() {
|
|
18
|
-
return
|
|
19
|
-
new UnprocessableError(AuthErrors.invalidCredentials, {
|
|
20
|
-
i18nKey: "auth.errors.invalidCredentials",
|
|
21
|
-
}),
|
|
22
|
-
);
|
|
18
|
+
return unprocessable(AuthErrors.invalidCredentials, "auth.errors.invalidCredentials");
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
// Change-email — authenticated, self-only. The user confirms with their
|
|
@@ -14,9 +14,8 @@ import {
|
|
|
14
14
|
} from "@cosmicdrift/kumiko-renderer";
|
|
15
15
|
import { propertyOf } from "@cosmicdrift/kumiko-types/type-guards";
|
|
16
16
|
import { type ReactNode, useState } from "react";
|
|
17
|
-
import { AuthHandlers } from "../../auth-email-password/web/
|
|
18
|
-
import {
|
|
19
|
-
import { type SectionStatus, StatusBanner } from "../../shared/web/status-banner.tsx";
|
|
17
|
+
import { AuthHandlers, requestEmailVerification } from "../../auth-email-password/web/index.ts";
|
|
18
|
+
import { type SectionStatus, StatusBanner } from "../../shared/web/index.ts";
|
|
20
19
|
import { UserProfileHandlers } from "./constants.ts";
|
|
21
20
|
|
|
22
21
|
// Dispatcher failures carry an i18nKey only when the handler sets one —
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.410.0",
|
|
4
|
+
"type": "fix",
|
|
5
|
+
"title": "Signed-in visitors can join the waitlist whatever their roles",
|
|
6
|
+
"detail": "`waitlist:write:submit` used to answer 403 when the browser sent the session cookie of a user without one of the listed roles. It now admits every signed-in caller through `anySignedIn`."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.389.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -33,7 +33,6 @@ const SUBMIT_LOCK_NAMESPACE = 0x776c7374;
|
|
|
33
33
|
const SUBMIT_LOCK_REASON =
|
|
34
34
|
"takes the per-email advisory lock so parallel submits cannot both pass the duplicate check and wraps the admin-recipient resolver in a savepoint so a failing statement cannot abort the submit transaction; TenantDb has neither API";
|
|
35
35
|
|
|
36
|
-
// Logged-in callers carry no anonymous role, so every signed-in role must be listed.
|
|
37
36
|
const SUBMIT_ROLES = access.roles(
|
|
38
37
|
...access.anonymous,
|
|
39
38
|
...access.authenticated,
|
|
@@ -132,7 +131,7 @@ export function createSubmitHandler(opts: WaitlistOptions) {
|
|
|
132
131
|
return defineWriteHandler<"submit", typeof WaitlistSubmitSchema, WaitlistSubmitData>({
|
|
133
132
|
name: "submit",
|
|
134
133
|
schema: WaitlistSubmitSchema,
|
|
135
|
-
access: { roles: SUBMIT_ROLES, personalData: "public-intake" },
|
|
134
|
+
access: { roles: SUBMIT_ROLES, personalData: "public-intake", anySignedIn: true },
|
|
136
135
|
rateLimit: opts.rateLimit ?? DEFAULT_SUBMIT_RATE_LIMIT,
|
|
137
136
|
// An empty array means "disabled"; boot validation rejects an empty additionalRateLimits.
|
|
138
137
|
...(emailRateLimits.length > 0 && { additionalRateLimits: emailRateLimits }),
|
|
@@ -191,6 +191,12 @@ export const WIDGETS_I18N = {
|
|
|
191
191
|
de: "Zeile links anklicken.",
|
|
192
192
|
en: "Click a row on the left.",
|
|
193
193
|
},
|
|
194
|
+
"widgets:catalog:inbox-reader": { de: "Posteingang: Leser", en: "Inbox: reader" },
|
|
195
|
+
"widgets:catalog:inbox-reader-subtitle": {
|
|
196
|
+
de: "Mail-Verlauf mit Anhängen, Original-Betrachter und Plan der KI",
|
|
197
|
+
en: "Mail thread with attachments, original viewer and the AI plan",
|
|
198
|
+
},
|
|
199
|
+
"widgets:catalog:inbox-plan-title": { de: "Vorschlag der KI", en: "AI proposal" },
|
|
194
200
|
"widgets:catalog:ai-text": { de: "AI-Text", en: "AI text" },
|
|
195
201
|
"widgets:catalog:ai-text-subtitle": {
|
|
196
202
|
de: "Ghost-Text-Completion, Correct, Translate, Rewrite",
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// Inbox reader building blocks with a rent-management case: tenant reports a cold
|
|
2
|
+
// heating system, the property manager answers, the AI proposes follow-up steps.
|
|
3
|
+
|
|
4
|
+
import { useTranslation } from "@cosmicdrift/kumiko-renderer";
|
|
5
|
+
import {
|
|
6
|
+
AiSurface,
|
|
7
|
+
MessageReader,
|
|
8
|
+
PdfPreview,
|
|
9
|
+
SectionCard,
|
|
10
|
+
StepList,
|
|
11
|
+
type StepListItem,
|
|
12
|
+
type ThreadMessage,
|
|
13
|
+
} from "@cosmicdrift/kumiko-renderer/web";
|
|
14
|
+
import { type ReactNode, useMemo, useState } from "react";
|
|
15
|
+
import { buildSamplePdfBase64 } from "./sample-pdf";
|
|
16
|
+
|
|
17
|
+
const HEATING_THREAD: readonly ThreadMessage[] = [
|
|
18
|
+
{
|
|
19
|
+
id: "tenant-first",
|
|
20
|
+
author: "Anna Schneider",
|
|
21
|
+
address: "a.schneider@mieter.test",
|
|
22
|
+
direction: "incoming",
|
|
23
|
+
timeLabel: "Mo 08:14",
|
|
24
|
+
body: {
|
|
25
|
+
kind: "text",
|
|
26
|
+
text: "Guten Morgen,\nseit gestern Abend ist meine Heizung komplett kalt. Können Sie jemanden schicken?",
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
id: "manager-reply",
|
|
31
|
+
author: "Du",
|
|
32
|
+
direction: "outgoing",
|
|
33
|
+
timeLabel: "Mo 09:02",
|
|
34
|
+
body: {
|
|
35
|
+
kind: "text",
|
|
36
|
+
text: "Der Monteur kommt am Dienstag zwischen 8 und 10 Uhr. Bitte sorgen Sie für Zugang zur Wohnung.",
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "tenant-second",
|
|
41
|
+
author: "Anna Schneider",
|
|
42
|
+
address: "a.schneider@mieter.test",
|
|
43
|
+
direction: "incoming",
|
|
44
|
+
timeLabel: "Heute 09:41",
|
|
45
|
+
body: {
|
|
46
|
+
kind: "text",
|
|
47
|
+
text: [
|
|
48
|
+
"Guten Tag,",
|
|
49
|
+
"der Monteur ist am Dienstag nicht gekommen, ich habe den ganzen Vormittag gewartet. Die Heizung ist weiter kalt, im Kinderzimmer sind es 15 Grad.",
|
|
50
|
+
"Ich erwarte heute einen neuen Termin. Ab sofort mindere ich die Miete um 20 Prozent, bis die Heizung wieder läuft.",
|
|
51
|
+
"",
|
|
52
|
+
"Am Mo., 9:02 schrieb Du <verwaltung@hausverwaltung.test>:",
|
|
53
|
+
"> Der Monteur kommt am Dienstag zwischen 8 und 10 Uhr.",
|
|
54
|
+
"> Bitte sorgen Sie für Zugang zur Wohnung.",
|
|
55
|
+
].join("\n"),
|
|
56
|
+
},
|
|
57
|
+
attachments: [
|
|
58
|
+
{
|
|
59
|
+
id: "thermometer",
|
|
60
|
+
name: "thermometer-kinderzimmer.jpg",
|
|
61
|
+
meta: "Foto, 1,2 MB",
|
|
62
|
+
kind: "image",
|
|
63
|
+
onOpen: () => {},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "contract",
|
|
67
|
+
name: "Mietvertrag-Goethestr-12.pdf",
|
|
68
|
+
meta: "PDF, 2 Seiten",
|
|
69
|
+
kind: "pdf",
|
|
70
|
+
onOpen: () => {},
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
const HEATING_PLAN: readonly StepListItem[] = [
|
|
77
|
+
{
|
|
78
|
+
id: "case",
|
|
79
|
+
title: "Vorgang „Heizungsausfall Whg. 3“",
|
|
80
|
+
status: "done",
|
|
81
|
+
meta: "Angelegt von dir, Mo 09:05",
|
|
82
|
+
link: { label: "Öffnen", href: "#vorgang" },
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
id: "order",
|
|
86
|
+
title: "Neuer Auftrag an Heizung Schulz GmbH",
|
|
87
|
+
description: "Notdienst heute, Zugang über Hausmeister. Der alte Auftrag wird storniert.",
|
|
88
|
+
status: "open",
|
|
89
|
+
tags: [{ label: "Sendet eine Mail", tone: "accent" }],
|
|
90
|
+
actions: [
|
|
91
|
+
{ id: "review", label: "Prüfen", variant: "primary", onClick: () => {} },
|
|
92
|
+
{ id: "reject", label: "Ablehnen", variant: "ghost", onClick: () => {} },
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: "reply",
|
|
97
|
+
title: "Antwort an Anna Schneider",
|
|
98
|
+
description: "Neuer Termin, Minderung erst nach Prüfung des Mangels.",
|
|
99
|
+
status: "locked",
|
|
100
|
+
lockedReason: "Auftrag",
|
|
101
|
+
tags: [{ label: "Sendet eine Mail", tone: "accent" }],
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
|
|
105
|
+
export function InboxReaderExamples(): ReactNode {
|
|
106
|
+
const t = useTranslation();
|
|
107
|
+
const [activeTabId, setActiveTabId] = useState("mail");
|
|
108
|
+
const contractPdf = useMemo(
|
|
109
|
+
() => buildSamplePdfBase64(["Mietvertrag Goethestrasse 12, Whg. 3", "Heizung und Nebenkosten"]),
|
|
110
|
+
[],
|
|
111
|
+
);
|
|
112
|
+
return (
|
|
113
|
+
<SectionCard
|
|
114
|
+
title={t("widgets:catalog:inbox-reader")}
|
|
115
|
+
subtitle={t("widgets:catalog:inbox-reader-subtitle")}
|
|
116
|
+
>
|
|
117
|
+
<div className="grid gap-4 lg:grid-cols-[1fr_340px]" data-testid="inbox-reader-demo">
|
|
118
|
+
<MessageReader
|
|
119
|
+
thread={{ messages: HEATING_THREAD }}
|
|
120
|
+
activeTabId={activeTabId}
|
|
121
|
+
onTabChange={setActiveTabId}
|
|
122
|
+
attachmentTabs={[
|
|
123
|
+
{
|
|
124
|
+
id: "contract",
|
|
125
|
+
label: "Anhang 1: Mietvertrag-Goethestr-12.pdf",
|
|
126
|
+
render: () => (
|
|
127
|
+
<div className="h-[560px]">
|
|
128
|
+
<PdfPreview
|
|
129
|
+
variant="viewer"
|
|
130
|
+
source={{ base64: contractPdf }}
|
|
131
|
+
searchTerm="Heizung"
|
|
132
|
+
testId="inbox-reader-pdf"
|
|
133
|
+
/>
|
|
134
|
+
</div>
|
|
135
|
+
),
|
|
136
|
+
},
|
|
137
|
+
]}
|
|
138
|
+
/>
|
|
139
|
+
<div className="flex flex-col gap-4">
|
|
140
|
+
<AiSurface title="Einordnung der KI" label="Einordnung der KI">
|
|
141
|
+
<p className="m-0 text-sm leading-normal">
|
|
142
|
+
Die Heizung ist seit Montag kalt. Der vereinbarte Monteur ist nicht gekommen. Frau
|
|
143
|
+
Schneider kündigt eine Mietminderung an und will heute einen neuen Termin.
|
|
144
|
+
</p>
|
|
145
|
+
</AiSurface>
|
|
146
|
+
<StepList
|
|
147
|
+
title={t("widgets:catalog:inbox-plan-title")}
|
|
148
|
+
steps={HEATING_PLAN}
|
|
149
|
+
footerActions={[
|
|
150
|
+
{ id: "reject-all", label: "Alle ablehnen", variant: "ghost", onClick: () => {} },
|
|
151
|
+
{ id: "next", label: "Nächsten prüfen", variant: "primary", onClick: () => {} },
|
|
152
|
+
]}
|
|
153
|
+
/>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</SectionCard>
|
|
157
|
+
);
|
|
158
|
+
}
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
import { Wallet } from "lucide-react";
|
|
42
42
|
import { type ReactNode, useEffect, useMemo, useState } from "react";
|
|
43
43
|
import { euro, percent } from "../lib/format";
|
|
44
|
+
import { InboxReaderExamples } from "./InboxReaderExamples";
|
|
44
45
|
|
|
45
46
|
const RESPONSE_TIMES = Array.from({ length: 48 }, (_, i) => ({
|
|
46
47
|
atMs: i * 30 * 60 * 1000,
|
|
@@ -322,6 +323,7 @@ export function Widgets(): ReactNode {
|
|
|
322
323
|
)}
|
|
323
324
|
|
|
324
325
|
<InboxDemo />
|
|
326
|
+
<InboxReaderExamples />
|
|
325
327
|
<FinancingCalculatorDemo />
|
|
326
328
|
<FormFieldsDemo />
|
|
327
329
|
<ComparisonDemo />
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Minimal text-only PDF so the viewer example needs no binary asset; xref offsets are computed.
|
|
2
|
+
function pageObjects(text: string, firstObjectNumber: number): readonly string[] {
|
|
3
|
+
const stream = `BT /F1 14 Tf 56 760 Td (${text}) Tj ET`;
|
|
4
|
+
return [
|
|
5
|
+
`<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Resources << /Font << /F1 << /Type /Font /Subtype /Type1 /BaseFont /Helvetica >> >> >> /Contents ${firstObjectNumber + 1} 0 R >>`,
|
|
6
|
+
`<< /Length ${stream.length} >>\nstream\n${stream}\nendstream`,
|
|
7
|
+
];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function buildSamplePdfBase64(pageTexts: readonly string[]): string {
|
|
11
|
+
const pageObjectNumbers = pageTexts.map((_, index) => 3 + index * 2);
|
|
12
|
+
const objects = [
|
|
13
|
+
"<< /Type /Catalog /Pages 2 0 R >>",
|
|
14
|
+
`<< /Type /Pages /Kids [${pageObjectNumbers.map((n) => `${n} 0 R`).join(" ")}] /Count ${pageTexts.length} >>`,
|
|
15
|
+
...pageTexts.flatMap((text, index) => pageObjects(text, pageObjectNumbers[index] ?? 3)),
|
|
16
|
+
];
|
|
17
|
+
let body = "%PDF-1.4\n";
|
|
18
|
+
const offsets: number[] = [];
|
|
19
|
+
objects.forEach((object, index) => {
|
|
20
|
+
offsets.push(body.length);
|
|
21
|
+
body += `${index + 1} 0 obj\n${object}\nendobj\n`;
|
|
22
|
+
});
|
|
23
|
+
const xrefOffset = body.length;
|
|
24
|
+
const entries = offsets.map((offset) => `${String(offset).padStart(10, "0")} 00000 n \n`);
|
|
25
|
+
body += `xref\n0 ${objects.length + 1}\n0000000000 65535 f \n${entries.join("")}`;
|
|
26
|
+
body += `trailer\n<< /Size ${objects.length + 1} /Root 1 0 R >>\nstartxref\n${xrefOffset}\n%%EOF`;
|
|
27
|
+
return btoa(body);
|
|
28
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "samples/apps/use-all-bundled APP_FEATURES (composeFeatures includeBundled + signup)",
|
|
3
|
-
"featureCount":
|
|
3
|
+
"featureCount": 92,
|
|
4
4
|
"features": [
|
|
5
5
|
{
|
|
6
6
|
"name": "account-security",
|
|
@@ -694,6 +694,73 @@
|
|
|
694
694
|
"recommended": true
|
|
695
695
|
}
|
|
696
696
|
},
|
|
697
|
+
{
|
|
698
|
+
"name": "contact",
|
|
699
|
+
"description": "Contact inbox: an anonymous browser client (GET /contact/client.js) submits questions, contact requests, bug reports and wishes behind a honeypot, a minimum submit time and a single-use proof-of-work challenge; signed-in users file reports from the admin. Every request is stored platform-wide and every SystemAdmin is notified by mail, optionally also in a Telegram chat (option `telegram`, off by default); the notification names only the kind, the app and a link, never name, address, phone, subject or message, because mail and Telegram cannot be shredded. SystemAdmins reply by mail (Reply-To set, attachments, quoting the original) and mark requests done; a website sender gets a fixed acknowledgement, a signed-in reporter a copy and an in-app note. Personal data is crypto-shredding-ready and the EXT_USER_DATA hooks export and erase a user's requests.",
|
|
700
|
+
"toggleableDefault": null,
|
|
701
|
+
"adoptsBundledLists": true,
|
|
702
|
+
"requires": [
|
|
703
|
+
"config",
|
|
704
|
+
"delivery",
|
|
705
|
+
"user-data-rights",
|
|
706
|
+
"files",
|
|
707
|
+
"notes-history"
|
|
708
|
+
],
|
|
709
|
+
"optionalRequires": [
|
|
710
|
+
"channel-telegram"
|
|
711
|
+
],
|
|
712
|
+
"configReads": [],
|
|
713
|
+
"exposesApis": [],
|
|
714
|
+
"usesApis": [],
|
|
715
|
+
"extensionsUsed": [
|
|
716
|
+
{
|
|
717
|
+
"extensionName": "userData",
|
|
718
|
+
"entityName": "contact-request"
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"extensionName": "userData",
|
|
722
|
+
"entityName": "contact-reply"
|
|
723
|
+
}
|
|
724
|
+
],
|
|
725
|
+
"configKeys": [
|
|
726
|
+
{
|
|
727
|
+
"key": "reply-to",
|
|
728
|
+
"qualifiedName": "contact:config:reply-to",
|
|
729
|
+
"type": "text",
|
|
730
|
+
"scope": "system",
|
|
731
|
+
"default": "",
|
|
732
|
+
"encrypted": false,
|
|
733
|
+
"computed": false,
|
|
734
|
+
"validated": false,
|
|
735
|
+
"options": null,
|
|
736
|
+
"bounds": null,
|
|
737
|
+
"pattern": {
|
|
738
|
+
"regex": "^$|^[^\\s@<>]{1,64}@[^\\s@<>]{1,200}\\.[^\\s@<>]{2,24}$"
|
|
739
|
+
},
|
|
740
|
+
"writeRoles": [
|
|
741
|
+
"SystemAdmin"
|
|
742
|
+
],
|
|
743
|
+
"readRoles": [
|
|
744
|
+
"SystemAdmin"
|
|
745
|
+
]
|
|
746
|
+
}
|
|
747
|
+
],
|
|
748
|
+
"secrets": [],
|
|
749
|
+
"writeHandlers": [
|
|
750
|
+
"contact:write:forward-request",
|
|
751
|
+
"contact:write:mark-done",
|
|
752
|
+
"contact:write:notify-reporter-in-app",
|
|
753
|
+
"contact:write:reply",
|
|
754
|
+
"contact:write:report",
|
|
755
|
+
"contact:write:send-reply-mail",
|
|
756
|
+
"contact:write:submit"
|
|
757
|
+
],
|
|
758
|
+
"uiHints": {
|
|
759
|
+
"displayLabel": "Contact",
|
|
760
|
+
"category": "communication",
|
|
761
|
+
"recommended": false
|
|
762
|
+
}
|
|
763
|
+
},
|
|
697
764
|
{
|
|
698
765
|
"name": "crypto-shredding",
|
|
699
766
|
"description": "Operator-level crypto-shredding trigger. `forget-subject` erases a user or tenant subject key in the configured KMS adapter, making every PII field encrypted under it permanently unreadable (reads render the `[[erased]]` sentinel), and appends a `subject-forgotten` audit event. Requires a KMS adapter (`runProdApp({ kms })`). The automated Art.-17 deletion pipeline in `user-data-rights` erases keys itself; this command covers manual forgets (authority requests, operator recovery, tenant destroy).",
|
|
@@ -3164,6 +3231,37 @@
|
|
|
3164
3231
|
"recommended": false
|
|
3165
3232
|
}
|
|
3166
3233
|
},
|
|
3234
|
+
{
|
|
3235
|
+
"name": "tenant-inactivity",
|
|
3236
|
+
"description": "Deletes abandoned free accounts: warns the tenant owners before the deadline, then files the regular tenant-lifecycle deletion request. Activity or the keep-account link restarts the period; tiers without a rule are exempt.",
|
|
3237
|
+
"toggleableDefault": null,
|
|
3238
|
+
"requires": [
|
|
3239
|
+
"sessions",
|
|
3240
|
+
"tenant",
|
|
3241
|
+
"tenant-lifecycle",
|
|
3242
|
+
"delivery"
|
|
3243
|
+
],
|
|
3244
|
+
"optionalRequires": [],
|
|
3245
|
+
"configReads": [],
|
|
3246
|
+
"exposesApis": [],
|
|
3247
|
+
"usesApis": [],
|
|
3248
|
+
"extensionsUsed": [
|
|
3249
|
+
{
|
|
3250
|
+
"extensionName": "tenantData",
|
|
3251
|
+
"entityName": "tenant-inactivity-state"
|
|
3252
|
+
}
|
|
3253
|
+
],
|
|
3254
|
+
"configKeys": [],
|
|
3255
|
+
"secrets": [],
|
|
3256
|
+
"writeHandlers": [
|
|
3257
|
+
"tenant-inactivity:write:keep-account"
|
|
3258
|
+
],
|
|
3259
|
+
"uiHints": {
|
|
3260
|
+
"displayLabel": "Tenant Inactivity · Deletion",
|
|
3261
|
+
"category": "compliance",
|
|
3262
|
+
"recommended": false
|
|
3263
|
+
}
|
|
3264
|
+
},
|
|
3167
3265
|
{
|
|
3168
3266
|
"name": "tenant-lifecycle",
|
|
3169
3267
|
"description": "Tenant-destroy lifecycle: request/cancel destruction with compliance-profile grace, auth 410 gate for teardown states, cron trigger after grace, and staged destroy runner (extension fan-out, subject-key erase, tenant tombstone).",
|
|
@@ -3173,7 +3271,8 @@
|
|
|
3173
3271
|
"compliance-profiles"
|
|
3174
3272
|
],
|
|
3175
3273
|
"optionalRequires": [
|
|
3176
|
-
"sessions"
|
|
3274
|
+
"sessions",
|
|
3275
|
+
"data-retention"
|
|
3177
3276
|
],
|
|
3178
3277
|
"configReads": [],
|
|
3179
3278
|
"exposesApis": [
|
|
@@ -3183,6 +3282,18 @@
|
|
|
3183
3282
|
"compliance.forTenant"
|
|
3184
3283
|
],
|
|
3185
3284
|
"extensionsUsed": [
|
|
3285
|
+
{
|
|
3286
|
+
"extensionName": "tenantDestructionHold",
|
|
3287
|
+
"entityName": "tenant-lifecycle"
|
|
3288
|
+
},
|
|
3289
|
+
{
|
|
3290
|
+
"extensionName": "tenantData",
|
|
3291
|
+
"entityName": "tenant-compliance-profile"
|
|
3292
|
+
},
|
|
3293
|
+
{
|
|
3294
|
+
"extensionName": "tenantData",
|
|
3295
|
+
"entityName": "tenant-retention-override"
|
|
3296
|
+
},
|
|
3186
3297
|
{
|
|
3187
3298
|
"extensionName": "tenantLifecycleStatus",
|
|
3188
3299
|
"entityName": "tenant-lifecycle"
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"screenshots": "bun x playwright test e2e/screenshots.spec.ts --config=playwright.config.ts",
|
|
12
12
|
"billing-gallery": "bun x playwright test --config=playwright.billing-gallery.config.ts",
|
|
13
13
|
"docs-guides": "bun x playwright test e2e/docs-guides.screenshots.spec.ts --config=playwright.config.ts && bun x playwright test --config=playwright.billing-docs.config.ts",
|
|
14
|
+
"contact-shots": "bun x playwright test e2e/contact.screenshots.spec.ts --config=playwright.config.ts",
|
|
14
15
|
"e2e": "bun x playwright test e2e/mfa-login.spec.ts --config=playwright.config.ts",
|
|
15
16
|
"gen:manifest": "bun run scripts/gen-feature-manifest.ts",
|
|
16
17
|
"gen:sample-index": "bun run scripts/gen-sample-index.ts"
|
|
@@ -29,6 +29,7 @@ import { foldersClient } from "@cosmicdrift/kumiko-bundled-features/folders/web"
|
|
|
29
29
|
import { inboundMailFoundationClient } from "@cosmicdrift/kumiko-bundled-features/inbound-mail-foundation/web";
|
|
30
30
|
import { jobsClient } from "@cosmicdrift/kumiko-bundled-features/jobs/web";
|
|
31
31
|
import { managedPagesClient } from "@cosmicdrift/kumiko-bundled-features/managed-pages/web";
|
|
32
|
+
import { notesHistoryClient } from "@cosmicdrift/kumiko-bundled-features/notes-history/web";
|
|
32
33
|
import { sessionsClient } from "@cosmicdrift/kumiko-bundled-features/sessions/web";
|
|
33
34
|
import { tagsClient } from "@cosmicdrift/kumiko-bundled-features/tags/web";
|
|
34
35
|
import { textBlocksClient } from "@cosmicdrift/kumiko-bundled-features/template-resolver/web";
|
|
@@ -119,6 +120,8 @@ createKumikoApp({
|
|
|
119
120
|
userProfileClient(),
|
|
120
121
|
customFieldsClient(),
|
|
121
122
|
foldersClient(),
|
|
123
|
+
// The contact request detail frames its internal notes with the NotesSection extension.
|
|
124
|
+
notesHistoryClient(),
|
|
122
125
|
inboundMailFoundationClient(),
|
|
123
126
|
complianceProfilesClient(),
|
|
124
127
|
featureTogglesClient(),
|
|
@@ -5,13 +5,20 @@
|
|
|
5
5
|
// (#1258): an open screen not reachable via nav is no longer an eligible
|
|
6
6
|
// fallback candidate.
|
|
7
7
|
|
|
8
|
+
import { ContactScreens } from "@cosmicdrift/kumiko-bundled-features/contact";
|
|
8
9
|
import { MAIL_ACCOUNT_LIST_SCREEN_QN } from "@cosmicdrift/kumiko-bundled-features/inbound-mail-foundation";
|
|
9
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
access,
|
|
12
|
+
defineFeature,
|
|
13
|
+
type FeatureDefinition,
|
|
14
|
+
} from "@cosmicdrift/kumiko-framework/engine";
|
|
10
15
|
import { ADMIN_NAV_QN, ADMIN_NAV_WORKSPACES } from "./admin-nav-feature";
|
|
11
16
|
|
|
17
|
+
const PLATFORM_WORKSPACES = ["admin-shell:workspace:platform"] as const;
|
|
18
|
+
|
|
12
19
|
export const appScreensFeature: FeatureDefinition = defineFeature("app-screens", (r) => {
|
|
13
20
|
r.describe("App-side nav placement for the user-profile self-service page and the mailbox list.");
|
|
14
|
-
r.requires({ features: ["user-profile", "inbound-mail-foundation"] });
|
|
21
|
+
r.requires({ features: ["user-profile", "inbound-mail-foundation", "contact"] });
|
|
15
22
|
r.nav({
|
|
16
23
|
id: "profile",
|
|
17
24
|
label: "screen:profile.title",
|
|
@@ -40,8 +47,45 @@ export const appScreensFeature: FeatureDefinition = defineFeature("app-screens",
|
|
|
40
47
|
workspaces: ADMIN_NAV_WORKSPACES,
|
|
41
48
|
order: 20,
|
|
42
49
|
});
|
|
50
|
+
r.nav({
|
|
51
|
+
id: "contact-requests",
|
|
52
|
+
label: "screen:request-list.title",
|
|
53
|
+
icon: "mail",
|
|
54
|
+
screen: ContactScreens.requestList,
|
|
55
|
+
order: 25,
|
|
56
|
+
access: { roles: access.systemAdmin },
|
|
57
|
+
workspaces: PLATFORM_WORKSPACES,
|
|
58
|
+
});
|
|
59
|
+
r.nav({
|
|
60
|
+
id: "contact-forwarding",
|
|
61
|
+
label: "nav:contact-forwarding.title",
|
|
62
|
+
icon: "settings",
|
|
63
|
+
screen: ContactScreens.forwarding,
|
|
64
|
+
parent: ADMIN_NAV_QN,
|
|
65
|
+
order: 30,
|
|
66
|
+
access: { roles: access.systemAdmin },
|
|
67
|
+
workspaces: ADMIN_NAV_WORKSPACES,
|
|
68
|
+
});
|
|
69
|
+
r.nav({
|
|
70
|
+
id: "help",
|
|
71
|
+
label: "nav:help.title",
|
|
72
|
+
icon: "info",
|
|
73
|
+
order: 90,
|
|
74
|
+
workspaces: ADMIN_NAV_WORKSPACES,
|
|
75
|
+
});
|
|
76
|
+
r.nav({
|
|
77
|
+
id: "contact-report",
|
|
78
|
+
label: "screen:report.title",
|
|
79
|
+
icon: "mail",
|
|
80
|
+
screen: ContactScreens.report,
|
|
81
|
+
parent: "app-screens:nav:help",
|
|
82
|
+
order: 10,
|
|
83
|
+
workspaces: ADMIN_NAV_WORKSPACES,
|
|
84
|
+
});
|
|
43
85
|
r.translations({
|
|
44
86
|
keys: {
|
|
87
|
+
"nav:contact-forwarding.title": { de: "Weiterleitung", en: "Forwarding" },
|
|
88
|
+
"nav:help.title": { de: "Hilfe", en: "Help" },
|
|
45
89
|
"nav:mail-accounts.title": { de: "Postfächer", en: "Mailboxes" },
|
|
46
90
|
"screen:profile.title": { de: "Profil", en: "Profile" },
|
|
47
91
|
"nav:content.title": { de: "Inhalte", en: "Content" },
|
|
@@ -38,6 +38,10 @@ import { createChannelTeamsFeature } from "@cosmicdrift/kumiko-bundled-features/
|
|
|
38
38
|
import { createChannelTelegramFeature } from "@cosmicdrift/kumiko-bundled-features/channel-telegram";
|
|
39
39
|
import { createComplianceProfilesFeature } from "@cosmicdrift/kumiko-bundled-features/compliance-profiles";
|
|
40
40
|
import { createComplianceProfilesOpsFeature } from "@cosmicdrift/kumiko-bundled-features/compliance-profiles-ops";
|
|
41
|
+
import {
|
|
42
|
+
contactOpenRequestsPanels,
|
|
43
|
+
createContactFeature,
|
|
44
|
+
} from "@cosmicdrift/kumiko-bundled-features/contact";
|
|
41
45
|
import { createCustomFieldsFeature } from "@cosmicdrift/kumiko-bundled-features/custom-fields";
|
|
42
46
|
import { createDataRetentionFeature } from "@cosmicdrift/kumiko-bundled-features/data-retention";
|
|
43
47
|
import { createDeliveryFeature } from "@cosmicdrift/kumiko-bundled-features/delivery";
|
|
@@ -83,6 +87,7 @@ import { createTagsFeature } from "@cosmicdrift/kumiko-bundled-features/tags";
|
|
|
83
87
|
import { createTemplateResolverFeature } from "@cosmicdrift/kumiko-bundled-features/template-resolver";
|
|
84
88
|
import { createTemplateResolverUserDataFeature } from "@cosmicdrift/kumiko-bundled-features/template-resolver-user-data";
|
|
85
89
|
import { createTenantHandoverFeature } from "@cosmicdrift/kumiko-bundled-features/tenant-handover";
|
|
90
|
+
import { createTenantInactivityFeature } from "@cosmicdrift/kumiko-bundled-features/tenant-inactivity";
|
|
86
91
|
import { createTenantLifecycleFeature } from "@cosmicdrift/kumiko-bundled-features/tenant-lifecycle";
|
|
87
92
|
import { createTenantSettingsFeature } from "@cosmicdrift/kumiko-bundled-features/tenant-settings";
|
|
88
93
|
import { createTierEngineFeature } from "@cosmicdrift/kumiko-bundled-features/tier-engine";
|
|
@@ -276,6 +281,11 @@ export const APP_FEATURES = [
|
|
|
276
281
|
createComplianceProfilesFeature(),
|
|
277
282
|
createComplianceProfilesOpsFeature(),
|
|
278
283
|
createTenantLifecycleFeature(),
|
|
284
|
+
// Opt-in: free accounts without activity get warning mails, then a regular deletion request.
|
|
285
|
+
createTenantInactivityFeature({
|
|
286
|
+
rule: { after: { months: 12 }, warnings: [{ days: 30 }, { days: 7 }] },
|
|
287
|
+
keepAccountUrl: "https://app.example.test/keep-account",
|
|
288
|
+
}),
|
|
279
289
|
// tenant-handover: try-before-signup ownership handover (kumiko-
|
|
280
290
|
// framework#3035). No entities/mount-options of its own — it reads
|
|
281
291
|
// OTHER entities' `transferable`/`parentRef` declarations off the
|
|
@@ -303,6 +313,14 @@ export const APP_FEATURES = [
|
|
|
303
313
|
// CMS / content
|
|
304
314
|
createLegalPagesFeature(),
|
|
305
315
|
createWaitlistFeature(),
|
|
316
|
+
createContactFeature({
|
|
317
|
+
appName: "publicstatus",
|
|
318
|
+
appVersion: "2026.10.30",
|
|
319
|
+
fields: { phone: "optional" },
|
|
320
|
+
reportCancelTarget: "admin-shell:screen:tenant-overview",
|
|
321
|
+
// Lowest values the options allow, so the e2e submit does not wait on the challenge.
|
|
322
|
+
spamProtection: { minSubmitSeconds: 0, proofOfWorkBits: 8 },
|
|
323
|
+
}),
|
|
306
324
|
createTemplateResolverFeature({
|
|
307
325
|
// One collection per ownership mode so the smoke app exercises both paths:
|
|
308
326
|
// a shared set an admin curates, and a per-user set every agent keeps.
|
|
@@ -388,7 +406,11 @@ export const APP_FEATURES = [
|
|
|
388
406
|
// admin-shell: requires tenant (auto-mounted) + audit + jobs + tier-engine,
|
|
389
407
|
// all mounted above. includeCapOverview:true exercises the my-caps /
|
|
390
408
|
// tenant-caps nav entries end-to-end — cap-overview is mounted below.
|
|
391
|
-
createAdminShellFeature({
|
|
409
|
+
createAdminShellFeature({
|
|
410
|
+
includeCapOverview: true,
|
|
411
|
+
includeDocumentDesigner: true,
|
|
412
|
+
extraPlatformPanels: contactOpenRequestsPanels(),
|
|
413
|
+
}),
|
|
392
414
|
|
|
393
415
|
// app-author-grade
|
|
394
416
|
createCustomFieldsFeature(),
|
|
@@ -6,6 +6,8 @@ Public endpoints without a logged-in user.
|
|
|
6
6
|
|
|
7
7
|
- `access: "anonymous"` on handlers that must stay public
|
|
8
8
|
- Rate limits that still bind anonymous callers (`per: "ip+handler"`)
|
|
9
|
+
- `anySignedIn: true` next to `anonymous`, so a visitor who is signed in with a role the
|
|
10
|
+
handler does not list is not turned away from a public form
|
|
9
11
|
|
|
10
12
|
## Source
|
|
11
13
|
|
|
@@ -104,7 +104,13 @@ export const anonymousAccessFeature = defineFeature("shop", (r) => {
|
|
|
104
104
|
// anonymous root handler — the runtime personal-data gate
|
|
105
105
|
// (write-origin.ts) requires this explicit opt-in, the same way the
|
|
106
106
|
// boot validator would reject an openToAll declaration missing it.
|
|
107
|
-
|
|
107
|
+
// The browser sends the session cookie along, so a signed-in visitor arrives with its
|
|
108
|
+
// roles; anySignedIn keeps the checkout open to them whatever those roles are.
|
|
109
|
+
access: {
|
|
110
|
+
roles: [...access.anonymous, "User"],
|
|
111
|
+
personalData: "public-intake",
|
|
112
|
+
anySignedIn: true,
|
|
113
|
+
},
|
|
108
114
|
rateLimit: { per: "ip+handler", limit: 30, windowSeconds: 60 },
|
|
109
115
|
});
|
|
110
116
|
|