(appName: string)
| 147 | }; |
| 148 | |
| 149 | const handleCreateNew = async (appName: string) => { |
| 150 | const draftAppId = `draft/${appName}`; |
| 151 | const builderId = globalStore.get(atoms.builderId); |
| 152 | const oref = WOS.makeORef("builder", builderId); |
| 153 | await RpcApi.SetRTInfoCommand(TabRpcClient, { |
| 154 | oref, |
| 155 | data: { "builder:appid": draftAppId }, |
| 156 | }); |
| 157 | globalStore.set(atoms.builderAppId, draftAppId); |
| 158 | document.title = `WaveApp Builder (${draftAppId})`; |
| 159 | getApi().setBuilderWindowAppId(draftAppId); |
| 160 | }; |
| 161 | |
| 162 | const isDraftApp = (appId: string) => { |
| 163 | return appId.startsWith("draft/"); |
nothing calls this directly
no test coverage detected