Skip to content

Commit c98cf2d

Browse files
authored
Merge pull request #821 from karrioapi/advanced-admin
[release] karrio 2025.5
2 parents 4d1ec74 + cfb2bf0 commit c98cf2d

File tree

452 files changed

+53630
-26464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+53630
-26464
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions

apps/api/karrio/server/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025.5rc14
1+
2025.5rc15

apps/api/karrio/server/settings/base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@
138138
"app": "karrio.server.pricing",
139139
"module": "karrio.server.pricing",
140140
},
141+
{
142+
"app": "karrio.server.analytics",
143+
"module": "karrio.server.analytics",
144+
},
141145
{
142146
"app": "karrio.server.apps",
143147
"module": "karrio.server.apps",
@@ -192,6 +196,9 @@
192196
SHIPPING_RULES = (
193197
importlib.util.find_spec("karrio.server.automation") is not None # type:ignore
194198
)
199+
ADVANCED_ANALYTICS = (
200+
importlib.util.find_spec("karrio.server.analytics") is not None # type:ignore
201+
) and config("ADVANCED_ANALYTICS", default=(True if DEBUG else False), cast=bool)
195202

196203

197204
# Feature flags
@@ -209,6 +216,7 @@
209216
("PERSIST_SDK_TRACING", bool),
210217
("WORKFLOW_MANAGEMENT", bool),
211218
("SHIPPING_RULES", bool),
219+
("ADVANCED_ANALYTICS", bool),
212220
]
213221

214222

apps/api/karrio/server/settings/constance.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@
129129
if importlib.util.find_spec("karrio.server.automation") is not None
130130
else None
131131
),
132+
"ADVANCED_ANALYTICS": (
133+
(
134+
base.ADVANCED_ANALYTICS,
135+
"Advanced analytics",
136+
bool,
137+
)
138+
if importlib.util.find_spec("karrio.server.analytics") is not None
139+
else None
140+
),
132141
"PERSIST_SDK_TRACING": (
133142
base.PERSIST_SDK_TRACING,
134143
"Persist SDK tracing",

apps/api/karrio/server/settings/email.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ def user_verified_callback(user):
3232

3333

3434
EMAIL_VERIFIED_CALLBACK = user_verified_callback
35+
36+
# Compatibility with django-email-verification expected settings
37+
# Some versions expect EMAIL_MAIL_CALLBACK to be present.
38+
# Reuse the same verified callback to activate the user when appropriate.
39+
EMAIL_MAIL_CALLBACK = user_verified_callback

apps/dashboard/instrumentation-client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ Sentry.init({
2222
return scope;
2323
},
2424
});
25+
26+
// Export the required hook for Sentry navigation instrumentation
27+
export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;

apps/dashboard/next.config.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { withSentryConfig } from "@sentry/nextjs";
2-
import path from "path";
31
import CopyWebpackPlugin from "copy-webpack-plugin";
4-
import { fileURLToPath } from "url";
2+
import { withSentryConfig } from "@sentry/nextjs";
53
import { readdirSync, statSync } from "fs";
4+
import { fileURLToPath } from "url";
5+
import path from "path";
66

77
const __dirname = path.dirname(fileURLToPath(import.meta.url));
88
const BASE_PATH = process.env.NEXT_PUBLIC_BASE_PATH || "";
@@ -78,7 +78,6 @@ const nextConfig = {
7878
"@karrio/ui",
7979
"@karrio/lib",
8080
"@karrio/types",
81-
"@karrio/trpc",
8281
"@karrio/admin",
8382
"@karrio/developers",
8483
"@karrio/app-store",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { dynamicMetadata } from "@karrio/core/components/metadata";
2+
export { default } from "@karrio/core/modules/Settings";
3+
export const generateMetadata = dynamicMetadata("Settings");
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { dynamicMetadata } from "@karrio/core/components/metadata";
2+
export { default } from "@karrio/core/modules/Shippers/details";
3+
export const generateMetadata = dynamicMetadata("Shippers Details");
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { dynamicMetadata } from "@karrio/core/components/metadata";
2+
export { default } from "@karrio/core/modules/Shippers";
3+
export const generateMetadata = dynamicMetadata("Shippers Accounts");

0 commit comments

Comments
 (0)