Add promo notifications for AI assist (#26514)

* Add promo notifications for AI assist

* format pug

GitOrigin-RevId: 8895145e1e5dcd8e28f29bf2601a4bd21456a407
This commit is contained in:
Domagoj Kriskovic
2025-06-24 11:29:53 +02:00
committed by Copybot
parent f53a13ae1e
commit fda96b2fdf
13 changed files with 248 additions and 7 deletions

View File

@@ -145,6 +145,18 @@ describe('ProjectListController', function () {
},
}
ctx.PermissionsManager = {
promises: {
checkUserPermissions: sinon.stub().resolves(true),
},
}
ctx.SubscriptionLocator = {
promises: {
getUsersSubscription: sinon.stub().resolves({}),
},
}
vi.doMock('mongodb-legacy', () => ({
default: { ObjectId },
}))
@@ -250,6 +262,19 @@ describe('ProjectListController', function () {
default: ctx.TutorialHandler,
}))
vi.doMock(
'../../../../app/src/Features/Authorization/PermissionsManager',
() => ({
default: ctx.PermissionsManager,
})
)
vi.doMock(
'../../../../app/src/Features/Subscription/SubscriptionLocator',
() => ({
default: ctx.SubscriptionLocator,
})
)
ctx.ProjectListController = (await import(MODULE_PATH)).default
ctx.req = {