diff --git a/packages/backend-core/src/constants.js b/packages/backend-core/src/constants.js
index 172e66e603..e1901986b4 100644
--- a/packages/backend-core/src/constants.js
+++ b/packages/backend-core/src/constants.js
@@ -6,7 +6,7 @@ exports.UserStatus = {
exports.Cookies = {
CurrentApp: "budibase:currentapp",
Auth: "budibase:auth",
- Init: "budibase:init",
+ RETURN_URL: "budibase:returnurl",
DatasourceAuth: "budibase:datasourceauth",
OIDC_CONFIG: "budibase:oidc:config",
}
diff --git a/packages/bbui/src/SideNavigation/Item.svelte b/packages/bbui/src/SideNavigation/Item.svelte
index 30da1fa172..aa86fc02a8 100644
--- a/packages/bbui/src/SideNavigation/Item.svelte
+++ b/packages/bbui/src/SideNavigation/Item.svelte
@@ -1,6 +1,7 @@
{/if}
+ {#if badge}
+
+ {badge}
+
+ {/if}
+
{#if multilevel && $$slots.subnav}
{/if}
+
+
diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte
index 21259c4d84..a5642cf639 100644
--- a/packages/builder/src/pages/builder/portal/_layout.svelte
+++ b/packages/builder/src/pages/builder/portal/_layout.svelte
@@ -42,6 +42,7 @@
{
title: "Usage",
href: "/builder/portal/settings/usage",
+ badge: "New",
},
])
}
@@ -53,6 +54,13 @@
href: "/builder/portal/manage/users",
heading: "Manage",
},
+ isEnabled(FEATURE_FLAGS.USER_GROUPS)
+ ? {
+ title: "User Groups",
+ href: "/builder/portal/manage/groups",
+ badge: "New",
+ }
+ : undefined,
{ title: "Auth", href: "/builder/portal/manage/auth" },
{ title: "Email", href: "/builder/portal/manage/email" },
{
@@ -66,15 +74,6 @@
},
])
- if (isEnabled(FEATURE_FLAGS.USER_GROUPS)) {
- let item = {
- title: "User Groups",
- href: "/builder/portal/manage/groups",
- }
-
- menu.splice(2, 0, item)
- }
-
if (!$adminStore.cloud) {
menu = menu.concat([
{
@@ -87,6 +86,7 @@
menu = menu.concat({
title: "Upgrade",
href: "/builder/portal/settings/upgrade",
+ badge: "New",
})
}
}
@@ -106,9 +106,21 @@
{
title: "Account",
href: $adminStore.accountPortalUrl,
+ heading: "Account",
},
])
+
+ if (isEnabled(FEATURE_FLAGS.LICENSING)) {
+ menu = menu.concat([
+ {
+ title: "Upgrade",
+ href: $adminStore.accountPortalUrl + "/portal/upgrade",
+ badge: "New",
+ },
+ ])
+ }
}
+ menu = menu.filter(item => !!item)
return menu
}
@@ -159,11 +171,12 @@