From 7186cb0ab00a106be0fb80610fdd9f2d71126657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Thu, 20 Aug 2026 15:01:10 +0300 Subject: [PATCH] -> --- .../ListFormSeeder_Administration.cs | 14 +-- .../host/custom/DynamicEntityComponent.json | 4 +- configs/seeds/host/custom/NewComponent.json | 2 +- ui/src/components/codeLayout/StyleModal.tsx | 7 +- .../importManager/FileUploadArea.tsx | 4 +- .../importManager/ImportPreview.tsx | 7 +- ui/src/components/orders/PaymentForm.tsx | 22 +++-- ui/src/components/orders/ProductCatalog.tsx | 4 +- ui/src/components/orders/TenantForm.tsx | 31 ++++-- .../scriptBuilder/ScriptBuilderDialog.tsx | 13 ++- .../components/template/MessengerWidget.tsx | 3 +- ui/src/components/template/Search.tsx | 4 +- ui/src/components/ui/Input/Input.tsx | 4 +- .../visualDesigner/VisualCanvas.tsx | 9 +- .../views/admin/files/components/FileItem.tsx | 7 +- .../files/components/FileUploadModal.tsx | 4 +- ui/src/views/admin/hr/OrgChart.tsx | 4 +- .../edit/form-fields/FormFieldTabLookup.tsx | 3 +- .../EditorOptionsBuilderDialog.tsx | 19 ++-- .../editor-options/OptionField.tsx | 15 ++- .../listForm/wizard/WizardFileManager.tsx | 3 +- .../listForm/wizard/WizardImportDialog.tsx | 4 +- .../wizard/WizardStepDataSettings.tsx | 3 +- .../listForm/wizard/WizardStepFields.tsx | 34 ++++--- .../listForm/workflow/WorkflowCriteria.tsx | 6 +- ui/src/views/admin/videoroom/ChatPanel.tsx | 4 +- .../views/admin/videoroom/DocumentsPanel.tsx | 4 +- ui/src/views/admin/videoroom/RoomList.tsx | 30 ++++-- ui/src/views/ai/Assistant.tsx | 4 +- .../views/developerKit/ComponentManager.tsx | 4 +- .../views/developerKit/CrudEndpointDialog.tsx | 4 +- .../developerKit/DynamicServiceEditor.tsx | 16 +++- .../developerKit/DynamicServiceManager.tsx | 4 +- .../views/developerKit/SqlObjectExplorer.tsx | 7 +- ui/src/views/developerKit/SqlQueryManager.tsx | 10 +- ui/src/views/developerKit/SqlResultsGrid.tsx | 4 +- .../developerKit/SqlTableDesignerDialog.tsx | 28 ++++-- .../developerKit/SqlViewDesignerDialog.tsx | 22 +++-- .../developerKit/VisualComponentDesigner.tsx | 94 +++++++++++++------ .../sqlViewDesigner/CriteriaGrid.tsx | 22 +++-- .../sqlViewDesigner/DiagramPane.tsx | 7 +- .../editors/ImageUploadEditorComponent.tsx | 4 +- ui/src/views/forum/forum/SearchModal.tsx | 4 +- .../views/intranet/SocialWall/CreatePost.tsx | 7 +- .../intranet/SocialWall/MediaManager.tsx | 7 +- ui/src/views/intranet/SocialWall/PostItem.tsx | 4 +- ui/src/views/intranet/widgets/SurveyModal.tsx | 10 +- ui/src/views/list/Chart.tsx | 4 +- ui/src/views/list/GridExtraFilterToolbar.tsx | 4 +- ui/src/views/list/TodoBoard.tsx | 25 +++-- .../editors/ImageUploadEditorComponent.tsx | 4 +- ui/src/views/public/Blog.tsx | 7 +- ui/src/views/public/Demo.tsx | 19 ++-- .../views/public/designer/DesignerDrawer.tsx | 3 +- ui/src/views/shared/MenuAddDialog.tsx | 30 ++++-- 55 files changed, 429 insertions(+), 197 deletions(-) diff --git a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs index c19335d9..a53edcdc 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs +++ b/api/src/Sozsoft.Platform.DbMigrator/Migrations/ListFormSeeder_Administration.cs @@ -5980,7 +5980,7 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep new() { FieldName = "RequestDate", FieldDbType = DbType.Date, Value = "@NOW", CustomValueType = FieldCustomValueTypeEnum.CustomKey }, new() { FieldName = "Importance", FieldDbType = DbType.String, Value = "Low", CustomValueType = FieldCustomValueTypeEnum.Value }, new() { FieldName = "Urgency", FieldDbType = DbType.String, Value = "Low", CustomValueType = FieldCustomValueTypeEnum.Value }, - new() { FieldName = "Status", FieldDbType = DbType.String, Value = "backlog", CustomValueType = FieldCustomValueTypeEnum.Value }, + new() { FieldName = "Status", FieldDbType = DbType.String, Value = "Backlog", CustomValueType = FieldCustomValueTypeEnum.Value }, }) }); @@ -6082,12 +6082,12 @@ public class ListFormSeeder_Administration : IDataSeedContributor, ITransientDep DisplayExpr = "name", ValueExpr = "key", LookupQuery = JsonSerializer.Serialize(new LookupDataDto[] { - new () { Key="backlog", Name="App.StaticLookup.Backlog" }, - new () { Key="ready_to_start", Name="App.StaticLookup.ReadyToStart" }, - new () { Key="in_progress", Name="App.StaticLookup.InProgress" }, - new () { Key="code_review", Name="App.StaticLookup.CodeReview" }, - new () { Key="testing", Name="App.StaticLookup.Testing" }, - new () { Key="staging", Name="App.StaticLookup.Staging" } + new () { Key="Backlog", Name="App.StaticLookup.Backlog" }, + new () { Key="Ready to Start", Name="App.StaticLookup.ReadyToStart" }, + new () { Key="In Progress", Name="App.StaticLookup.InProgress" }, + new () { Key="Code Review", Name="App.StaticLookup.CodeReview" }, + new () { Key="Testing", Name="App.StaticLookup.Testing" }, + new () { Key="Staging", Name="App.StaticLookup.Staging" } }), }), ColSpan = 1, diff --git a/configs/seeds/host/custom/DynamicEntityComponent.json b/configs/seeds/host/custom/DynamicEntityComponent.json index ee76c0c9..6dc2ec5f 100644 --- a/configs/seeds/host/custom/DynamicEntityComponent.json +++ b/configs/seeds/host/custom/DynamicEntityComponent.json @@ -1,10 +1,10 @@ { - "GeneratedAt": "2026-08-19T13:14:10.1944181Z", + "GeneratedAt": "2026-08-20T11:16:38.2313189Z", "CustomComponents": [ { "Name": "DynamicEntityComponent", "RoutePath": "/admin/dynamic-entity", - "Code": "import React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\n\ninterface DynamicEntityComponentProps {\n title: string;\n}\n\nconst api = axios.create({\n baseURL: \"https://api.sozsoft.com\",\n});\n\nconst DynamicEntityComponent: React.FC = ({ title }) => {\n const [data, setData] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true);\n setError(null);\n\n try {\n const res = await api.get(`/api/app/crudendpoint/${title}`);\n const raw = Array.isArray(res.data) ? res.data : res.data?.items ?? [];\n\n const filtered = raw.map((item: any) => ({\n id: item.Id ?? item.id,\n name: item.Name ?? item.name,\n }));\n\n setData(filtered);\n } catch (err: any) {\n setError(err.message || \"Failed to fetch data\");\n } finally {\n setLoading(false);\n }\n };\n\n if (title) fetchData();\n }, [title]);\n\n if (loading) return
Loading...
;\n if (error) return
Error: {error}
;\n if (!data.length) return
No records found
;\n\n const headers = [\"id\", \"name\", \"actions\"];\n\n return (\n
\n \n \n \n {headers.map((key) => (\n \n {key === \"actions\" ? \"Actions\" : key}\n \n ))}\n \n \n \n {data.map((item, rowIndex) => (\n \n \n \n \n \n ))}\n \n
\n {item.id}\n \n {item.name}\n \n alert(item.name)}\n shape=\"round\"\n size=\"xs\"\n variant=\"solid\"\n id=\"c_mrix4c1a_qrybhk\"\n >\n Show Name\n \n
\n
\n );\n};\n\nexport default DynamicEntityComponent;", + "Code": "import React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\n\ninterface DynamicEntityComponentProps {\n title: string;\n}\n\nconst api = axios.create({\n baseURL: \"https://localhost:44344/\",\n});\n\nconst DynamicEntityComponent: React.FC = ({ title }) => {\n const [data, setData] = useState>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n\n useEffect(() => {\n const fetchData = async () => {\n setLoading(true);\n setError(null);\n\n try {\n const res = await api.get(`/api/app/crudendpoint/${title}`);\n const raw = Array.isArray(res.data) ? res.data : res.data?.items ?? [];\n\n const filtered = raw.map((item: any) => ({\n id: item.Id ?? item.id,\n name: item.Name ?? item.name,\n }));\n\n setData(filtered);\n } catch (err: any) {\n setError(err.message || \"Failed to fetch data\");\n } finally {\n setLoading(false);\n }\n };\n\n if (title) fetchData();\n }, [title]);\n\n if (loading) return
Loading...
;\n if (error) return
Error: {error}
;\n if (!data.length) return
No records found
;\n\n const headers = [\"id\", \"name\", \"actions\"];\n\n return (\n
\n \n \n \n {headers.map((key) => (\n \n {key === \"actions\" ? \"Actions\" : key}\n \n ))}\n \n \n \n {data.map((item, rowIndex) => (\n \n \n \n \n \n ))}\n \n
\n {item.id}\n \n {item.name}\n \n alert(item.name)}\n shape=\"round\"\n size=\"xs\"\n variant=\"solid\"\n id=\"c_mrix4c1a_qrybhk\"\n >\n Show Name\n \n
\n
\n );\n};\n\nexport default DynamicEntityComponent;", "Props": null, "Description": null, "IsActive": true, diff --git a/configs/seeds/host/custom/NewComponent.json b/configs/seeds/host/custom/NewComponent.json index c48c9718..0c4bbf1b 100644 --- a/configs/seeds/host/custom/NewComponent.json +++ b/configs/seeds/host/custom/NewComponent.json @@ -1,5 +1,5 @@ { - "GeneratedAt": "2026-08-20T07:44:44.3775836Z", + "GeneratedAt": "2026-08-20T11:23:45.7859641Z", "CustomComponents": [ { "Name": "NewComponent", diff --git a/ui/src/components/codeLayout/StyleModal.tsx b/ui/src/components/codeLayout/StyleModal.tsx index e694d851..cb1c8276 100644 --- a/ui/src/components/codeLayout/StyleModal.tsx +++ b/ui/src/components/codeLayout/StyleModal.tsx @@ -2,6 +2,7 @@ import { useMemo, useState } from 'react' import { FaPlus, FaSearch, FaTimes } from 'react-icons/fa' import { Button } from '@/components/ui' import { useLocalization } from '@/utils/hooks/useLocalization' +import Input from '@/components/ui/Input' interface StyleModalProps { isOpen: boolean @@ -400,7 +401,8 @@ const StyleModal = ({