You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/plans/2026-03-18-import-drive-links-panel-design.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,15 @@ Rebuild the "Import Drive Links" tool as a first-class sidebar panel, replacing
14
14
- Delete the old `importDriveLinks` server function and its `runTool` dispatcher entry
15
15
- Lay down patterns that support future Extra tool panels (Sample Rows, Extract Text)
16
16
17
+
## Migration Pattern
18
+
19
+
This is the first of three "Extra tool → dedicated panel" migrations. Sample Rows and Extract Text will follow the same steps. Key conventions to carry forward:
20
+
21
+
- Each tool gets its own config interface in `src/shared/types.ts` (e.g. `SampleRowsConfig`, `ExtractTextConfig`)
22
+
- Each migration removes that tool's entry from the `runTool` TOOLS dispatcher in `index.ts`
23
+
- Once all three tools are migrated, `runTool` becomes dead code — delete the function, its GAS stub in `rollup.config.js`, and its declaration in `google.d.ts`
24
+
-`__tests__/panels/import-drive-links.test.ts` is the reference test pattern for the subsequent panel test files
0 commit comments