Refactor catalog data flow: unify schema usage, fix UI data contracts, and match metadata via main_app_file_hash