Commit aec7183
authored
apps init: show template ref in header and clone spinner (#5249)
## Summary
Removes the standalone `Using AppKit template version X` log line from
`databricks apps init`. The resolved ref now appears:
- On the interactive header (before the project-name prompt) as a dimmed
`Template version 0.24.0` line, so the user can cancel before committing
to a name.
- On the clone spinner and done line as a suffix, e.g. `Cloning template
(version 0.24.0)...` / `✔ Cloning template (version 0.24.0)`.
The label tracks the source of the ref:
| Invocation | Label |
|---|---|
| auto-resolved (default) / `--version X` | `version X` |
| `--branch X` (default or custom template) | `branch X` |
| `--template URL` with no branch | (no label) |
On a fallback to the embedded AppKit version, the spinner reflects the
version actually cloned.
**Before**
<img width="409" height="102" alt="image"
src="https://github.com/user-attachments/assets/910e3685-93e7-4adb-9afd-9d547ca4d64b"
/>
**After**
<img width="306" height="56" alt="image"
src="https://github.com/user-attachments/assets/05755405-2874-4ad3-899d-0f7ad405f71c"
/>
<img width="436" height="162" alt="image"
src="https://github.com/user-attachments/assets/23d25c7d-25fd-4c83-9043-6f2c1004ebe6"
/>
## Test plan
- [x] `dbs apps init --name foo` — version appears on the spinner, not
as a separate line
- [x] `dbs apps init` (interactive) — header shows the version before
the name prompt; cancel before naming works
- [x] `dbs apps init --version 0.23.0 --name foo` — spinner shows
`(version 0.23.0)`
- [x] `dbs apps init --branch some-branch --name foo` — spinner shows
`(branch some-branch)`
- [x] `dbs apps init --template <URL> --name foo` — no ref label
(current behavior preserved)1 parent f961293 commit aec7183
2 files changed
Lines changed: 43 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
603 | 609 | | |
604 | 610 | | |
605 | 611 | | |
606 | 612 | | |
607 | | - | |
| 613 | + | |
608 | 614 | | |
609 | 615 | | |
610 | 616 | | |
611 | 617 | | |
612 | 618 | | |
613 | | - | |
| 619 | + | |
614 | 620 | | |
615 | 621 | | |
616 | 622 | | |
| |||
808 | 814 | | |
809 | 815 | | |
810 | 816 | | |
811 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
812 | 823 | | |
| 824 | + | |
813 | 825 | | |
814 | 826 | | |
815 | 827 | | |
816 | 828 | | |
817 | 829 | | |
818 | 830 | | |
| 831 | + | |
819 | 832 | | |
820 | 833 | | |
| 834 | + | |
821 | 835 | | |
822 | | - | |
| 836 | + | |
823 | 837 | | |
824 | 838 | | |
825 | 839 | | |
826 | | - | |
827 | | - | |
| 840 | + | |
| 841 | + | |
828 | 842 | | |
829 | 843 | | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
830 | 847 | | |
831 | 848 | | |
832 | 849 | | |
| |||
880 | 897 | | |
881 | 898 | | |
882 | 899 | | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
883 | 905 | | |
884 | 906 | | |
885 | 907 | | |
| |||
927 | 949 | | |
928 | 950 | | |
929 | 951 | | |
930 | | - | |
| 952 | + | |
931 | 953 | | |
932 | 954 | | |
933 | 955 | | |
| |||
937 | 959 | | |
938 | 960 | | |
939 | 961 | | |
940 | | - | |
| 962 | + | |
| 963 | + | |
941 | 964 | | |
942 | 965 | | |
943 | 966 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| |||
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
247 | 253 | | |
248 | 254 | | |
249 | 255 | | |
| |||
282 | 288 | | |
283 | 289 | | |
284 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
285 | 294 | | |
286 | | - | |
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
| |||
0 commit comments