mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
UBER-537: review support in inbox (#3471)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
090348fc47
commit
d17918932b
@ -125,6 +125,18 @@ export default function buildModel (enabled: string[] = ['*'], disabled: string[
|
||||
}
|
||||
],
|
||||
[taskModel, taskId],
|
||||
[
|
||||
calendarModel,
|
||||
calendarId,
|
||||
{
|
||||
label: calendar.string.ConfigLabel,
|
||||
description: calendar.string.ConfigDescription,
|
||||
enabled: false,
|
||||
beta: true,
|
||||
icon: calendar.icon.Calendar,
|
||||
classFilter: defaultFilter
|
||||
}
|
||||
],
|
||||
[
|
||||
recruitModel,
|
||||
recruitId,
|
||||
@ -237,18 +249,6 @@ export default function buildModel (enabled: string[] = ['*'], disabled: string[
|
||||
classFilter: defaultFilter
|
||||
}
|
||||
],
|
||||
[
|
||||
calendarModel,
|
||||
calendarId,
|
||||
{
|
||||
label: calendar.string.ConfigLabel,
|
||||
description: calendar.string.ConfigDescription,
|
||||
enabled: false,
|
||||
beta: true,
|
||||
icon: calendar.icon.Calendar,
|
||||
classFilter: defaultFilter
|
||||
}
|
||||
],
|
||||
[
|
||||
bitrixModel,
|
||||
bitrixId,
|
||||
@ -284,8 +284,8 @@ export default function buildModel (enabled: string[] = ['*'], disabled: string[
|
||||
[serverTagsModel, serverTagsId],
|
||||
[serverTaskModel, serverTaskId],
|
||||
[serverTrackerModel, serverTrackerId],
|
||||
[serverRecruitModel, serverRecruitId],
|
||||
[serverCalendarModel, serverCalendarId],
|
||||
[serverRecruitModel, serverRecruitId],
|
||||
[serverGmailModel, serverGmailId],
|
||||
[serverTelegramModel, serverTelegramId],
|
||||
[serverHrModel, serverHrId],
|
||||
|
@ -72,9 +72,11 @@ export default mergeIds(recruitId, recruit, {
|
||||
ids: {
|
||||
VacancyNotificationGroup: '' as Ref<NotificationGroup>,
|
||||
CandidateNotificationGroup: '' as Ref<NotificationGroup>,
|
||||
ReviewNotificationGroup: '' as Ref<NotificationGroup>,
|
||||
ApplicationNotificationGroup: '' as Ref<NotificationGroup>,
|
||||
AssigneeNotification: '' as Ref<NotificationType>,
|
||||
ApplicationCreateNotification: '' as Ref<NotificationType>
|
||||
ApplicationCreateNotification: '' as Ref<NotificationType>,
|
||||
ReviewCreateNotification: '' as Ref<NotificationType>
|
||||
},
|
||||
component: {
|
||||
CreateApplication: '' as AnyComponent,
|
||||
|
@ -7,6 +7,8 @@ import view, { createAction } from '@hcengineering/model-view'
|
||||
import { Review } from '@hcengineering/recruit'
|
||||
import { BuildModelKey } from '@hcengineering/view'
|
||||
import recruit from './plugin'
|
||||
import notification from '@hcengineering/notification'
|
||||
import { generateClassNotificationTypes } from '@hcengineering/model-notification'
|
||||
|
||||
export const reviewTableOptions: FindOptions<Review> = {
|
||||
lookup: {
|
||||
@ -113,6 +115,36 @@ export function createReviewModel (builder: Builder): void {
|
||||
},
|
||||
recruit.viewlet.CalendarReview
|
||||
)
|
||||
|
||||
builder.createDoc(
|
||||
notification.class.NotificationGroup,
|
||||
core.space.Model,
|
||||
{
|
||||
label: recruit.string.Review,
|
||||
icon: recruit.icon.Reviews,
|
||||
objectClass: recruit.class.Review
|
||||
},
|
||||
recruit.ids.ReviewNotificationGroup
|
||||
)
|
||||
|
||||
generateClassNotificationTypes(builder, recruit.class.Review, recruit.ids.ReviewNotificationGroup, [], ['comments'])
|
||||
|
||||
builder.createDoc(
|
||||
notification.class.NotificationType,
|
||||
core.space.Model,
|
||||
{
|
||||
hidden: false,
|
||||
generated: false,
|
||||
label: recruit.string.NewReview,
|
||||
group: recruit.ids.ReviewNotificationGroup,
|
||||
txClasses: [core.class.TxCreateDoc],
|
||||
objectClass: recruit.class.Review,
|
||||
providers: {
|
||||
[notification.providers.PlatformNotification]: true
|
||||
}
|
||||
},
|
||||
recruit.ids.ReviewCreateNotification
|
||||
)
|
||||
}
|
||||
|
||||
function createTableViewlet (builder: Builder): void {
|
||||
|
@ -13,7 +13,7 @@
|
||||
"VacancyPlaceholder": "Software Engineer",
|
||||
"CreateAnApplication": "New Application",
|
||||
"NoApplicationsForTalent": "There are no applications for this talent.",
|
||||
"NoApplicationsForVacany": "There are no applications for this vacancy.",
|
||||
"NoApplicationsForVacancy": "There are no applications for this vacancy.",
|
||||
"CreateApplication": "New Application",
|
||||
"ApplicationCreateLabel": "Application",
|
||||
"SelectVacancy": "Select vacancy",
|
||||
@ -64,6 +64,7 @@
|
||||
"Reviews": "Reviews",
|
||||
"Review": "Review",
|
||||
"ReviewCreateLabel": "Review",
|
||||
"NewReview": "New Review",
|
||||
"Opinions": "Opinions",
|
||||
"Opinion": "Opinion",
|
||||
"OpinionValue": "Rating",
|
||||
|
@ -13,7 +13,7 @@
|
||||
"VacancyPlaceholder": "Разработчик",
|
||||
"CreateAnApplication": "Новый Кандидат",
|
||||
"NoApplicationsForTalent": "Нет кандидатов для данного таланта.",
|
||||
"NoApplicationsForVacany": "Нет кандидатов для данной вакансии.",
|
||||
"NoApplicationsForVacancy": "Нет кандидатов для данной вакансии.",
|
||||
"CreateApplication": "Новый Кандидат",
|
||||
"SelectVacancy": "Выбрать вакансию",
|
||||
"Talent": "Талант",
|
||||
@ -65,6 +65,7 @@
|
||||
"Reviews": "Ревью",
|
||||
"Review": "Ревью",
|
||||
"ReviewCreateLabel": "Ревью",
|
||||
"NewReview": "Новое Ревью",
|
||||
"Opinions": "Мнения",
|
||||
"Opinion": "Мнение",
|
||||
"OpinionValue": "Значение",
|
||||
|
@ -98,7 +98,7 @@
|
||||
<FileDuo size={'large'} />
|
||||
</div>
|
||||
<span class="content-dark-color">
|
||||
<Label label={recruit.string.NoApplicationsForVacany} />
|
||||
<Label label={recruit.string.NoApplicationsForVacancy} />
|
||||
</span>
|
||||
<span class="over-underline content-color" on:click={createApp}>
|
||||
<Label label={recruit.string.CreateAnApplication} />
|
||||
|
@ -40,7 +40,7 @@ export default mergeIds(recruitId, recruit, {
|
||||
CandidatesDescription: '' as IntlString,
|
||||
CreateAnApplication: '' as IntlString,
|
||||
NoApplicationsForTalent: '' as IntlString,
|
||||
NoApplicationsForVacany: '' as IntlString,
|
||||
NoApplicationsForVacancy: '' as IntlString,
|
||||
FirstName: '' as IntlString,
|
||||
LastName: '' as IntlString,
|
||||
Talents: '' as IntlString,
|
||||
@ -91,6 +91,7 @@ export default mergeIds(recruitId, recruit, {
|
||||
|
||||
Review: '' as IntlString,
|
||||
ReviewCreateLabel: '' as IntlString,
|
||||
NewReview: '' as IntlString,
|
||||
CreateReview: '' as IntlString,
|
||||
CreateReviewParams: '' as IntlString,
|
||||
Reviews: '' as IntlString,
|
||||
|
Loading…
Reference in New Issue
Block a user