Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #1163

Merged
merged 34 commits into from
Jun 18, 2024
Merged

Develop #1163

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
8531f30
fix: made admin only restriction avaliable for non
May 30, 2024
41b0808
feat: added translations for image gallery in calendar settings
AbhishekPAnil Jun 3, 2024
984e391
feat: changes image settings fields in calendar settings according to…
AbhishekPAnil Jun 3, 2024
f0bf5a8
feat: image gallery boolean field and translation added
AbhishekPAnil Jun 3, 2024
83d8a33
feat: added image gallery api integration support in calendar settings
AbhishekPAnil Jun 3, 2024
e544a42
refactor: removed comments
AbhishekPAnil Jun 3, 2024
ac01821
feat: add multiple image crop component
AbhishekPAnil Jun 6, 2024
dcab022
feat: resolved issue with image uploading showing loading
AbhishekPAnil Jun 7, 2024
d13a04b
feat: image object to array changes added
AbhishekPAnil Jun 7, 2024
d2c2e96
feat: added read only for image gallery in read only pages
AbhishekPAnil Jun 7, 2024
2672414
feat: added css for upload button
AbhishekPAnil Jun 10, 2024
8222222
feat : corrected crop value prop destructe
AbhishekPAnil Jun 10, 2024
43952bf
feat: add translation for main and additional images
AbhishekPAnil Jun 12, 2024
135eb94
feat: add grabby hand cursor
AbhishekPAnil Jun 12, 2024
9bcdcd8
feat: removed image crop for image gallery
AbhishekPAnil Jun 12, 2024
a5ca75f
feat: tested the different cases for image upload in event form
AbhishekPAnil Jun 12, 2024
7f799f0
feat: image upload complete for person form
AbhishekPAnil Jun 12, 2024
0ce3fb5
feat: image gallery complete in places form
AbhishekPAnil Jun 12, 2024
68c81f2
feat: add api integration for logo and image gallery for orgs
AbhishekPAnil Jun 13, 2024
d3acf28
Merge branch 'develop' of github.com:culturecreates/footlight-app int…
AbhishekPAnil Jun 13, 2024
a912204
chore: change staging env server address to test server
AbhishekPAnil Jun 13, 2024
3d04c86
Merge branch 'develop' of github.com:culturecreates/footlight-app int…
Jun 13, 2024
479ab2d
fix: fixed issue with interchanged dynamic and nan dynamic keyword
Jun 13, 2024
af21d7b
fix: fixed navigation after creating taxonomy
Jun 13, 2024
98a72f6
fix: changed navigation after update
Jun 13, 2024
37458e0
feat: changed entityName to entityNames
AbhishekPAnil Jun 13, 2024
1b6ee5f
Merge branch 'develop' of github.com:culturecreates/footlight-app int…
Jun 13, 2024
fd6c78e
fix: multiple image null point check add
AbhishekPAnil Jun 13, 2024
3c75a62
fix: fixed image not displayed in data centric fields
AbhishekPAnil Jun 13, 2024
318fbc9
fix: image gallery not showing in data centric form
AbhishekPAnil Jun 13, 2024
209d39d
fix: image gallery not showing in data centric form
AbhishekPAnil Jun 13, 2024
879c9b6
Merge pull request #1131 from culturecreates/bugfix/issue-1129
AbhishekPAnil Jun 18, 2024
ae26eab
chore: changed env staging closes #1033
AbhishekPAnil Jun 18, 2024
7849134
Merge pull request #1159 from culturecreates/feature/issue-1033
AbhishekPAnil Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"compressorjs": "^1.1.1",
"env-cmd": "^10.1.0",
"i18next": "^22.0.5",
"immutability-helper": "^3.1.1",
"js-cookie": "^3.0.1",
"localforage": "^1.10.0",
"moment": "^2.29.4",
Expand All @@ -20,6 +21,8 @@
"rc-year-calendar": "^1.0.2",
"react": "^18.2.0",
"react-colorful": "^5.6.1",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.2.0",
"react-easy-crop": "^5.0.0",
"react-i18next": "^12.0.0",
Expand Down
42 changes: 37 additions & 5 deletions src/components/Accordion/CalendarAccordion/CalendarAccordion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,24 @@ function CalendarAccordion(props) {
.unwrap()
.then((response) => {
if (type == 'organizers') {
setOrganizersList(treeEntitiesOption(response, user, calendarContentLanguage, sourceOptions.CMS));
setOrganizersList(
treeEntitiesOption(
response?.map((v) => ({ ...v, image: v?.image?.find((image) => image?.isMain) })),
user,
calendarContentLanguage,
sourceOptions.CMS,
),
);
}
if (type == 'people') {
setPeopleList(treeEntitiesOption(response, user, calendarContentLanguage, sourceOptions.CMS));
setPeopleList(
treeEntitiesOption(
response?.map((v) => ({ ...v, image: v?.image?.find((image) => image?.isMain) })),
user,
calendarContentLanguage,
sourceOptions.CMS,
),
);
}
})
.catch((error) => console.log(error));
Expand All @@ -111,13 +125,27 @@ function CalendarAccordion(props) {

useEffect(() => {
if (initialEntities && currentCalendarData) {
setOrganizersList(treeEntitiesOption(initialEntities, user, calendarContentLanguage, sourceOptions.CMS));
setOrganizersList(
treeEntitiesOption(
initialEntities?.map((v) => ({ ...v, image: v?.image?.find((image) => image?.isMain) })),
user,
calendarContentLanguage,
sourceOptions.CMS,
),
);
}
}, [initialEntityLoading, currentCalendarData]);

useEffect(() => {
if (initialPersonEntities && currentCalendarData) {
setPeopleList(treeEntitiesOption(initialPersonEntities, user, calendarContentLanguage, sourceOptions.CMS));
setPeopleList(
treeEntitiesOption(
initialPersonEntities?.map((v) => ({ ...v, image: v?.image?.find((image) => image?.isMain) })),
user,
calendarContentLanguage,
sourceOptions.CMS,
),
);
}
}, [initialPersonEntityLoading, currentCalendarData]);

Expand Down Expand Up @@ -170,7 +198,11 @@ function CalendarAccordion(props) {
if (response?.data?.length > 0)
setSelectedPeople(
treeEntitiesOption(
response?.data?.map((v) => ({ ...v, type: entitiesClass.people })),
response?.data?.map((v) => ({
...v,
type: entitiesClass.people,
image: v?.image?.find((image) => image?.isMain),
})),
user,
calendarContentLanguage,
sourceOptions.CMS,
Expand Down
Loading
Loading