assessment-model/src/app
Khalim Conn-Kowlessar 7841e4a556 xtracted duplicated removal state logic into a shared module.
Created removalState.ts with two functions: deriveEffectiveRemovalState (single DB row → EffectiveRemovalState) and computeRemovalStatusByDeal (ordered rows → RemovalStatusByDeal map, owns deduplication).
Created removalState.test.ts with 11 tests covering all 6 (type, status) combinations and the map-building edge cases (empty input, deduplication, none entries excluded).
live/page.tsx: replaced a 14-line seen-set loop with a single computeRemovalStatusByDeal(removalRows) call.
live/[dealId]/page.tsx: replaced an if/else block with deriveEffectiveRemovalState(removalRows[0]).
2026-05-12 13:12:14 +00:00
..
actions added missing files 2026-04-11 08:05:41 +00:00
api Adding bulk approve and instruct 2026-05-09 08:39:20 +00:00
auth/error enhanced logging and added verification error catching 2025-11-13 22:30:11 +00:00
components resizing toolbar text 2026-04-20 08:21:55 +00:00
db Merge branch 'main' of https://github.com/Hestia-Homes/assessment-model into feature/pm-ui-ux 2026-05-07 18:26:05 +00:00
domna updated loading state 2025-11-03 19:46:47 +00:00
email_templates removed email from login token 2026-03-10 17:56:01 +00:00
engineDb minor, created engineDB folder but not going to proceed for the moment 2023-08-10 10:56:39 +01:00
help added favicon 2026-01-26 12:45:42 +00:00
home Fixing auth options export issue 2025-10-28 11:49:19 +00:00
hooks hot fix of src -> app 2024-12-05 17:16:05 +00:00
lib Adding bulk approve and instruct 2026-05-09 08:39:20 +00:00
onboarding changing name 2025-11-10 20:53:28 +00:00
portfolio/[slug] xtracted duplicated removal state logic into a shared module. 2026-05-12 13:12:14 +00:00
shadcn_components/ui onboarding ui almost complete 2025-10-14 12:57:52 +00:00
types added delete 2026-01-07 15:15:21 +00:00
utils Improving upload logging 2026-04-20 14:04:06 +00:00
verify/[token] added acceptance based login to work around microsoft defender 2026-03-10 18:53:37 +00:00
globals.css doesn't mount straight away and reload data - keeps it stale with cache 2026-01-07 11:33:20 +00:00
layout.tsx re-vamping ara ui 2026-04-08 10:29:14 +00:00
page.tsx save new login screen 2025-12-08 10:03:40 +00:00
ReactQueryProvider.tsx Adding page layout, added react query 2023-05-30 11:41:08 +01:00
utils.test.ts moving the documents ui to the deal page view 2026-05-08 10:45:40 +00:00
utils.ts added tests for pre sap ui with removed duplication 2026-05-08 09:02:21 +00:00