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 = ({