()
| 190 | const nameDuplicate = entries.find(entry => entry.name.toLowerCase() === name.trim().toLowerCase()); |
| 191 | const duplicate = folderDuplicate ?? nameDuplicate; |
| 192 | const useFolder = (): void => { |
| 193 | if (!level || browsing || browseError || !level.path || !samePath(pathInput.trim(), level.path)) return; |
| 194 | setSelectedPath(level.path); |
| 195 | setName(normalizedName(projectNameFor(level.path)).slice(0, 200).replace(/-+$/, '')); |
| 196 | setSubmitError(''); setStep('confirm'); |
| 197 | }; |
| 198 | const start = async (): Promise<void> => { |
| 199 | const projectName = name.trim(); |
| 200 | if (submitPending.current || !selectedPath || !validName(projectName) || duplicate || listStatus !== 'ready' || jobRef.current?.status === 'indexing') return; |
nothing calls this directly
no test coverage detected