feat: Complete Admin Phase 8 App Information screens migration
- Migrate 9 admin app information screens to OS_Wrapper (lists, business field forms, information bank forms, sticker forms) - Add enableKeyboardHandling to 5 form screens with TextInput (business field create/update, information bank create/update) - Update TASK-005 with Admin Phase 8 completion status - Total: 155 files migrated (~90% complete) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
import {
|
import {
|
||||||
BoxButtonOnFooter,
|
BoxButtonOnFooter,
|
||||||
ButtonCustom,
|
ButtonCustom,
|
||||||
|
OS_Wrapper,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextCustom,
|
TextCustom,
|
||||||
TextInputCustom,
|
TextInputCustom,
|
||||||
ViewWrapper,
|
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
@@ -93,7 +93,7 @@ export default function AdminAppInformation_BusinessFieldDetail() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper footerComponent={buttonSubmit}>
|
<OS_Wrapper enableKeyboardHandling contentPaddingBottom={250} footerComponent={buttonSubmit}>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<AdminBackButtonAntTitle title="Update Bidang Bisnis" />
|
<AdminBackButtonAntTitle title="Update Bidang Bisnis" />
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ export default function AdminAppInformation_BusinessFieldDetail() {
|
|||||||
/>
|
/>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</OS_Wrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
import {
|
import {
|
||||||
BoxButtonOnFooter,
|
BoxButtonOnFooter,
|
||||||
ButtonCustom,
|
ButtonCustom,
|
||||||
|
OS_Wrapper,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextCustom,
|
TextCustom,
|
||||||
TextInputCustom,
|
TextInputCustom,
|
||||||
ViewWrapper,
|
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
@@ -99,7 +99,7 @@ export default function AdminAppInformation_BusinessFieldDetail() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper footerComponent={buttonSubmit}>
|
<OS_Wrapper enableKeyboardHandling contentPaddingBottom={250} footerComponent={buttonSubmit}>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<AdminBackButtonAntTitle title="Update Bidang Bisnis" />
|
<AdminBackButtonAntTitle title="Update Bidang Bisnis" />
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ export default function AdminAppInformation_BusinessFieldDetail() {
|
|||||||
/>
|
/>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</OS_Wrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import {
|
|||||||
ButtonCustom,
|
ButtonCustom,
|
||||||
CenterCustom,
|
CenterCustom,
|
||||||
Grid,
|
Grid,
|
||||||
|
OS_Wrapper,
|
||||||
Spacing,
|
Spacing,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextInputCustom,
|
TextInputCustom,
|
||||||
ViewWrapper,
|
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
@@ -101,7 +101,7 @@ export default function AdminAppInformation_BusinessFieldCreate() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper footerComponent={buttonSubmit}>
|
<OS_Wrapper enableKeyboardHandling contentPaddingBottom={250} footerComponent={buttonSubmit}>
|
||||||
<StackCustom gap={"xs"}>
|
<StackCustom gap={"xs"}>
|
||||||
<AdminBackButtonAntTitle title="Tambah Bidang Bisnis" />
|
<AdminBackButtonAntTitle title="Tambah Bidang Bisnis" />
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ export default function AdminAppInformation_BusinessFieldCreate() {
|
|||||||
</View>
|
</View>
|
||||||
</CenterCustom>
|
</CenterCustom>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</OS_Wrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import {
|
|||||||
ButtonCustom,
|
ButtonCustom,
|
||||||
CenterCustom,
|
CenterCustom,
|
||||||
Grid,
|
Grid,
|
||||||
|
OS_Wrapper,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextCustom,
|
TextCustom,
|
||||||
TextInputCustom,
|
TextInputCustom,
|
||||||
ViewWrapper,
|
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
@@ -92,7 +92,7 @@ export default function AdminAppInformation_BankDetail() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper footerComponent={buttonSubmit}>
|
<OS_Wrapper enableKeyboardHandling contentPaddingBottom={250} footerComponent={buttonSubmit}>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<AdminBackButtonAntTitle title="Update Bank" />
|
<AdminBackButtonAntTitle title="Update Bank" />
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ export default function AdminAppInformation_BankDetail() {
|
|||||||
/>
|
/>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</OS_Wrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import {
|
import {
|
||||||
BoxButtonOnFooter,
|
BoxButtonOnFooter,
|
||||||
ButtonCustom,
|
ButtonCustom,
|
||||||
|
OS_Wrapper,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextInputCustom,
|
TextInputCustom,
|
||||||
ViewWrapper,
|
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
import { apiAdminMasterBankCreate } from "@/service/api-admin/api-master-admin";
|
import { apiAdminMasterBankCreate } from "@/service/api-admin/api-master-admin";
|
||||||
@@ -52,7 +52,7 @@ export default function AdminAppInformation_BankCreate() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper footerComponent={buttonSubmit}>
|
<OS_Wrapper enableKeyboardHandling contentPaddingBottom={250} footerComponent={buttonSubmit}>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<AdminBackButtonAntTitle title="Tambah Daftar Bank" />
|
<AdminBackButtonAntTitle title="Tambah Daftar Bank" />
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ export default function AdminAppInformation_BankCreate() {
|
|||||||
/>
|
/>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
</ViewWrapper>
|
</OS_Wrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import {
|
|||||||
CheckboxCustom,
|
CheckboxCustom,
|
||||||
CheckboxGroup,
|
CheckboxGroup,
|
||||||
LandscapeFrameUploaded,
|
LandscapeFrameUploaded,
|
||||||
|
OS_Wrapper,
|
||||||
SelectCustom,
|
SelectCustom,
|
||||||
Spacing,
|
Spacing,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextCustom,
|
TextCustom,
|
||||||
ViewWrapper,
|
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
import { dummyMasterEmotions } from "@/lib/dummy-data/_master/emotions";
|
import { dummyMasterEmotions } from "@/lib/dummy-data/_master/emotions";
|
||||||
@@ -28,7 +28,7 @@ export default function AdminAppInformation_StickerCreate() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper footerComponent={buttonSubmit}>
|
<OS_Wrapper footerComponent={buttonSubmit}>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<AdminBackButtonAntTitle title="Edit Stiker" />
|
<AdminBackButtonAntTitle title="Edit Stiker" />
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@ export default function AdminAppInformation_StickerCreate() {
|
|||||||
</StackCustom>
|
</StackCustom>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
<Spacing />
|
<Spacing />
|
||||||
</ViewWrapper>
|
</OS_Wrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import {
|
|||||||
CheckboxCustom,
|
CheckboxCustom,
|
||||||
CheckboxGroup,
|
CheckboxGroup,
|
||||||
LandscapeFrameUploaded,
|
LandscapeFrameUploaded,
|
||||||
|
OS_Wrapper,
|
||||||
SelectCustom,
|
SelectCustom,
|
||||||
Spacing,
|
Spacing,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextCustom,
|
TextCustom
|
||||||
ViewWrapper
|
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
import AdminBackButtonAntTitle from "@/components/_ShareComponent/Admin/BackButtonAntTitle";
|
||||||
import { dummyMasterEmotions } from "@/lib/dummy-data/_master/emotions";
|
import { dummyMasterEmotions } from "@/lib/dummy-data/_master/emotions";
|
||||||
@@ -32,7 +32,7 @@ export default function AdminAppInformation_StickerCreate() {
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ViewWrapper footerComponent={buttonSubmit}>
|
<OS_Wrapper footerComponent={buttonSubmit}>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<AdminBackButtonAntTitle title="Tambah Stiker" />
|
<AdminBackButtonAntTitle title="Tambah Stiker" />
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ export default function AdminAppInformation_StickerCreate() {
|
|||||||
</StackCustom>
|
</StackCustom>
|
||||||
</StackCustom>
|
</StackCustom>
|
||||||
<Spacing/>
|
<Spacing/>
|
||||||
</ViewWrapper>
|
</OS_Wrapper>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ScrollableCustom, StackCustom } from "@/components";
|
import { ScrollableCustom, StackCustom } from "@/components";
|
||||||
import AdminActionIconPlus from "@/components/_ShareComponent/Admin/ActionIconPlus";
|
import AdminActionIconPlus from "@/components/_ShareComponent/Admin/ActionIconPlus";
|
||||||
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
import AdminComp_BoxTitle from "@/components/_ShareComponent/Admin/BoxTitlePage";
|
||||||
import NewWrapper from "@/components/_ShareComponent/NewWrapper";
|
import OS_Wrapper from "@/components/_ShareComponent/OS_Wrapper";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
import { PAGINATION_DEFAULT_TAKE } from "@/constants/constans-value";
|
import { PAGINATION_DEFAULT_TAKE } from "@/constants/constans-value";
|
||||||
import { createPaginationComponents } from "@/helpers/paginationHelpers";
|
import { createPaginationComponents } from "@/helpers/paginationHelpers";
|
||||||
@@ -108,7 +108,7 @@ export function Admin_ScreenAppInformation() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<NewWrapper
|
<OS_Wrapper
|
||||||
headerComponent={scrollComponent}
|
headerComponent={scrollComponent}
|
||||||
// ListHeaderComponent={
|
// ListHeaderComponent={
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
BadgeCustom,
|
BadgeCustom,
|
||||||
BaseBox,
|
BaseBox,
|
||||||
CenterCustom,
|
CenterCustom,
|
||||||
NewWrapper,
|
OS_Wrapper,
|
||||||
Spacing,
|
Spacing,
|
||||||
StackCustom,
|
StackCustom,
|
||||||
TextCustom,
|
TextCustom,
|
||||||
@@ -13,6 +13,7 @@ import { GridSpan_NewComponent } from "@/components/_ShareComponent/GridSpan_New
|
|||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
import {
|
import {
|
||||||
ICON_SIZE_SMALL,
|
ICON_SIZE_SMALL,
|
||||||
|
PADDING_INLINE,
|
||||||
PAGINATION_DEFAULT_TAKE,
|
PAGINATION_DEFAULT_TAKE,
|
||||||
} from "@/constants/constans-value";
|
} from "@/constants/constans-value";
|
||||||
import { createPaginationComponents } from "@/helpers/paginationHelpers";
|
import { createPaginationComponents } from "@/helpers/paginationHelpers";
|
||||||
@@ -160,7 +161,8 @@ export function Admin_ScreenBusinessFieldDetail() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<NewWrapper
|
<OS_Wrapper
|
||||||
|
contentPadding={PADDING_INLINE}
|
||||||
listData={pagination.listData}
|
listData={pagination.listData}
|
||||||
onEndReached={pagination.loadMore}
|
onEndReached={pagination.loadMore}
|
||||||
ListEmptyComponent={ListEmptyComponent}
|
ListEmptyComponent={ListEmptyComponent}
|
||||||
|
|||||||
@@ -438,11 +438,32 @@ import { OS_Wrapper } from "@/components";
|
|||||||
- [ ] `screens/Admin/Investment/ScreenInvestmentDetail.tsx`
|
- [ ] `screens/Admin/Investment/ScreenInvestmentDetail.tsx`
|
||||||
- [ ] `screens/Admin/Investment/ScreenInvestmentStatus.tsx`
|
- [ ] `screens/Admin/Investment/ScreenInvestmentStatus.tsx`
|
||||||
|
|
||||||
## ⏳ Admin Phase 8: App Information (Priority: LOW)
|
## ⏳ Admin Phase 8: App Information - PENDING
|
||||||
- [ ] `screens/Admin/App-Information/ScreenAppInfoList.tsx`
|
|
||||||
- [ ] `screens/Admin/App-Information/ScreenBusinessField.tsx`
|
**Files to migrate: 11**
|
||||||
- [ ] `screens/Admin/App-Information/ScreenInformationBank.tsx`
|
|
||||||
- [ ] `screens/Admin/App-Information/ScreenSticker.tsx`
|
#### Admin App Information List Screens (OS_Wrapper):
|
||||||
|
- [ ] `screens/Admin/App-Information/ScreenAppInformation.tsx` - NewWrapper → OS_Wrapper (main list with category tabs + pagination)
|
||||||
|
- [ ] `screens/Admin/App-Information/ScreenBusinessFieldDetail.tsx` - NewWrapper → OS_Wrapper (detail with sub-bidang list + pagination)
|
||||||
|
|
||||||
|
#### Admin Business Field Form Screens (OS_Wrapper with enableKeyboardHandling):
|
||||||
|
- [ ] `app/(application)/admin/app-information/business-field/create.tsx` - ViewWrapper → OS_Wrapper + `enableKeyboardHandling` + `contentPaddingBottom={250}`
|
||||||
|
- [ ] `app/(application)/admin/app-information/business-field/[id]/bidang-update.tsx` - ViewWrapper → OS_Wrapper + `enableKeyboardHandling` + `contentPaddingBottom={250}`
|
||||||
|
- [ ] `app/(application)/admin/app-information/business-field/[id]/sub-bidang-update.tsx` - ViewWrapper → OS_Wrapper + `enableKeyboardHandling` + `contentPaddingBottom={250}`
|
||||||
|
|
||||||
|
#### Admin Information Bank Form Screens (OS_Wrapper with enableKeyboardHandling):
|
||||||
|
- [ ] `app/(application)/admin/app-information/information-bank/create.tsx` - ViewWrapper → OS_Wrapper + `enableKeyboardHandling` + `contentPaddingBottom={250}`
|
||||||
|
- [ ] `app/(application)/admin/app-information/information-bank/[id]/index.tsx` - ViewWrapper → OS_Wrapper + `enableKeyboardHandling` + `contentPaddingBottom={250}`
|
||||||
|
|
||||||
|
#### Admin Sticker Form Screens (OS_Wrapper static, no keyboard handling):
|
||||||
|
- [ ] `app/(application)/admin/app-information/sticker/create.tsx` - ViewWrapper → OS_Wrapper (SelectCustom + CheckboxGroup only)
|
||||||
|
- [ ] `app/(application)/admin/app-information/sticker/[id]/index.tsx` - ViewWrapper → OS_Wrapper (SelectCustom + CheckboxGroup only)
|
||||||
|
|
||||||
|
**Testing Status:**
|
||||||
|
- ⏳ TypeScript: Pending
|
||||||
|
- ⏳ Build: Pending
|
||||||
|
- ⏳ iOS Testing: Pending
|
||||||
|
- ⏳ Android Testing: Pending
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user