specpilot 2.15.0 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/dist/cli.js +0 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/add-specs.d.ts +1 -2
- package/dist/commands/add-specs.d.ts.map +1 -1
- package/dist/commands/add-specs.js +1 -1
- package/dist/commands/add-specs.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +27 -33
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/serve.d.ts +4 -2
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +71 -19
- package/dist/commands/serve.js.map +1 -1
- package/dist/core/slashCommands.d.ts.map +1 -1
- package/dist/core/slashCommands.js +0 -1
- package/dist/core/slashCommands.js.map +1 -1
- package/dist/utils/slashCommandGenerator.d.ts.map +1 -1
- package/dist/utils/slashCommandGenerator.js +6 -0
- package/dist/utils/slashCommandGenerator.js.map +1 -1
- package/dist/utils/specArchiver.d.ts +9 -2
- package/dist/utils/specArchiver.d.ts.map +1 -1
- package/dist/utils/specArchiver.js +21 -13
- package/dist/utils/specArchiver.js.map +1 -1
- package/dist/utils/specServer.d.ts +7 -1
- package/dist/utils/specServer.d.ts.map +1 -1
- package/dist/utils/specServer.js +73 -14
- package/dist/utils/specServer.js.map +1 -1
- package/dist/utils/specValidator.js +1 -1
- package/dist/utils/taskMover.d.ts +43 -4
- package/dist/utils/taskMover.d.ts.map +1 -1
- package/dist/utils/taskMover.js +116 -24
- package/dist/utils/taskMover.js.map +1 -1
- package/package.json +1 -1
- package/ui/app.css +35 -5
- package/ui/app.js +212 -79
- package/ui/index.html +17 -11
- package/ui/route.js +3 -1
package/ui/route.js
CHANGED
|
@@ -12,12 +12,14 @@ const esc=s=>String(s).replace(/[&<>"]/g,c=>({'&':'&','<':'<','>':'>',
|
|
|
12
12
|
that names no served project goes to project 0's Tasks view. "#home" is the Home screen
|
|
13
13
|
(BL-PM-001) when `home` says the page has one, and "#new" the new-project chat (BL-PM-004) on the
|
|
14
14
|
same terms: both belong to no project, so an index before them and anything after is ignored;
|
|
15
|
-
without `home` they are unknown views.
|
|
15
|
+
without `home` they are unknown views. A `count` of 0 (no project served, BL-080) keeps those two
|
|
16
|
+
and sends every other hash, the empty one included, to Home; the boot call passes Infinity. */
|
|
16
17
|
function resolveRoute(hash,files,count,home){
|
|
17
18
|
let h=String(hash||'').replace(/^#/,''),project=0;
|
|
18
19
|
const m=/^(\d+)\/(.*)$/.exec(h);
|
|
19
20
|
const top=/^(home|new)(\/|$)/.exec(m?m[2]:h);
|
|
20
21
|
if(home&&top)return {project:0,view:top[1],sub:'',missing:false};
|
|
22
|
+
if(home&&count===0)return {project:0,view:'home',sub:'',missing:false};
|
|
21
23
|
if(m){
|
|
22
24
|
if(!/^(0|[1-9][0-9]*)$/.test(m[1])||Number(m[1])>=(count||1))return {project:0,view:'board',sub:'',missing:false};
|
|
23
25
|
project=Number(m[1]);h=m[2];
|