sdlc-hub/web/src/shell/NewProject.tsx
Andrey Epifancev 2bc43953dc fix(web-modules): M-1, M-2, M-7, M-8 трекер пакетов и сводка jira
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 15:38:46 +04:00

13 lines
787 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { NewProjectDialog } from "../projects/NewProjectDialog.tsx";
import { useTrackModuleBatch } from "./activity/activity.ts";
// окно «Новый проект»: каждый пакет, поставленный хабом при создании, отслеживает трекер своего модуля (поле module)
export function NewProject({ onClose, select }: { onClose(): void; select(label: string): void }) {
const track = useTrackModuleBatch();
return <NewProjectDialog onClose={onClose} onCreated={(p, batches) => {
onClose();
for (const b of batches) track(b.module, b.id, p.label); // пакет принадлежит новому проекту: смена проекта его не сбрасывает
select(p.label);
}} />;
}