@floless/app 0.164.0 → 0.166.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/dist/floless-server.cjs +24056 -21153
- package/dist/schemas/drawing-check.profile.v1.schema.json +3 -1
- package/dist/skills/floless-app-knowledge/SKILL.md +8 -1
- package/dist/skills/floless-app-rfi/SKILL.md +31 -6
- package/dist/skills/floless-app-steel-model/SKILL.md +4 -1
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +18 -16
- package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +15 -1
- package/dist/templates/college-phase-exporter.flo +42 -16
- package/dist/templates/screenshot-to-saved-settings.flo +12 -2
- package/dist/web/app.css +71 -6
- package/dist/web/aware.js +27 -10
- package/dist/web/chat-question-card.js +3 -1
- package/dist/web/chat.css +11 -1
- package/dist/web/chat.js +533 -59
- package/dist/web/commands-drawing-check.js +1 -0
- package/dist/web/commands-shell.js +107 -13
- package/dist/web/commands-steel.js +22 -2
- package/dist/web/drawing-check-editor.html +4 -0
- package/dist/web/drawing-check-editor.js +82 -2
- package/dist/web/index.html +6 -0
- package/dist/web/project-history.js +32 -9
- package/dist/web/project-modules.js +5 -0
- package/dist/web/project-rfis.js +219 -25
- package/dist/web/steel-ai-marks.js +128 -1
- package/dist/web/steel-editor.html +710 -35
- package/dist/web/steel-model-v2-projection.js +26 -20
- package/dist/web/workspaces.js +283 -45
- package/package.json +3 -2
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
def('drawing-check.reload', { label: 'Reload the profile', actsOn: 'Reads this client profile again, after it changed in another window or could not be read', group: G, persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
53
53
|
def('drawing-check.fill-clearances', { label: 'Fill bolt clearances from a standard', actsOn: 'Replaces the hole-size check’s clearance table with starter values from {instance}', anyInstance: 'a standard', group: G, persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'Starter values are a starting point: confirm them against your design standard.' });
|
|
54
54
|
def('drawing-check.main-part', { label: 'Main part: is its mark the assembly mark?', actsOn: 'Sets the main part of the part list to {instance}', anyInstance: 'one answer', group: G, persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Normally the main part’s mark is the assembly mark; the part-list check and “Every part is located” both find the main part this way.' });
|
|
55
|
+
def('drawing-check.line-break', { label: 'Largest break in a drawn line FloLess closes', actsOn: 'Sets the largest break, in points, that “Every part is located” closes a part’s outline across', group: G, persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Learned from the reference drawings; every result resting on an outline closed this way says so as an assumption.' });
|
|
55
56
|
def('drawing-check.add-item', { label: 'Add item from client standard', actsOn: 'Adds a text to look for on every drawing and tests it on the reference drawings', group: G, persistence: 'working', interaction: 'dialog', risk: [], guidance: 'on-demand' });
|
|
56
57
|
def('drawing-check.approve', { label: 'Approve checklist', actsOn: 'Approves the ticked items as the new version that runs use', group: G, persistence: 'approved', interaction: 'dialog', risk: [], guidance: 'on-demand', why: 'Earlier runs keep the version they were checked against.' });
|
|
57
58
|
def('drawing-check.check-drawings', { label: 'Check drawings', actsOn: 'Checks chosen PDF drawings against the approved checklist and marks them up', group: G, persistence: 'working', interaction: 'dialog', risk: ['costs-time'], guidance: 'on-demand', why: 'Anything unexpected becomes a question with a suggested answer before the run starts.' });
|
|
@@ -1640,7 +1640,30 @@
|
|
|
1640
1640
|
interaction: 'instant',
|
|
1641
1641
|
risk: ['costs-time', 'costs-money'],
|
|
1642
1642
|
guidance: 'on-demand',
|
|
1643
|
-
why: 'The project, drawings, Request and conversation stay together in the chosen project folder. A General project’s kickoff only suggests: every change it offers is a card you confirm. If FloLess has not set up the chosen AI on this computer yet, it does that first and then creates the project.',
|
|
1643
|
+
why: 'The project, drawings, Request and conversation stay together in the chosen project folder. A General project’s kickoff only suggests: every change it offers is a card you confirm. If FloLess has not set up the chosen AI on this computer yet, it does that first and then creates the project. Opened from a General project’s Add a module, the new project is linked to that General project too.',
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1646
|
+
// #2470 R6.7b: a link to the General project that can’t be made is a choice, never a refusal.
|
|
1647
|
+
def('shell.project-setup-without-link', {
|
|
1648
|
+
label: 'Create without linking',
|
|
1649
|
+
actsOn: 'Creates the project and starts its chat without linking it to the General project it was added from',
|
|
1650
|
+
group: 'In the new project dialog',
|
|
1651
|
+
persistence: 'external',
|
|
1652
|
+
interaction: 'instant',
|
|
1653
|
+
risk: ['costs-time', 'costs-money'],
|
|
1654
|
+
guidance: 'on-demand',
|
|
1655
|
+
why: 'Shown only when the General project can’t take the link now, for example because it was archived or the Workspace changed. You can link the project later from that General project’s Modules step.',
|
|
1656
|
+
});
|
|
1657
|
+
|
|
1658
|
+
def('shell.project-setup-recover-without-link', {
|
|
1659
|
+
label: 'Create without linking',
|
|
1660
|
+
actsOn: 'Finishes a project that was started from a General project but not yet created, without linking it there, and opens its chat',
|
|
1661
|
+
group: 'In the new project dialog',
|
|
1662
|
+
persistence: 'external',
|
|
1663
|
+
interaction: 'instant',
|
|
1664
|
+
risk: ['costs-time', 'costs-money'],
|
|
1665
|
+
guidance: 'on-demand',
|
|
1666
|
+
why: 'Offered after a restart when the General project can’t take the link now. Nothing is created until you choose it.',
|
|
1644
1667
|
});
|
|
1645
1668
|
|
|
1646
1669
|
def('shell.project-duplicate', {
|
|
@@ -3481,7 +3504,7 @@
|
|
|
3481
3504
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3482
3505
|
});
|
|
3483
3506
|
def('shell.chat-answer-note', {
|
|
3484
|
-
label: 'Source note or
|
|
3507
|
+
label: 'Source note or explanation', actsOn: 'Type where your answer for {instance} comes from, or explain what the read should use for a height, scale, level or origin; the text stays with this answer and an explanation alone confirms no value', anyInstance: 'an answer',
|
|
3485
3508
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3486
3509
|
});
|
|
3487
3510
|
def('shell.chat-answer-attach', {
|
|
@@ -3661,10 +3684,16 @@
|
|
|
3661
3684
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3662
3685
|
});
|
|
3663
3686
|
def('shell.chat-cite-assume', {
|
|
3664
|
-
label: '
|
|
3687
|
+
label: 'Record a claim as an assumption', actsOn: 'Saves, with your name and the date, your decision to go on with a claim that has no source; the claim is labelled Assumption and the AI receives it with your next message. Nothing runs, and nothing is typed or sent now',
|
|
3665
3688
|
group: 'In AI Chat', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3666
3689
|
why: 'Going on is always your choice, and only you can make it: the record stays with the answer after a reload, and the claim still shows no source, because an assumption is not one.',
|
|
3667
3690
|
});
|
|
3691
|
+
// #2930: the AI named a model member that exists the wrong way, and its answer ended before it corrected it.
|
|
3692
|
+
def('shell.chat-cite-correct', {
|
|
3693
|
+
label: 'Ask the AI to correct a reference', actsOn: 'Sends a message now asking the AI to answer again with a member reference it named wrongly corrected; the earlier answer stays as it is',
|
|
3694
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
|
|
3695
|
+
why: 'Correcting a reference is the AI’s job, not yours: FloLess found the member, and the AI has to name it the right way.',
|
|
3696
|
+
});
|
|
3668
3697
|
// #2643: the person names the source of a claim the AI gave none for: a sheet or model member FloLess finds in the project.
|
|
3669
3698
|
def('shell.chat-cite-choose', {
|
|
3670
3699
|
label: 'Choose the source of a claim', actsOn: 'Opens a list of the project’s sheets, model members and Knowledge pages, and the files sent in this conversation, to pick the one a claim with no source comes from; nothing is typed or sent',
|
|
@@ -3706,6 +3735,16 @@
|
|
|
3706
3735
|
label: 'Open the page in Knowledge', actsOn: 'Opens the project’s Knowledge on the page an answer cited, you chose or a message mentioned, at that version',
|
|
3707
3736
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3708
3737
|
});
|
|
3738
|
+
// #3003: a [[link]] on a Knowledge page, shown as the page it names: in the chat's page viewers, and on the Knowledge
|
|
3739
|
+
// step's page panel (its own command, so the Instructor names the place the person is looking at).
|
|
3740
|
+
def('shell.knowledge-page-link', {
|
|
3741
|
+
label: 'Open a linked Knowledge page', actsOn: 'Opens the page this link names ({instance}) in Knowledge, at the same version as the page you are reading; nothing changes', anyInstance: 'one page',
|
|
3742
|
+
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3743
|
+
});
|
|
3744
|
+
def('workspace.kb-page-link', {
|
|
3745
|
+
label: 'Open a linked Knowledge page', actsOn: 'Opens the page this link names ({instance}) here, at the same version as the page you are reading; nothing changes', anyInstance: 'one page',
|
|
3746
|
+
group: 'In the Knowledge Base viewer', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3747
|
+
});
|
|
3709
3748
|
// #2874: a mentioned page FloLess no longer holds at that version opens as it is now, and says so.
|
|
3710
3749
|
def('shell.chat-mention-open-current-knowledge', {
|
|
3711
3750
|
label: 'Open the current page in Knowledge', actsOn: 'Opens the project’s Knowledge on the page a message mentioned, as it is now, because FloLess no longer holds the version that was mentioned',
|
|
@@ -3737,11 +3776,11 @@
|
|
|
3737
3776
|
why: 'Your click is the record: the AI cannot settle a scale, the origin or a level for you.',
|
|
3738
3777
|
});
|
|
3739
3778
|
def('shell.chat-setup-input', {
|
|
3740
|
-
label: 'Type a setup value', actsOn: 'Type your answer for {instance}: a scale like 1/4" = 1\'-0" or 1:100, a level like 16\'-6", or a grid point like K/1.1', anyInstance: 'a setup row',
|
|
3779
|
+
label: 'Type a setup value', actsOn: 'Type your answer for {instance}: a scale like 1/4" = 1\'-0" or 1:100, a level like 16\'-6", or a grid point like K/1.1; anything FloLess cannot read as a value is kept as your note for the read', anyInstance: 'a setup row',
|
|
3741
3780
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3742
3781
|
});
|
|
3743
3782
|
def('shell.chat-setup-other', {
|
|
3744
|
-
label: 'Give your own setup answer', actsOn: 'Opens a typed value
|
|
3783
|
+
label: 'Give your own setup answer', actsOn: 'Opens a typed value, an explanation box and a picture for {instance}', anyInstance: 'a setup row',
|
|
3745
3784
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3746
3785
|
});
|
|
3747
3786
|
def('shell.chat-setup-back', {
|
|
@@ -3751,10 +3790,10 @@
|
|
|
3751
3790
|
def('shell.chat-setup-use', {
|
|
3752
3791
|
label: 'Use typed setup value', actsOn: 'Records what you typed as your answer for {instance}', anyInstance: 'a setup row',
|
|
3753
3792
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3754
|
-
why: 'FloLess reads what you typed
|
|
3793
|
+
why: 'FloLess reads what you typed as a value; anything it cannot read is kept as your note for the read and settles nothing, so a typo never becomes a scale or a level.',
|
|
3755
3794
|
});
|
|
3756
3795
|
def('shell.chat-setup-evidence', {
|
|
3757
|
-
label: 'Give the read a picture for this setup answer', actsOn: 'Records your
|
|
3796
|
+
label: 'Give the read an explanation or a picture for this setup answer', actsOn: 'Records your explanation and pictures for {instance}; the read still has to propose a value', anyInstance: 'a setup row',
|
|
3758
3797
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3759
3798
|
});
|
|
3760
3799
|
def('shell.chat-setup-origin-choice', {
|
|
@@ -5102,6 +5141,19 @@
|
|
|
5102
5141
|
why: 'FloLess keeps a project’s most recent thousand events; older ones are tidied away as new ones arrive.',
|
|
5103
5142
|
});
|
|
5104
5143
|
|
|
5144
|
+
// #2470 R6.5b: a module project's History step shows its approval ledger or its activity, chosen at the end of the step row.
|
|
5145
|
+
def('shell.history-view', {
|
|
5146
|
+
label: 'Show {instance}',
|
|
5147
|
+
actsOn: 'Switches a Steel, Trace, Revit, Tekla or Drawing Checker project’s History between Approvals (approved versions, saved work and rollback) and Activity (what happened in the project, and who started it)',
|
|
5148
|
+
anyInstance: 'Approvals or Activity',
|
|
5149
|
+
group: HISTORY_STEP,
|
|
5150
|
+
persistence: 'none',
|
|
5151
|
+
interaction: 'instant',
|
|
5152
|
+
risk: [],
|
|
5153
|
+
guidance: 'on-demand',
|
|
5154
|
+
why: 'Before a Steel project has its first model, History opens on Activity: Approvals has nothing to show until then.',
|
|
5155
|
+
});
|
|
5156
|
+
|
|
5105
5157
|
/* ── A General project’s RFIs step (#2470 R6.6): correspondence RFIs ───────────────────────── */
|
|
5106
5158
|
|
|
5107
5159
|
const RFIS_STEP = 'In a project’s RFIs step';
|
|
@@ -5331,6 +5383,27 @@
|
|
|
5331
5383
|
why: 'Each choice is final and stays in the RFI’s history. Sending it again asks you first, because the engineer may get it twice.',
|
|
5332
5384
|
});
|
|
5333
5385
|
|
|
5386
|
+
def('shell.project-rfi-earlier-rounds', {
|
|
5387
|
+
label: 'Earlier rounds of {instance}',
|
|
5388
|
+
actsOn: 'Shows or hides what was asked, sent, answered and closed in each round before the RFI was reopened',
|
|
5389
|
+
anyInstance: 'a reopened RFI',
|
|
5390
|
+
group: RFIS_STEP,
|
|
5391
|
+
persistence: 'none',
|
|
5392
|
+
interaction: 'instant',
|
|
5393
|
+
risk: [],
|
|
5394
|
+
guidance: 'on-demand',
|
|
5395
|
+
why: 'Reopening starts a fresh round on the same question. The earlier rounds stay in the record, oldest first, so you can see what was answered before.',
|
|
5396
|
+
});
|
|
5397
|
+
def('shell.project-rfi-earlier-rounds-again', {
|
|
5398
|
+
label: 'Try again',
|
|
5399
|
+
actsOn: 'Reads the earlier rounds of {instance} again after they could not be loaded',
|
|
5400
|
+
anyInstance: 'a reopened RFI',
|
|
5401
|
+
group: RFIS_STEP,
|
|
5402
|
+
persistence: 'none',
|
|
5403
|
+
interaction: 'instant',
|
|
5404
|
+
risk: [],
|
|
5405
|
+
guidance: 'on-demand',
|
|
5406
|
+
});
|
|
5334
5407
|
def('shell.project-rfi-settled-history', {
|
|
5335
5408
|
label: 'Sends of {instance} not confirmed',
|
|
5336
5409
|
actsOn: 'Shows or hides the Gmail sends FloLess couldn’t confirm, and what was chosen for each',
|
|
@@ -5565,7 +5638,7 @@
|
|
|
5565
5638
|
|
|
5566
5639
|
def('shell.project-rfi-cite', {
|
|
5567
5640
|
label: 'Cite…',
|
|
5568
|
-
actsOn: 'Lists this project’s Knowledge pages and the saved sheets of the projects linked on its Modules step,
|
|
5641
|
+
actsOn: 'Lists this project’s Knowledge pages to cite and, on a General project, the saved sheets of the projects linked on its Modules step; on a Trace or Drawing Checker project, its own sheets',
|
|
5569
5642
|
group: RFIS_STEP,
|
|
5570
5643
|
persistence: 'none',
|
|
5571
5644
|
interaction: 'dialog',
|
|
@@ -5573,6 +5646,27 @@
|
|
|
5573
5646
|
guidance: 'on-demand',
|
|
5574
5647
|
});
|
|
5575
5648
|
|
|
5649
|
+
// #2470 R6.6d: when filing finds that one cited item no longer matches, the person chooses how to go on.
|
|
5650
|
+
def('shell.project-rfi-cite-again', {
|
|
5651
|
+
label: 'Choose it again',
|
|
5652
|
+
actsOn: 'Opens Cite… so you can choose the item that changed again',
|
|
5653
|
+
group: RFIS_STEP,
|
|
5654
|
+
persistence: 'none',
|
|
5655
|
+
interaction: 'dialog',
|
|
5656
|
+
risk: [],
|
|
5657
|
+
guidance: 'on-demand',
|
|
5658
|
+
});
|
|
5659
|
+
|
|
5660
|
+
def('shell.project-rfi-file-without', {
|
|
5661
|
+
label: 'File without it',
|
|
5662
|
+
actsOn: 'Takes the item that changed out of what the RFI cites, then files the RFI. It sends nothing',
|
|
5663
|
+
group: RFIS_STEP,
|
|
5664
|
+
persistence: 'working',
|
|
5665
|
+
interaction: 'instant',
|
|
5666
|
+
risk: [],
|
|
5667
|
+
guidance: 'on-demand',
|
|
5668
|
+
});
|
|
5669
|
+
|
|
5576
5670
|
def('shell.project-rfi-cite-remove', {
|
|
5577
5671
|
label: 'Remove {instance}',
|
|
5578
5672
|
actsOn: 'Takes this item out of what the RFI cites',
|
|
@@ -5587,7 +5681,7 @@
|
|
|
5587
5681
|
def('shell.project-rfi-cite-option', {
|
|
5588
5682
|
label: '{instance}',
|
|
5589
5683
|
actsOn: 'Chooses or un-chooses this item to cite',
|
|
5590
|
-
anyInstance: 'a Knowledge page or a
|
|
5684
|
+
anyInstance: 'a Knowledge page or a sheet',
|
|
5591
5685
|
group: RFIS_STEP,
|
|
5592
5686
|
persistence: 'none',
|
|
5593
5687
|
interaction: 'instant',
|
|
@@ -5597,8 +5691,8 @@
|
|
|
5597
5691
|
|
|
5598
5692
|
def('shell.project-rfi-cite-retry', {
|
|
5599
5693
|
label: 'Try again',
|
|
5600
|
-
actsOn: 'Reads the
|
|
5601
|
-
anyInstance: 'a linked project',
|
|
5694
|
+
actsOn: 'Reads the sheets of {instance} again',
|
|
5695
|
+
anyInstance: 'a linked project or this project',
|
|
5602
5696
|
group: RFIS_STEP,
|
|
5603
5697
|
persistence: 'none',
|
|
5604
5698
|
interaction: 'instant',
|
|
@@ -6374,7 +6468,7 @@
|
|
|
6374
6468
|
interaction: 'instant',
|
|
6375
6469
|
risk: [],
|
|
6376
6470
|
guidance: 'on-demand',
|
|
6377
|
-
why: 'FloLess never sees your password. For Google Workspace, Gmail sending is always asked for so RFIs can be emailed; the Drive file list is asked for only when it is ticked. When offered, Connect first switches this computer to FloLess’s own Google sign-in, which stays even if you cancel.',
|
|
6471
|
+
why: 'FloLess never sees your password. For Google Workspace, Gmail sending is always asked for so RFIs can be emailed; the Drive file list is asked for only when it is ticked. When offered, Connect first switches this computer to FloLess’s own Google sign-in, which stays even if you cancel. Microsoft 365 switches to FloLess’s own Microsoft sign-in unless your own Microsoft app is already set up. The switch stays if you cancel, and other Microsoft accounts signed in before it need Reconnect.',
|
|
6378
6472
|
});
|
|
6379
6473
|
|
|
6380
6474
|
def('shell.integrations-google-drive-choice', {
|
|
@@ -6390,7 +6484,7 @@
|
|
|
6390
6484
|
|
|
6391
6485
|
def('shell.integrations-account-reconnect', {
|
|
6392
6486
|
label: 'Reconnect this account',
|
|
6393
|
-
actsOn: 'Opens the sign-in again for {instance} only. The first switch to FloLess’s own Google sign-in moves every account that has no sign-in file of its own',
|
|
6487
|
+
actsOn: 'Opens the sign-in again for {instance} only. The first switch to FloLess’s own Google or Microsoft sign-in moves every account of that service that has no sign-in file of its own',
|
|
6394
6488
|
group: 'In the Integrations dialog',
|
|
6395
6489
|
persistence: 'external',
|
|
6396
6490
|
interaction: 'instant',
|
|
@@ -1185,7 +1185,7 @@
|
|
|
1185
1185
|
|
|
1186
1186
|
def('steel.member-end-filter', {
|
|
1187
1187
|
label: 'Filter reviewed members',
|
|
1188
|
-
actsOn: 'Narrows the review list to members whose
|
|
1188
|
+
actsOn: 'Narrows the review list to members whose ID, type or reason matches what you type',
|
|
1189
1189
|
group: 'In the Properties panel',
|
|
1190
1190
|
persistence: 'none',
|
|
1191
1191
|
interaction: 'instant',
|
|
@@ -2118,7 +2118,24 @@
|
|
|
2118
2118
|
def('steel.show-ai-decisions', { label: 'Show AI decisions', actsOn: 'Shows or hides the marks on member ends and connections that rest on an AI decision, in 2D and 3D', group: 'In the ⋯ menu — Display', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'An open square marks a member end whose height the AI chose; a ring marks a connection the AI assumed. The row is only there when a member end or connection is marked. The AI decisions strip and the Properties note stay either way.' });
|
|
2119
2119
|
def('steel.ai-decisions-note', { label: 'AI decisions details', actsOn: 'Opens the list of AI decisions that bear on the whole model, and what the marks and the label each describe', group: 'On the steel canvas', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A mark is what FloLess can trace. Members without one may still rest on AI decisions it cannot trace, such as the Drawing Filter or the model origin.' });
|
|
2120
2120
|
def('steel.ai-decision-view-note', { label: 'AI-chosen view setup', actsOn: 'Says that the AI decided the scale or level of {instance}', anyInstance: 'a drawing view', group: 'On the steel canvas', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Every member drawn on that view rests on the choice, so it is a note on the view rather than a mark on each member. Not reviewed.' });
|
|
2121
|
-
def('steel.inspector-ai-decisions', { label: 'Rests on AI decisions', actsOn: 'Lists each AI decision the selected member rests on: what the AI chose, and why', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: '
|
|
2121
|
+
def('steel.inspector-ai-decisions', { label: 'Rests on AI decisions', actsOn: 'Lists each AI decision the selected member rests on: what the AI chose, and why', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Each one says whether you reviewed it in Make precise, and the member may still rest on others FloLess cannot trace.' });
|
|
2122
|
+
/* #2521 row 8a: Make precise. The person reviews the AI decisions the saved model rests on and confirms each. A review
|
|
2123
|
+
is recorded on the project's AI-decision record and changes nothing in the model; only the person, from this window,
|
|
2124
|
+
can confirm (the AI chat's action only opens this screen). */
|
|
2125
|
+
def('steel.make-precise-open', { label: 'Make precise', actsOn: 'Opens the AI decisions this model rests on that you have not reviewed yet, grouped, in the Properties panel', group: 'On the steel canvas', persistence: 'none', interaction: 'mode', risk: [], guidance: 'on-demand', why: 'A Quick model stays a Quick model until you have reviewed every AI decision it rests on. The button shows how many are left.' });
|
|
2126
|
+
def('steel.make-precise-close', { label: 'Done with Make precise', actsOn: 'Closes Make precise and gives the Properties panel back', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'What you confirmed is already saved. Make precise in the AI decisions strip opens the list again.' });
|
|
2127
|
+
def('steel.make-precise-retry', { label: 'Read the AI decisions again', actsOn: 'Asks FloLess for the list of AI decisions to review again, after it could not be read', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2128
|
+
def('steel.make-precise-confirm', { label: 'Confirm an AI decision', actsOn: 'Records that you reviewed {instance}', anyInstance: 'an AI decision', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'It records your look at the decision. It does not check the value or change the model. Only you can confirm, from this window: the AI chat cannot.' });
|
|
2129
|
+
def('steel.make-precise-confirm-all', { label: 'Confirm a group of AI decisions', actsOn: 'Records that you reviewed every decision in {instance}', anyInstance: 'a group of AI decisions', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A group of more than ten asks once more, in place, before anything is recorded.' });
|
|
2130
|
+
def('steel.make-precise-confirm-all-cancel', { label: 'Cancel confirming a group', actsOn: 'Leaves the group unconfirmed', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2131
|
+
def('steel.make-precise-locate', { label: 'Select what an AI decision bears on', actsOn: 'Selects and frames the members {instance} bears on', anyInstance: 'an AI decision', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The list stays open, so you can look at the members on the canvas and come back to confirm.' });
|
|
2132
|
+
def('steel.make-precise-why', { label: 'Why the AI decided', actsOn: 'Shows the reason, confidence, evidence and what {instance} affects', anyInstance: 'an AI decision', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2133
|
+
def('steel.make-precise-change-height', { label: 'Change an AI-chosen height', actsOn: 'Selects the member ends that carry {instance} and shows them in Properties, where you type the new height', anyInstance: 'an AI-chosen height', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A height you type replaces the AI decision on that end. The decision stays until no member end uses it.' });
|
|
2134
|
+
def('steel.make-precise-mark-changed', { label: 'Mark an AI decision changed', actsOn: 'Opens, under {instance}, where to change it and a place to record that you changed it yourself', anyInstance: 'an AI decision', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'You change the decision in the model yourself (in the editor, or by reading the drawings again). Not offered for a height, which you type in Elevation, nor for a view scale or the grid origin, which an existing model cannot change.' });
|
|
2135
|
+
def('steel.make-precise-mark-changed-record', { label: 'Record that you changed an AI decision', actsOn: 'Records that you changed {instance} in the model yourself, with your note', anyInstance: 'an AI decision', group: 'In the Properties panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'It is your own statement and counts as reviewed: FloLess does not check the model. It counts for the working copy and versions saved after it, never for older ones. Only you can record it, from this window: the AI chat cannot.' });
|
|
2136
|
+
def('steel.make-precise-mark-changed-note', { label: 'What you changed', actsOn: 'Notes what you changed about {instance}, kept with the record', anyInstance: 'an AI decision', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Optional, at most 600 characters. Inspect shows it beside the change, so the next person sees what was done instead of the AI’s choice.' });
|
|
2137
|
+
def('steel.make-precise-mark-changed-cancel', { label: 'Cancel marking a decision changed', actsOn: 'Closes the area without recording anything', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2138
|
+
def('steel.make-precise-more', { label: 'Show more AI decisions in a group', actsOn: 'Shows up to twenty-five more of the AI decisions in {instance}', anyInstance: 'a group of AI decisions', group: 'In the Properties panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Each group shows its first five decisions, so every group and its Confirm all stay in reach.' });
|
|
2122
2139
|
def('steel.quick-model-chip', { label: 'Quick model label', actsOn: 'Says that the model, as last saved, was built by the AI deciding where it would have asked you', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A Quick model is fine for a tender or an estimate but is not precise. The label describes the model as last saved; "Possibly Quick" means FloLess could not read which AI decisions it rests on.' });
|
|
2123
2140
|
def('steel.confidence-report', { label: 'Open confidence report', actsOn: 'Opens the recorded drawing-confidence review', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Shows current field-level read evidence without changing the model.' });
|
|
2124
2141
|
|
|
@@ -2347,6 +2364,9 @@
|
|
|
2347
2364
|
def('steel.rfi-read-toggle', { label: 'Show questions', actsOn: 'Shows or hides the questions of {instance} from the drawing read', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A kind with many questions opens on request, so it does not bury the RFIs below it.' });
|
|
2348
2365
|
def('steel.rfi-group-toggle', { label: 'Show occurrences', actsOn: 'Expands or collapses the ordered occurrences in {instance}', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A grouped question remains one RFI. Expanding it reveals each occurrence’s own status, drawing destination and scoped actions without creating duplicate rows.' });
|
|
2349
2366
|
def('steel.rfi-group-elsewhere', { label: 'Show elsewhere in this RFI', actsOn: 'Reveals occurrences from {instance} that are not on the current sheet', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The sheet filter keeps a grouped RFI indivisible. Matching occurrences stay first; this disclosure reveals the rest without pretending they belong to the current sheet.' });
|
|
2367
|
+
def('steel.rfi-earlier-rounds', { label: 'Earlier rounds', actsOn: 'Shows or hides what was asked, sent, answered and closed in each round before {instance} was reopened', anyInstance: 'a reopened RFI', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Reopening starts a fresh round on the same question. The earlier rounds stay in the record, oldest first; on an RFI that groups several questions, each question keeps its own rounds, and a send there was one email for the whole RFI.' });
|
|
2368
|
+
def('steel.rfi-earlier-rounds-again', { label: 'Try again', actsOn: 'Reads the earlier rounds of {instance} again after they could not be loaded', anyInstance: 'a reopened RFI', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
2369
|
+
def('steel.rfi-filed-by', { label: 'Filed by you', actsOn: 'Shows when you filed {instance}', anyInstance: 'an RFI you filed', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'An RFI you filed yourself, from the questions a drawing read asked or from the model, says so beside its number; the exact date and time show when you point at it or move to it with the keyboard. RFIs the read filed on its own carry no such label.' });
|
|
2350
2370
|
def('steel.rfi-technical', { label: 'Technical details', actsOn: 'Shows the stored technical identity for {instance}', group: 'In a steel project’s RFIs step', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The internal gap key is useful for diagnosis but is not a user-facing action selector, so it stays behind this disclosure.' });
|
|
2351
2371
|
/* The bookkeeping action verbs (#1090 slice 5b-ii), plus the distinct connected-Gmail boundary.
|
|
2352
2372
|
ONE id per gesture, with the ROW as the instance: `steel.rfi-send` is the same bookkeeping
|
|
@@ -67,6 +67,10 @@ button.link{background:none;border:none;color:var(--brand);padding:0;text-decora
|
|
|
67
67
|
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
|
|
68
68
|
input[type=text],textarea{background:var(--bg);color:var(--text);border:1px solid var(--ctrl-border);border-radius:6px;padding:5px 8px;font:12px var(--ui);width:100%}
|
|
69
69
|
input[type=text]:focus,textarea:focus{border-color:var(--brand);outline:none}
|
|
70
|
+
input[type=text][aria-invalid="true"],input[type=text][aria-invalid="true"]:focus{border-color:var(--err)}
|
|
71
|
+
.pt-field{display:inline-flex;align-items:center;gap:6px;margin:0 0 2px}
|
|
72
|
+
.clear-panel .pt-field input[type=text]{width:72px;text-align:right;font-variant-numeric:tabular-nums}
|
|
73
|
+
.pt-unit{color:var(--mut);font-size:12px}
|
|
70
74
|
textarea{display:block;resize:vertical;line-height:1.45;min-height:3.2em}
|
|
71
75
|
/* Every checkbox and radio is drawn here — no browser widget in either theme. */
|
|
72
76
|
input[type=checkbox],input[type=radio]{-webkit-appearance:none;appearance:none;width:15px;height:15px;flex:none;margin:0;border:1px solid var(--ctrl-border);background:var(--bg);cursor:pointer;vertical-align:middle}
|
|
@@ -235,6 +235,42 @@ export function mainPartHtml(it, { touched = false, note = '', locatedOn = false
|
|
|
235
235
|
<p class="note">Normally the main part is the part-list row whose mark is the assembly mark in the drawing title. “Part list agrees with the title” and “Every part is located” both use it. Choose No only if this client lists the main part under a different mark.</p>
|
|
236
236
|
${unticked}${note ? `<p class="note" role="status">${esc(note)}</p>` : ''}</div>`;
|
|
237
237
|
}
|
|
238
|
+
/** The largest line break a checklist may set, pt (server `MAX_LINE_BREAK_PT`). */
|
|
239
|
+
export const MAX_LINE_BREAK_PT = 3;
|
|
240
|
+
/**
|
|
241
|
+
* A typed line break, in points: a number from 0 to MAX_LINE_BREAK_PT (a comma for the decimal point and a trailing
|
|
242
|
+
* "pt" are fine), rounded to tenths; or `{ why }` saying what is wrong. Nothing is saved from a value that is not one.
|
|
243
|
+
*/
|
|
244
|
+
export function parseLineBreak(text) {
|
|
245
|
+
const t = String(text).trim().replace(/\s*pt$/i, '').replace(',', '.');
|
|
246
|
+
if (!/^\d*\.?\d+$|^\d+\.$/.test(t)) return { why: 'Enter a size from 0 to 3 pt, for example 0.6. Nothing was saved.' };
|
|
247
|
+
const v = Number(t);
|
|
248
|
+
if (v > MAX_LINE_BREAK_PT) return { why: `${MAX_LINE_BREAK_PT} pt is the most FloLess closes. Nothing was saved.` };
|
|
249
|
+
return { pt: Math.round(v * 10) / 10 };
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* The line break "Every part is located" closes a part's outline across (#2825, owner ruling 2026-10-28): learned from
|
|
253
|
+
* the references, the person's to change. Shown under that item; editable whether or not it is ticked.
|
|
254
|
+
*/
|
|
255
|
+
/** @param {any} it @param {{ touched?: boolean, note?: string, error?: string, typed?: string | null }} [opts] */
|
|
256
|
+
export function lineBreakHtml(it, { touched = false, note = '', error = '', typed = null } = {}) {
|
|
257
|
+
const r = it.rule, pt = typeof r.lineBreakPt === 'number' ? r.lineBreakPt : 0, seen = r.lineBreakSeen;
|
|
258
|
+
const plural = (n, one, many) => `${n} ${n === 1 ? one : many}`;
|
|
259
|
+
const chip = touched ? 'set by you'
|
|
260
|
+
: seen && pt > 0 ? `learned from ${plural(seen.breaks, 'break', 'breaks')} on ${plural(seen.sheets, 'reference sheet', 'reference sheets')}`
|
|
261
|
+
: 'no breaks seen in the references';
|
|
262
|
+
const why = touched || pt > 0
|
|
263
|
+
? 'Many firms draw a member’s lines in pieces, with a small break where nothing crosses. When a part’s outline is broken by no more than this, FloLess closes it and says so in the result, as an assumption. 0 closes no break.'
|
|
264
|
+
: 'No breaks were seen in your reference drawings, so FloLess closes none. Enter a size, up to 3 pt, if your drawings have them.';
|
|
265
|
+
return `<div class="clear-panel" role="group" aria-labelledby="line-break-h">
|
|
266
|
+
<p class="clear-head"><span id="line-break-h">Breaks in drawn lines: the largest break FloLess closes</span> <span class="chip">${esc(chip)}</span></p>
|
|
267
|
+
<div class="pt-field"><input type="text" id="line-break-pt" inputmode="decimal" autocomplete="off" spellcheck="false" value="${esc(typed ?? String(pt))}"
|
|
268
|
+
aria-label="Largest break closed, in points" aria-describedby="line-break-note${error ? ' line-break-err' : ''}" aria-invalid="${error ? 'true' : 'false'}"
|
|
269
|
+
data-tip="Its size on paper, 0 to 3 pt. 0 closes no break." data-command-id="drawing-check.line-break" data-command-instance-label="Largest break closed"><span class="pt-unit" aria-hidden="true">pt</span></div>
|
|
270
|
+
${error ? `<p class="err-line" id="line-break-err" role="alert">${esc(error)}</p>` : ''}
|
|
271
|
+
<p class="note" id="line-break-note">${why}</p>
|
|
272
|
+
${it.enabled ? '' : '<p class="note">This item is not ticked, so this setting is not used.</p>'}${note ? `<p class="note" role="status">${esc(note)}</p>` : ''}</div>`;
|
|
273
|
+
}
|
|
238
274
|
export const KIND_WORDS = { standard: 'standard holes', oversize: 'oversize holes', 'short-slot': 'short slots', 'long-slot': 'long slots' };
|
|
239
275
|
export const STANDARD_NAMES = { us: 'US practice (AISC J3.3, standard holes)', en1090: 'EN 1090-2 (normal round holes)' };
|
|
240
276
|
function lenText(l) {
|
|
@@ -672,7 +708,7 @@ function boot() {
|
|
|
672
708
|
|
|
673
709
|
// ── loading ──
|
|
674
710
|
async function loadDraft() {
|
|
675
|
-
S.clearNote = ''; S.mainNote = ''; // a note about the last change says nothing true about a draft read afresh
|
|
711
|
+
S.clearNote = ''; S.mainNote = ''; S.breakNote = ''; S.breakError = ''; S.breakTyped = null; // a note about the last change says nothing true about a draft read afresh
|
|
676
712
|
const res = await fetch(`/api/contract/${encodeURIComponent(APP)}?project=${encodeURIComponent(PROJECT)}&quietMissing=1`, { credentials: 'same-origin' });
|
|
677
713
|
if (res.status === 204) { S.draft = null; S.etag = null; return; }
|
|
678
714
|
if (res.status === 404) throw new Error('This profile could not be found. It may have been archived; open it again from Workspaces.');
|
|
@@ -1037,7 +1073,8 @@ function boot() {
|
|
|
1037
1073
|
<span class="lbl">${esc(it.label)}<span class="origin">${esc(origin)}</span></span>
|
|
1038
1074
|
${pct !== null ? `<span class="freq${pct < 50 ? ' rare' : ''}" data-tip="How often this held on the reference drawings"><span class="bar"><i style="width:${pct}%"></i></span>${pct}%</span>` : '<span></span>'}
|
|
1039
1075
|
<span class="kind">by code</span></label>${it.rule && it.rule.type === 'hole-bolt' ? clearancesHtml(it, S.clearNote) : ''}${it.rule && it.rule.type === 'part-list-agrees' && mainRowItem(list) === it
|
|
1040
|
-
? mainPartHtml(it, { touched: ((S.draft && S.draft.touched) || []).includes(`item:${it.id}.mainRow`), note: S.mainNote, locatedOn: list.some((x) => x.enabled && x.rule && x.rule.type === 'parts-located') }) : ''}
|
|
1076
|
+
? mainPartHtml(it, { touched: ((S.draft && S.draft.touched) || []).includes(`item:${it.id}.mainRow`), note: S.mainNote, locatedOn: list.some((x) => x.enabled && x.rule && x.rule.type === 'parts-located') }) : ''}${it.rule && it.rule.type === 'parts-located'
|
|
1077
|
+
? lineBreakHtml(it, { touched: ((S.draft && S.draft.touched) || []).includes(`item:${it.id}.lineBreakPt`), note: S.breakNote, error: S.breakError, typed: S.breakTyped }) : ''}`;
|
|
1041
1078
|
}).join('');
|
|
1042
1079
|
return `<div class="wrap"><h2>Checklist</h2>
|
|
1043
1080
|
<p class="lede">Common doesn’t mean required. Tick only what this client needs.</p>
|
|
@@ -1102,6 +1139,36 @@ function boot() {
|
|
|
1102
1139
|
} finally { itemsInFlight--; }
|
|
1103
1140
|
});
|
|
1104
1141
|
}
|
|
1142
|
+
// The line break: one PUT on the checklist queue, as the main part setting. Each save is numbered: an earlier
|
|
1143
|
+
// answer never puts back a value over a later one still queued (diff review r1), and the answer to the last save
|
|
1144
|
+
// shows what was saved even when other edits are still queued.
|
|
1145
|
+
let breakSaves = 0;
|
|
1146
|
+
function putLineBreak(pt) {
|
|
1147
|
+
itemsInFlight++;
|
|
1148
|
+
const save = ++breakSaves;
|
|
1149
|
+
return itemsQueue(async () => {
|
|
1150
|
+
S.checklistError = ''; S.breakNote = '';
|
|
1151
|
+
try {
|
|
1152
|
+
const { body } = await call(`${base}/line-break`, jsonOpts('PUT', { pt }, S.etag ? { 'if-match': S.etag } : {}));
|
|
1153
|
+
S.etag = body.etag;
|
|
1154
|
+
S.breakNote = pt ? `The largest break closed is now ${pt} pt. The checklist has to be approved again.` : 'Breaks in drawn lines are no longer closed. The checklist has to be approved again.';
|
|
1155
|
+
const r7 = body.items.find((x) => x.rule && x.rule.type === 'parts-located');
|
|
1156
|
+
if (r7) S.draft.touched = [...new Set([...(S.draft.touched || []), `item:${r7.id}.lineBreakPt`])];
|
|
1157
|
+
if (itemsInFlight === 1) { S.draft.items = body.items; await loadReview(); render(); }
|
|
1158
|
+
else if (save === breakSaves) {
|
|
1159
|
+
const mine = items().find((x) => x.rule && x.rule.type === 'parts-located');
|
|
1160
|
+
if (mine && r7) { mine.rule.lineBreakPt = r7.rule.lineBreakPt; render(); }
|
|
1161
|
+
}
|
|
1162
|
+
// Otherwise a later save is still queued: its value stays as shown, and the note waits for its answer.
|
|
1163
|
+
else S.breakNote = '';
|
|
1164
|
+
} catch (e) {
|
|
1165
|
+
if (e.status === 412 || e.status === 428) S.conflict = true;
|
|
1166
|
+
else S.checklistError = e.message;
|
|
1167
|
+
await loadDraft().catch(() => {});
|
|
1168
|
+
render();
|
|
1169
|
+
} finally { itemsInFlight--; }
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1105
1172
|
// Whether the main part's mark is the assembly mark: one PUT on the checklist queue, as the clearance fill.
|
|
1106
1173
|
// Each main part click is numbered: an answer settles the choice on the page unless a later click is on its way.
|
|
1107
1174
|
let mainClicks = 0;
|
|
@@ -2260,6 +2327,19 @@ function boot() {
|
|
|
2260
2327
|
document.getElementById('client-name')?.focus();
|
|
2261
2328
|
return;
|
|
2262
2329
|
}
|
|
2330
|
+
if (t.id === 'line-break-pt') {
|
|
2331
|
+
const it = items().find((x) => x.rule && x.rule.type === 'parts-located');
|
|
2332
|
+
if (!it) return;
|
|
2333
|
+
const got = parseLineBreak(t.value);
|
|
2334
|
+
// A value that is not one is said beside the field, which keeps what was typed; nothing is saved.
|
|
2335
|
+
if ('why' in got) { S.breakError = got.why; S.breakTyped = t.value; S.breakNote = ''; render(); refocusIfLost(document, root, '#line-break-pt'); return; }
|
|
2336
|
+
S.breakError = ''; S.breakTyped = null;
|
|
2337
|
+
const was = typeof it.rule.lineBreakPt === 'number' ? it.rule.lineBreakPt : 0;
|
|
2338
|
+
if (got.pt !== was) { it.rule.lineBreakPt = got.pt; render(); await putLineBreak(got.pt); }
|
|
2339
|
+
else render();
|
|
2340
|
+
refocusIfLost(document, root, '#line-break-pt');
|
|
2341
|
+
return;
|
|
2342
|
+
}
|
|
2263
2343
|
if (t.dataset.tbLabel) {
|
|
2264
2344
|
const name = t.dataset.tbLabel;
|
|
2265
2345
|
const f = ((S.draft && S.draft.titleBlock && S.draft.titleBlock.fields) || []).find((x) => x.name === name);
|
package/dist/web/index.html
CHANGED
|
@@ -456,6 +456,12 @@
|
|
|
456
456
|
point at — the button already says what it does. -->
|
|
457
457
|
<button data-command-id="shell.attach-revision" type="button" id="ws-attach-revision" class="btn-mini" data-tip="Attach revised PDF drawings — your terminal AI reads them into a new version" hidden>⤒ Attach revised drawings…</button>
|
|
458
458
|
<input data-command-id="shell.attach-revision" type="file" id="ws-revision-file" accept=".pdf" multiple hidden>
|
|
459
|
+
<!-- #2470 R6.5b: a module project's History step has two views: its approval ledger and its activity journal.
|
|
460
|
+
Shown only on that step (setStep). A radiogroup, not tabs: this row is already the step tablist. -->
|
|
461
|
+
<span class="ws-history-views" id="ws-history-views" role="radiogroup" aria-label="Show history as" hidden>
|
|
462
|
+
<button data-command-id="shell.history-view#approvals" type="button" role="radio" aria-checked="true" tabindex="0" data-history-view="approvals" aria-controls="ws-history" data-tip="Approved versions, saved work and rollback.">Approvals</button>
|
|
463
|
+
<button data-command-id="shell.history-view#activity" type="button" role="radio" aria-checked="false" tabindex="-1" data-history-view="activity" aria-controls="ws-journal" data-tip="What happened in this project, newest first: knowledge, workflows, RFIs and more, and who started each.">Activity</button>
|
|
464
|
+
</span>
|
|
459
465
|
</span>
|
|
460
466
|
</div>
|
|
461
467
|
<!-- The announcer stays outside the bounded visual region so it is mounted before the first
|
|
@@ -57,6 +57,23 @@
|
|
|
57
57
|
noAuthor: 'Older events and some automatic ones don’t show who did them.',
|
|
58
58
|
stale: 'Couldn’t refresh the history, so this is what was read before. Try again in a moment.',
|
|
59
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* The words that differ on a module project (#2470 R6.5b), where this is the Activity view beside the approval ledger:
|
|
62
|
+
* a module project links no modules, and its approved versions are in the other view.
|
|
63
|
+
*/
|
|
64
|
+
const VARIANTS = {
|
|
65
|
+
general: { aria: 'Project history', sub: 'What happened in this project, newest first: when, and from where.', empty: S.empty,
|
|
66
|
+
loading: S.loading, unavailable: S.unavailable, failed: S.failed },
|
|
67
|
+
module: {
|
|
68
|
+
aria: 'Project activity',
|
|
69
|
+
sub: 'What happened in this project, newest first: when, and from where. Approved versions are under Approvals.',
|
|
70
|
+
empty: 'Nothing has been recorded in this project yet. Adding knowledge, creating a workflow or raising an RFI shows up here.',
|
|
71
|
+
// “History” is the ledger’s word on these projects, so the states say “activity”.
|
|
72
|
+
loading: 'Reading activity…',
|
|
73
|
+
unavailable: 'Activity isn’t available right now.',
|
|
74
|
+
failed: 'FloLess couldn’t read this project’s activity. Check that FloLess is running, then try again.',
|
|
75
|
+
},
|
|
76
|
+
};
|
|
60
77
|
|
|
61
78
|
const when = (iso) => {
|
|
62
79
|
const t = Date.parse(iso);
|
|
@@ -83,13 +100,15 @@
|
|
|
83
100
|
}
|
|
84
101
|
|
|
85
102
|
function skeleton(pane, st) {
|
|
86
|
-
|
|
103
|
+
const words = VARIANTS[st.variant];
|
|
104
|
+
if (pane.dataset.phIdentity === st.identity && pane.dataset.phVariant === st.variant && pane.querySelector('.ph-list-host')) return;
|
|
87
105
|
pane.dataset.phProject = st.projectId;
|
|
88
106
|
pane.dataset.phIdentity = st.identity;
|
|
107
|
+
pane.dataset.phVariant = st.variant;
|
|
89
108
|
pane.setAttribute('role', 'region');
|
|
90
|
-
pane.setAttribute('aria-label',
|
|
109
|
+
pane.setAttribute('aria-label', words.aria);
|
|
91
110
|
pane.innerHTML = '<div class="step-head"><span>History</span></div>'
|
|
92
|
-
+
|
|
111
|
+
+ `<p class="pg-sub">${esc(words.sub)}</p>`
|
|
93
112
|
+ '<div class="ph-tools" hidden><input type="search" class="ws-landing-search ph-search" data-ph-search="1" placeholder="Search history"'
|
|
94
113
|
+ ' aria-label="Search history" autocomplete="off" data-command-id="shell.project-history-search">'
|
|
95
114
|
+ '<p class="rh-cut ph-note" hidden></p></div>'
|
|
@@ -147,14 +166,14 @@
|
|
|
147
166
|
host.querySelector('.ph-said').textContent = st.error;
|
|
148
167
|
} else {
|
|
149
168
|
pane.dataset.phState = 'loading';
|
|
150
|
-
host.innerHTML = `<p class="pg-loading-line" role="status">${esc(
|
|
169
|
+
host.innerHTML = `<p class="pg-loading-line" role="status">${esc(VARIANTS[st.variant].loading)}</p>`;
|
|
151
170
|
}
|
|
152
171
|
return;
|
|
153
172
|
}
|
|
154
173
|
if (st.unavailable) {
|
|
155
174
|
pane.dataset.phState = 'unavailable';
|
|
156
175
|
tools.hidden = true;
|
|
157
|
-
host.innerHTML = `<div class="pg-empty" role="status"><p>${esc(
|
|
176
|
+
host.innerHTML = `<div class="pg-empty" role="status"><p>${esc(VARIANTS[st.variant].unavailable)}</p><p class="ph-said"></p><p>${RETRY}</p></div>`;
|
|
158
177
|
host.querySelector('.ph-said').textContent = st.unavailable;
|
|
159
178
|
return;
|
|
160
179
|
}
|
|
@@ -163,7 +182,7 @@
|
|
|
163
182
|
tools.hidden = true;
|
|
164
183
|
// An empty list read before is not proof that nothing happened since: a failed refresh says so here too.
|
|
165
184
|
host.innerHTML = (st.stale ? `<div class="pg-wf-note ph-stale" role="status"><span>${esc(S.stale)}</span> ${RETRY}</div>` : '')
|
|
166
|
-
+ `<div class="pg-empty"><p>${esc(
|
|
185
|
+
+ `<div class="pg-empty"><p>${esc(VARIANTS[st.variant].empty)}</p></div>`;
|
|
167
186
|
return;
|
|
168
187
|
}
|
|
169
188
|
pane.dataset.phState = 'ready';
|
|
@@ -232,7 +251,7 @@
|
|
|
232
251
|
// Keep what is shown, and say it may be out of date.
|
|
233
252
|
if (st.loaded && !st.unavailable) { st.stale = true; paint(pane); return; }
|
|
234
253
|
st.loaded = false;
|
|
235
|
-
st.error = typeof err?.body?.error === 'string' && err.body.error ? err.body.error :
|
|
254
|
+
st.error = typeof err?.body?.error === 'string' && err.body.error ? err.body.error : VARIANTS[st.variant].failed;
|
|
236
255
|
paint(pane);
|
|
237
256
|
return;
|
|
238
257
|
}
|
|
@@ -332,10 +351,14 @@
|
|
|
332
351
|
});
|
|
333
352
|
}
|
|
334
353
|
|
|
335
|
-
/**
|
|
336
|
-
|
|
354
|
+
/**
|
|
355
|
+
* Show `project`'s history in `pane` (the step was opened): the cache at once, then a fresh read of the newest page.
|
|
356
|
+
* `opts.variant` 'module' is the Activity view of a module project's History step (#2470 R6.5b); it changes words only.
|
|
357
|
+
*/
|
|
358
|
+
function render(pane, project, opts) {
|
|
337
359
|
if (!pane || !project?.id) return;
|
|
338
360
|
const st = stateFor(pane, project);
|
|
361
|
+
st.variant = opts?.variant === 'module' ? 'module' : 'general';
|
|
339
362
|
skeleton(pane, st);
|
|
340
363
|
const input = pane.querySelector('[data-ph-search]');
|
|
341
364
|
if (input && input.value !== st.query) input.value = st.query;
|
|
@@ -353,6 +353,11 @@
|
|
|
353
353
|
}
|
|
354
354
|
if (moduleLink.ok === false) {
|
|
355
355
|
if (moduleLink.code === 'link-declined') { toast(`“${project.name}” was created. You chose not to link it, so it stays unlinked.`, 'info'); return; }
|
|
356
|
+
// #2470 R6.7b: the link couldn't be made when it was started from chat, and the person chose to go on without it.
|
|
357
|
+
if (moduleLink.code === 'link-skipped') {
|
|
358
|
+
toast(`“${project.name}” was created without a link to ${general}. You can link it from that project’s Modules step.${next ? ` ${next}` : ''}`, 'info', { action: back });
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
356
361
|
toast(moduleLink.code === 'link-removed'
|
|
357
362
|
? `“${project.name}” was made by an earlier try. Its link was removed since, so it stays unlinked.`
|
|
358
363
|
: `“${project.name}” was created but couldn’t be linked to ${general}. Nothing was lost; you can link it from the Modules step. ${moduleLink.error || ''}`.trim(),
|