Repository navigation
Commit 02534ea
Organizer: offer Upload File only inside a calculation (#97)
Upload was offered for any expandable node, so it appeared on projects
and on the server root as well as on jobs -- where it reads like a
general-purpose file manager action and nobody could say what it was
for. Reported from a live session: "The File/Upload File is not clear
in terms of what it is supposed to be used for ... Could be in Tools",
then clarified: it should appear only when you are in a job.
Now gated on the selected node being a calculation. Download is
unchanged -- still offered for anything that is not a collection, i.e.
an actual file -- and a project or the server root now gets neither,
which is the point.
Null-guarded: getResource() can legitimately return 0 on a node whose
resource failed to load, a shape this file has been bitten by before.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFMUNbw2UpRPmgsqviAowb1 parent 993acb9 commit 02534ea
1 file changed
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2370 | 2370 | | |
2371 | 2371 | | |
2372 | 2372 | | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
2373 | 2381 | | |
2374 | | - | |
2375 | | - | |
2376 | | - | |
2377 | | - | |
2378 | | - | |
2379 | | - | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
2380 | 2401 | | |
2381 | 2402 | | |
2382 | 2403 | | |
| |||
0 commit comments