Skip to content

Commit

Permalink
Feature: Event Agenda Items CRUD operations (#2062)
Browse files Browse the repository at this point in the history
* svg, tab button created in event dashboard, and translations for that

* mutation and query added

* create,preview,delete button completed

* updation fixed

* no category feature done

* dropdown btn created for regular & note

* dropdown btn deleted for regular & note, drag and drop created

* test cases, some are incomplete

* translations added

* coverage improved

* code rabbit suggestions resolved

* coverage improved for create modal

* coverage improved for update modal

* coverage improved for preview modal

* coverage improved for create and update modal

* coverage improved

* it's responsive now
  • Loading branch information
gautam-divyanshu authored Jul 5, 2024
1 parent ffb686e commit 0254bb0
Show file tree
Hide file tree
Showing 31 changed files with 3,898 additions and 1 deletion.
60 changes: 60 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"prettier": "^3.3.2",
"react": "^17.0.2",
"react-app-rewired": "^2.2.1",
"react-beautiful-dnd": "^13.1.1",
"react-bootstrap": "^2.7.4",
"react-datepicker": "^7.2.0",
"react-dom": "^17.0.2",
Expand Down Expand Up @@ -102,6 +103,7 @@
"@types/node": "^20.12.12",
"@types/node-fetch": "^2.6.10",
"@types/react": "^17.0.14",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-bootstrap": "^0.32.32",
"@types/react-datepicker": "^4.1.4",
"@types/react-dom": "^17.0.9",
Expand Down
35 changes: 35 additions & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,40 @@
"deleteAgendaCategory": "Delete Agenda Category",
"deleteAgendaCategoryMsg": "Do you want to remove this agenda category?"
},
"agendaItems": {
"agendaItemDetails": "Agenda Item Details",
"updateAgendaItem": "Update Agenda Item",
"title": "Title",
"enterTitle": "Enter Title",
"sequence": "Sequence",
"description": "Description",
"enterDescription": "Enter Description",
"category": "Agenda Category",
"attachments": "Attachments",
"attachmentLimit": "Add any image file or video file upto 10MB",
"fileSizeExceedsLimit": "File size exceeds the limit which is 10MB",
"urls": "URLs",
"url": "add link to URL",
"enterUrl": "https://example.com",
"invalidUrl": "Please enter a valid URL",
"link": "Link",
"createdBy": "Created By",
"regular": "Regular",
"note": "Note",
"duration": "Duration",
"enterDuration": "mm:ss",
"options": "Options",
"createAgendaItem": "Create Agenda Item",
"noAgendaItems": "No Agenda Items",
"selectAgendaItemCategory": "Select an agenda item category",
"update": "Update",
"delete": "Delete",
"agendaItemCreated": "Agenda Item created successfully",
"agendaItemUpdated": "Agenda Item updated successfully",
"agendaItemDeleted": "Agenda Item deleted successfully",
"deleteAgendaItem": "Delete Agenda Item",
"deleteAgendaItemMsg": "Do you want to remove this agenda item?"
},
"eventListCard": {
"deleteEvent": "Delete Event",
"deleteEventMsg": "Do you want to remove this event?",
Expand Down Expand Up @@ -482,6 +516,7 @@
"dashboard": "Dashboard",
"registrants": "Registrants",
"eventActions": "Event Actions",
"eventAgendas": "Event Agendas",
"eventStats": "Event Statistics",
"to": "TO"
},
Expand Down
35 changes: 35 additions & 0 deletions public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,40 @@
"deleteAgendaCategory": "Supprimer la catégorie d'ordre du jour",
"deleteAgendaCategoryMsg": "Souhaitez-vous supprimer cette catégorie d'ordre du jour ?"
},
"agendaItems": {
"agendaItemDetails": "Détails du point de l'ordre du jour",
"updateAgendaItem": "Mettre à jour le point de l'ordre du jour",
"title": "Titre",
"enterTitle": "Entrer le titre",
"sequence": "Ordre",
"description": "Description",
"enterDescription": "Entrer la description",
"category": "Catégorie de l'ordre du jour",
"attachments": "Pièces jointes",
"attachmentLimit": "Ajouter un fichier image ou vidéo jusqu'à 10 Mo",
"fileSizeExceedsLimit": "La taille du fichier dépasse la limite de 10 Mo",
"urls": "URL",
"url": "Ajouter un lien vers l'URL",
"enterUrl": "https://example.com",
"invalidUrl": "Veuillez saisir une URL valide",
"link": "Lien",
"createdBy": "Créé par",
"regular": "Régulier",
"note": "Note",
"duration": "Durée",
"enterDuration": "mm:ss",
"options": "Options",
"createAgendaItem": "Créer un point à l'ordre du jour",
"noAgendaItems": "Aucun point à l'ordre du jour",
"selectAgendaItemCategory": "Sélectionner une catégorie de point de l'ordre du jour",
"update": "Mettre à jour",
"delete": "Supprimer",
"agendaItemCreated": "Point de l'ordre du jour créé avec succès",
"agendaItemUpdated": "Point de l'ordre du jour mis à jour avec succès",
"agendaItemDeleted": "Point de l'ordre du jour supprimé avec succès",
"deleteAgendaItem": "Supprimer le point de l'ordre du jour",
"deleteAgendaItemMsg": "Voulez-vous supprimer ce point de l'ordre du jour ?"
},
"eventListCard": {
"deleteEvent": "Supprimer l'événement",
"deleteEventMsg": "Voulez-vous supprimer cet événement ?",
Expand Down Expand Up @@ -487,6 +521,7 @@
"dashboard": "Tableau de bord",
"registrants": "Inscrits",
"eventActions": "Actions d'événement",
"eventAgendas": "Ordres du jour des événements",
"eventStats": "Statistiques des événements",
"to": "À"
},
Expand Down
35 changes: 35 additions & 0 deletions public/locales/hi/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,40 @@
"deleteAgendaCategory": "एजेंडा श्रेणी हटाएं",
"deleteAgendaCategoryMsg": "क्या आप इस एजेंडा श्रेणी को हटाना चाहते हैं?"
},
"agendaItems": {
"agendaItemDetails": "एजेंडा आइटम विवरण",
"updateAgendaItem": "एजेंडा आइटम अपडेट करें",
"title": "शीर्षक",
"enterTitle": "शीर्षक दर्ज करें",
"sequence": "क्रम",
"description": "विवरण",
"enterDescription": "विवरण दर्ज करें",
"category": "एजेंडा श्रेणी",
"attachments": "संलग्नक",
"attachmentLimit": "10MB तक कोई भी छवि फ़ाइल या वीडियो फ़ाइल जोड़ें",
"fileSizeExceedsLimit": "फ़ाइल का आकार सीमा 10MB से अधिक है",
"urls": "URL",
"url": "URL में लिंक जोड़ें",
"enterUrl": "https://example.com",
"invalidUrl": "कृपया एक वैध URL दर्ज करें",
"link": "लिंक",
"createdBy": "बनाया गया द्वारा",
"regular": "नियमित",
"note": "नोट",
"duration": "अवधि",
"enterDuration": "मिमी:से",
"options": "विकल्प",
"createAgendaItem": "एजेंडा आइटम बनाएं",
"noAgendaItems": "कोई एजेंडा आइटम नहीं",
"selectAgendaItemCategory": "एजेंडा आइटम श्रेणी चुनें",
"update": "अपडेट करें",
"delete": "हटाएं",
"agendaItemCreated": "एजेंडा आइटम सफलतापूर्वक बनाया गया",
"agendaItemUpdated": "एजेंडा आइटम सफलतापूर्वक अपडेट किया गया",
"agendaItemDeleted": "एजेंडा आइटम सफलतापूर्वक हटा दिया गया",
"deleteAgendaItem": "एजेंडा आइटम हटाएं",
"deleteAgendaItemMsg": "क्या आप इस एजेंडा आइटम को हटाना चाहते हैं?"
},
"eventListCard": {
"deleteEvent": "ईवेंट हटाएँ",
"deleteEventMsg": "क्या आप इस ईवेंट को हटाना चाहते हैं?",
Expand Down Expand Up @@ -487,6 +521,7 @@
"dashboard": "डैशबोर्ड",
"registrants": "कुलसचिव",
"eventActions": "घटना क्रियाएँ",
"eventAgendas": "इवेंट एजेंडा",
"eventStats": "घटना सांख्यिकी",
"to": "को"
},
Expand Down
35 changes: 35 additions & 0 deletions public/locales/sp/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,40 @@
"deleteAgendaCategory": "Eliminar categoría de la agenda",
"deleteAgendaCategoryMsg": "¿Desea eliminar esta categoría de la agenda?"
},
"agendaItems": {
"agendaItemDetails": "Detalles del punto del orden del día",
"updateAgendaItem": "Actualizar punto del orden del día",
"title": "Título",
"enterTitle": "Ingresar título",
"sequence": "Secuencia",
"description": "Descripción",
"enterDescription": "Ingresar descripción",
"category": "Categoría del orden del día",
"attachments": "Archivos adjuntos",
"attachmentLimit": "Agregar cualquier archivo de imagen o video hasta 10MB",
"fileSizeExceedsLimit": "El tamaño del archivo excede el límite de 10MB",
"urls": "URLs",
"url": "Agregar enlace a URL",
"enterUrl": "https://example.com",
"invalidUrl": "Ingrese una URL válida",
"link": "Enlace",
"createdBy": "Creado por",
"regular": "Regular",
"note": "Nota",
"duration": "Duración",
"enterDuration": "mm:ss",
"options": "Opciones",
"createAgendaItem": "Crear punto del orden del día",
"noAgendaItems": "No hay puntos del orden del día",
"selectAgendaItemCategory": "Seleccionar una categoría de punto del orden del día",
"update": "Actualizar",
"delete": "Eliminar",
"agendaItemCreated": "Punto del orden del día creado exitosamente",
"agendaItemUpdated": "Punto del orden del día actualizado exitosamente",
"agendaItemDeleted": "Punto del orden del día eliminado exitosamente",
"deleteAgendaItem": "Eliminar punto del orden del día",
"deleteAgendaItemMsg": "¿Desea eliminar este punto del orden del día?"
},
"eventListCard": {
"location": "Lugar del evento",
"deleteEvent": "Eliminar evento",
Expand Down Expand Up @@ -636,6 +670,7 @@
"dashboard": "Tablero",
"registrants": "Inscritos",
"eventActions": "Acciones del evento",
"eventAgendas": "Agendas de eventos",
"eventStats": "Estadísticas del evento",
"to": "A"
},
Expand Down
35 changes: 35 additions & 0 deletions public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,40 @@
"deleteAgendaCategory": "删除议程类别",
"deleteAgendaCategoryMsg": "是否要删除此议程类别?"
},
"agendaItems": {
"agendaItemDetails": "议程项目详细信息",
"updateAgendaItem": "更新议程项目",
"title": "标题",
"enterTitle": "输入标题",
"sequence": "顺序",
"description": "描述",
"enterDescription": "输入描述",
"category": "议程类别",
"attachments": "附件",
"attachmentLimit": "添加任何图像文件或视频文件,最大 10MB",
"fileSizeExceedsLimit": "文件大小超过 10MB 的限制",
"urls": "网址",
"url": "添加链接到网址",
"enterUrl": "https://example.com",
"invalidUrl": "请输入有效的网址",
"link": "链接",
"createdBy": "创建人",
"regular": "常规",
"note": "注意",
"duration": "持续时间",
"enterDuration": "分:秒",
"options": "选项",
"createAgendaItem": "创建议程项目",
"noAgendaItems": "没有议程项目",
"selectAgendaItemCategory": "选择议程项目类别",
"update": "更新",
"delete": "删除",
"agendaItemCreated": "议程项目已成功创建",
"agendaItemUpdated": "议程项目已成功更新",
"agendaItemDeleted": "议程项目已成功删除",
"deleteAgendaItem": "删除议程项目",
"deleteAgendaItemMsg": "您要删除此议程项目吗?"
},
"eventListCard": {
"deleteEvent": "删除事件",
"deleteEventMsg": "您想删除此事件吗?",
Expand Down Expand Up @@ -487,6 +521,7 @@
"dashboard": "仪表板",
"registrants": "注册者",
"eventActions": "事件动作",
"eventAgendas": "活动议程",
"eventStats": "事件统计",
"to": ""
},
Expand Down
Loading

0 comments on commit 0254bb0

Please sign in to comment.