Skip to content

Feat(project-settings): add manual Events Grouping page in project settings #677

Merged
e11sy merged 31 commits intomasterfrom
event-manual-grouping
Mar 21, 2025
Merged

Feat(project-settings): add manual Events Grouping page in project settings #677
e11sy merged 31 commits intomasterfrom
event-manual-grouping

Conversation

@e11sy
Copy link
Copy Markdown
Member

@e11sy e11sy commented Mar 16, 2025

Features

image - new page in project settings - new: `EventGroupintPattern` types - new: `EventGroupingPattern` mutations (add, update, remove) - new: `EventGroupingPattern` api call methods (add, update, remove) - update: add `eventGroupingPattern`: fields for `workspaceWithProjects` and `projects` graphQL queries - update: i18n dictionaries for Event Grouping page

Note

this is part of global work on Event Manual Grouping feature, check related prs
API: codex-team/hawk.api.nodejs#478
GROUPER: codex-team/hawk.workers#382
TYPES: codex-team/hawk.types#46 - already merged

Comment thread src/api/workspaces/queries.ts Outdated
...ProjectNotificationsRule
}
eventGroupingPatterns {
...EventGroupingPattern
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
...EventGroupingPattern
id
pattern

Comment thread src/api/projects/index.js Outdated
* @returns {Promise<ProjectEventGroupingPattern>} - created pattern
*/
export async function addEventGroupingPattern(payload) {
const response = (await api.callOld(MUTATION_CREATE_PROJECT_PATTERN, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use .call() instead of deprecated .callOld()

Comment thread src/api/projects/queries.js Outdated

// language=GraphQL
export const MUTATION_CREATE_PROJECT_PATTERN = `
mutation ( $input: CreateProjectEventGroupingPatternInput! ){
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

give names to mutation

<input
v-model="createPatternForm"
class="input section__input"
:placeholder="$t('projects.settings.patterns.createPattern.placeholder')"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can hardcore placeholder, it should not be translated since it it the error title example

/**
* If new pattern is empty, then we should remove it
*/
if (pattern.pattern === '') {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (pattern.pattern === '') {
if (pattern.pattern.trim() === '') {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strange indentation

Comment thread src/components/project/settings/EventGroupingPattern.vue Outdated
Comment thread src/components/project/settings/EventGroupingPattern.vue Outdated
Comment thread src/components/project/settings/EventGroupingPattern.vue Outdated
Comment thread src/components/project/settings/EventGroupingPattern.vue Outdated
Comment thread src/components/project/settings/EventGroupingPattern.vue
Comment thread src/components/project/settings/EventGroupingPattern.vue
Comment thread src/components/project/settings/EventGroupingPattern.vue
@e11sy e11sy merged commit 6c5cc3a into master Mar 21, 2025
@e11sy e11sy deleted the event-manual-grouping branch March 21, 2025 15:28
@e11sy e11sy restored the event-manual-grouping branch March 30, 2025 17:08
@e11sy e11sy deleted the event-manual-grouping branch March 30, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants