Skip to content

Commit

Permalink
Update the Notes (#797)
Browse files Browse the repository at this point in the history
* updated styles for the Accordion component

* fixed translation

* Automatic frontend build

* created the headerAlign prop

* Automatic frontend build

* deleted unused code

* reverted the changes

* reverted the changes

* reverted the changes

* Automatic frontend build

---------

Co-authored-by: ValeriaMaltseva <[email protected]>
  • Loading branch information
ValeriaMaltseva and ValeriaMaltseva authored Dec 12, 2024
1 parent c8ba422 commit e76e1ff
Show file tree
Hide file tree
Showing 31 changed files with 2,002 additions and 1,997 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import React, { useState } from 'react'
import { useTranslation } from 'react-i18next'
import { kebabCase } from 'lodash'
import {
type Note
} from '@Pimcore/modules/element/editor/shared-tab-manager/tabs/notes-and-events/notes-and-events-api-slice-enhanced'
Expand Down Expand Up @@ -61,9 +62,12 @@ export const NotesAndEventsTabView = ({
key: string
}> = notes.map((note) => {
let showDetails = false

const formatedData: any[] = []

if (Array.isArray(note.data) && note.data.length > 0) {
showDetails = true

note.data.forEach((noteData) => {
const tempData = structuredClone(noteData)
if (typeof tempData.data === 'object') {
Expand All @@ -77,7 +81,7 @@ export const NotesAndEventsTabView = ({
}

const extra = (): React.JSX.Element => {
const type = note.type !== '' ? t(`notes-and-events.${note.type}`) : undefined
const type = note.type !== '' ? t(`notes-and-events.${kebabCase(note.type)}`) : undefined

return (
<Space
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/build/3e99ddb7-7fb9-41b8-bd7c-e43d4dd842b9/entrypoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"entrypoints": {
"core-dll": {
"css": [
"/bundles/pimcorestudioui/build/3e99ddb7-7fb9-41b8-bd7c-e43d4dd842b9/core-dll.css"
],
"js": [
"/bundles/pimcorestudioui/build/3e99ddb7-7fb9-41b8-bd7c-e43d4dd842b9/core-dll.js"
]
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"main": {
"js": [
"/bundles/pimcorestudioui/build/76dfbad7-a017-4b3d-9fe6-877c96f701be/main.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/76dfbad7-a017-4b3d-9fe6-877c96f701be/main.js": "/bundles/pimcorestudioui/build/76dfbad7-a017-4b3d-9fe6-877c96f701be/main.js"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"entrypoints": {
"vendor": {
"js": [
"/bundles/pimcorestudioui/build/7c401202-88e2-48c9-aad3-d5f12403c42a/vendor.js"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"bundles/pimcorestudioui/build/7c401202-88e2-48c9-aad3-d5f12403c42a/vendor.js": "/bundles/pimcorestudioui/build/7c401202-88e2-48c9-aad3-d5f12403c42a/vendor.js"
}

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions public/build/8650ecff-cb9e-4983-872a-49841870c678/entrypoints.json

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions translations/studio.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ notes-and-events.content: content
notes-and-events.seo: seo
notes-and-events.warning: warning
notes-and-events.notice: notice
notes-and-events.status-update: status update
notes-and-events.erp_import: erp_import
notes-and-events.no-notes-and-events-to-show: There are no notes or events to show.
tags.label: Tags
Expand Down

0 comments on commit e76e1ff

Please sign in to comment.