Merge pull request 'azeem' (#54) from azeem into development

Reviewed-on: https://gitea.maskantech.in/gitea_admin/aeroresolve_frontend/pulls/54
This commit is contained in:
Syed Waseem khadri Rafai
2026-08-25 03:45:34 +00:00
4 changed files with 10 additions and 8 deletions
@@ -106,7 +106,7 @@ export function ActionTypesColumn({
}`}
/>
</div>
<div className={`font-mono text-[11px] uppercase tracking-wider ${isSelected ? 'text-white/80' : 'text-slate-400'}`}>
<div className={`font-mono text-[11px] uppercase tracking-wider truncate ${isSelected ? 'text-white/80' : 'text-slate-400'}`}>
{t.code}
</div>
</div>
@@ -96,7 +96,7 @@ export function CategoriesColumn({
}`}
/>
</div>
<div className={`font-mono text-[11px] uppercase tracking-wider ${isSelected ? 'text-white/80' : 'text-slate-400'}`}>
<div className={`font-mono text-[11px] uppercase tracking-wider truncate ${isSelected ? 'text-white/80' : 'text-slate-400'}`}>
{cat.code}
</div>
</div>
@@ -153,11 +153,11 @@ export function ConfigurationFieldsColumn({
<div className="bg-white flex-1 p-4 rounded-r-[15px] border-l border-[#E2E8F0] space-y-3 min-w-0">
{/* Top Header Row */}
<div className="flex items-start justify-between gap-2">
<div>
<div className="font-bold text-[15px] text-[#0F172B] leading-tight">
<div className="min-w-0 flex-1 pr-2">
<div className="font-bold text-[15px] text-[#0F172B] leading-tight truncate">
{f.fieldName}
</div>
<div className="font-mono text-[12px] text-[#8C9AA8] uppercase tracking-wider mt-0.5">
<div className="font-mono text-[12px] text-[#8C9AA8] uppercase tracking-wider mt-0.5 truncate">
{f.fieldCode}
</div>
</div>
@@ -658,8 +658,11 @@ export default function AddPolicyEngine() {
for (const act of rule.actions) {
if (!act.actionCategoryId || !act.actionTypeId) return false;
const fields = actionTypeFieldsMap[act.actionTypeId] || [];
for (const field of fields) {
const allFields = actionTypeFieldsMap[act.actionTypeId] || [];
const visibleFields = allFields.filter((f) =>
isActionFieldVisible(f, act.fieldValues, allFields, fieldLookupOptionsMap)
);
for (const field of visibleFields) {
if (field.isRequired) {
const val = act.fieldValues?.[field.fieldCode];
if (val === undefined || val === null || val === '') return false;
@@ -1076,7 +1079,6 @@ export default function AddPolicyEngine() {
<div className="flex flex-col gap-2">
<CustomTextArea
label='Description'
required
value={description}
onChange={(e) => setDescription(e.target.value)}
placeholder="Enter description..."