feat(help): finish setup for help/home-page menu

This commit is contained in:
Matthieu Haineault 2025-12-19 08:53:19 -05:00
parent 4f0f5ae30f
commit 4c88a72a2d
6 changed files with 21 additions and 8 deletions

View File

@ -300,6 +300,20 @@
]
}
},
"/schedule-presets/apply-day-preset": {
"post": {
"operationId": "SchedulePresetsController_applyPresetToDay",
"parameters": [],
"responses": {
"201": {
"description": ""
}
},
"tags": [
"SchedulePresets"
]
}
},
"/expense/create": {
"post": {
"operationId": "ExpenseController_create",

View File

@ -1,6 +1,6 @@
import { Controller, Get } from "@nestjs/common";
import { ModuleAccessAllowed } from "src/common/decorators/modules-guard.decorators";
import { HomePageService } from "src/identity-and-account/home-page/home-page.service";
import { HomePageService } from "src/identity-and-account/help/home-page.service";
import { Modules as ModulesEnum } from ".prisma/client";
import { Access } from "src/common/decorators/module-access.decorators";

View File

@ -1,7 +1,7 @@
import { Module } from "@nestjs/common";
import { EmailToIdResolver } from "src/common/mappers/email-id.mapper";
import { HomePageController } from "src/identity-and-account/home-page/home-page.controller";
import { HomePageService } from "src/identity-and-account/home-page/home-page.service";
import { HomePageController } from "src/identity-and-account/help/home-page.controller";
import { HomePageService } from "src/identity-and-account/help/home-page.service";
@Module({
controllers: [HomePageController],

View File

@ -30,7 +30,7 @@ export class HomePageService {
const help_message: string[] = [];
if (module_access.dashboard) help_message.push('dashboard');
if (module_access.personal_profile) help_message.push('personnal_profile');
if (module_access.personal_profile) help_message.push('personal_profile');
if (module_access.timesheets) help_message.push('timesheets');
if (module_access.employee_list) help_message.push('employee_list');
if (module_access.employee_management) help_message.push('employee_management');

View File

@ -12,11 +12,11 @@ import { AccessGetService } from "src/identity-and-account/user-module-access/se
import { AccessUpdateService } from "src/identity-and-account/user-module-access/services/module-access-update.service";
import { UsersService } from "src/identity-and-account/users-management/services/users.service";
import { UsersModule } from "src/identity-and-account/users-management/users.module";
import { HomePageModule } from "src/identity-and-account/home-page/home-page.module";
import { HomePageModule } from "src/identity-and-account/help/home-page.module";
import { EmployeesCreateService } from "src/identity-and-account/employees/services/employees-create.service";
import { EmployeesUpdateService } from "src/identity-and-account/employees/services/employees-update.service";
import { HomePageController } from "src/identity-and-account/home-page/home-page.controller";
import { HomePageService } from "src/identity-and-account/home-page/home-page.service";
import { HomePageController } from "src/identity-and-account/help/home-page.controller";
import { HomePageService } from "src/identity-and-account/help/home-page.service";
@Module({
imports: [

View File

@ -115,7 +115,6 @@ export class SchedulePresetsApplyService {
await this.createShiftFromPreset(shift, toDateFromString(date), timesheet_id);
}
// await this.shiftService.createShift(employee_id.data, shift);
return { success: true, data: true };
}