/** The candidate mavat returns for the form (INV-AH: every value carries source_url). */
exporttypePlanFetchResult={
plan_number: string;
display_name: string;
plan_type: string;
purpose: string;
gazette_date: string;// ISO YYYY-MM-DD, "" if mavat doesn't expose it
yalkut_number: string;
yalkut_page: string;
source_url: string;// the mavat plan page
};
/**
* Pull a plan's identity + validity from mavat (מנהל התכנון) to prefill the form.
* Slow — drives a real browser on the host bridge (~½–1 min); surface a spinner.
*/
exportfunctionuseFetchPlan() {
returnuseMutation({
mutationFn:(planNumber: string)=>
apiRequest<PlanFetchResult>(`/api/plans/fetch`,{
method:"POST",
body:{plan_number: planNumber},
}),
});
}
exporttypePlanUpsert={
plan_number: string;
display_name?: string;
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.