@datagrok/hit-triage 1.10.9 → 1.11.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/.grokignore +2 -0
- package/.turbo/turbo-build.log +25 -3
- package/CHANGELOG.md +78 -0
- package/CLAUDE.md +87 -10
- package/README_HD.md +14 -14
- package/README_HT.md +6 -6
- package/README_PH.md +110 -0
- package/bdd/bdd.config.json +3 -1
- package/bdd/bindings/campaign.ts +626 -0
- package/bdd/bindings/hit-design.ts +36 -42
- package/bdd/bindings/landing.ts +839 -0
- package/bdd/bindings/pepti-hit.ts +35 -0
- package/bdd/features/campaign/crumbs.feature +22 -0
- package/bdd/features/campaign/grid.feature +56 -0
- package/bdd/features/campaign/merge.feature +105 -0
- package/bdd/features/campaign/molecule-vid.feature +40 -0
- package/bdd/features/campaign/permissions.feature +46 -0
- package/bdd/features/campaign/progress-tracker.feature +89 -0
- package/bdd/features/campaign/refresh-hint.feature +33 -0
- package/bdd/features/campaign/ribbon.feature +49 -0
- package/bdd/features/campaign/stage-choices.feature +39 -0
- package/bdd/features/campaign/submit.feature +135 -0
- package/bdd/features/campaign/tracker-cards.feature +46 -0
- package/bdd/features/campaign/view-only.feature +37 -0
- package/bdd/features/landing/campaign-deep-links.feature +61 -0
- package/bdd/features/landing/hit-design-campaigns-fixes.feature +116 -0
- package/bdd/features/landing/hit-design-campaigns.feature +153 -0
- package/bdd/features/landing/hit-triage-campaigns.feature +99 -0
- package/bdd/features/landing/new-campaign.feature +69 -0
- package/bdd/features/landing/pep-triage-campaigns.feature +41 -0
- package/bdd/features/landing/pepti-hit-landing.feature +132 -0
- package/bdd/features/pepti-hit/helm-edit.feature +47 -0
- package/bdd/features/templates/template-editor.feature +130 -0
- package/bdd/features/templates/template-picker.feature +112 -0
- package/bdd/features/templates/triage-forms.feature +59 -0
- package/bdd/fixtures/bar-chart.layout +1 -0
- package/bdd/fixtures/merge-local.csv +2 -0
- package/bdd/generated/campaign/crumbs.test.ts +33 -0
- package/bdd/generated/campaign/grid.test.ts +79 -0
- package/bdd/generated/campaign/merge.test.ts +134 -0
- package/bdd/generated/campaign/molecule-vid.test.ts +52 -0
- package/bdd/generated/campaign/permissions.test.ts +58 -0
- package/bdd/generated/campaign/progress-tracker.test.ts +129 -0
- package/bdd/generated/campaign/refresh-hint.test.ts +44 -0
- package/bdd/generated/campaign/ribbon.test.ts +65 -0
- package/bdd/generated/campaign/stage-choices.test.ts +55 -0
- package/bdd/generated/campaign/submit.test.ts +167 -0
- package/bdd/generated/campaign/tracker-cards.test.ts +49 -0
- package/bdd/generated/campaign/view-only.test.ts +51 -0
- package/bdd/generated/hit-design/campaign-column-metadata.test.ts +1 -0
- package/bdd/generated/landing/campaign-deep-links.test.ts +68 -0
- package/bdd/generated/landing/hit-design-campaigns-fixes.test.ts +99 -0
- package/bdd/generated/landing/hit-design-campaigns.test.ts +160 -0
- package/bdd/generated/landing/hit-triage-campaigns.test.ts +107 -0
- package/bdd/generated/landing/new-campaign.test.ts +78 -0
- package/bdd/generated/landing/pep-triage-campaigns.test.ts +52 -0
- package/bdd/generated/landing/pepti-hit-landing.test.ts +130 -0
- package/bdd/generated/pepti-hit/helm-edit.test.ts +64 -0
- package/bdd/generated/templates/template-editor.test.ts +137 -0
- package/bdd/generated/templates/template-picker.test.ts +119 -0
- package/bdd/generated/templates/triage-forms.test.ts +68 -0
- package/css/hit-triage.css +27 -23
- package/dist/package-test.js +690 -4
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +318 -73
- package/dist/package.js.map +1 -1
- package/package.json +11 -7
- package/queries/locks.sql +37 -0
- package/src/app/accordeons/layout-input.ts +52 -44
- package/src/app/accordeons/new-campaign-accordeon.ts +91 -54
- package/src/app/accordeons/new-hit-design-campaign-accordeon.ts +3 -67
- package/src/app/accordeons/new-pep-triage-template-accordeon.ts +39 -41
- package/src/app/accordeons/new-template-accordeon.ts +41 -24
- package/src/app/ai/view-functions.ts +22 -19
- package/src/app/base-view.ts +99 -8
- package/src/app/consts.ts +8 -5
- package/src/app/dialogs/functions-dialog.ts +14 -9
- package/src/app/dialogs/merge-table-dialog.ts +181 -325
- package/src/app/hit-app-base.ts +61 -90
- package/src/app/hit-design-app.ts +481 -886
- package/src/app/hit-design-views/info-view.ts +57 -407
- package/src/app/hit-design-views/submit-view.ts +216 -111
- package/src/app/hit-design-views/tiles-view.ts +168 -123
- package/src/app/hit-design-views/utils.css +0 -8
- package/src/app/hit-triage-app.ts +69 -38
- package/src/app/hit-triage-views/info-view.ts +70 -371
- package/src/app/pep-triage-app.ts +2 -2
- package/src/app/pep-triage-views/info-view.ts +42 -83
- package/src/app/pepti-hit-app.ts +32 -183
- package/src/app/pepti-hits-views/info-view.ts +15 -37
- package/src/app/shared/campaign-catalog.ts +408 -0
- package/src/app/shared/campaign-session.ts +557 -0
- package/src/app/shared/compute-editor.ts +274 -0
- package/src/app/shared/hit-home.ts +45 -0
- package/src/app/shared/new-campaign-form.ts +90 -0
- package/src/app/shared/permissions-editor.ts +93 -0
- package/src/app/shared/template-editor.ts +331 -0
- package/src/app/shared/template-picker.ts +154 -0
- package/src/app/utils/merge-table.ts +183 -78
- package/src/app/utils.ts +34 -325
- package/src/package-api.ts +29 -8
- package/src/package-test.ts +17 -2
- package/src/package.g.ts +12 -8
- package/src/package.ts +19 -7
- package/src/tests/ai.ts +244 -0
- package/src/tests/campaign-layout.ts +82 -0
- package/src/tests/campaign-session.ts +168 -0
- package/src/tests/campaigns.ts +23 -0
- package/src/tests/catalog.ts +156 -0
- package/src/tests/compat.ts +482 -0
- package/src/tests/compute.ts +165 -0
- package/src/tests/fixtures.ts +359 -0
- package/src/tests/merge.ts +149 -0
- package/src/tests/owners.ts +11 -0
- package/src/tests/save-lock.ts +932 -0
- package/src/tests/storage.ts +106 -0
- package/src/tests/template-editor.ts +538 -0
- package/src/tests/templates.ts +143 -0
- package/src/tests/triage-start.ts +81 -0
- package/src/tests/u2-guards.ts +384 -0
- package/src/tests/vid.ts +77 -0
- package/src/app/accordeons/new-hit-design-template-accordeon.ts +0 -238
- package/src/app/dialogs/permissions-dialog.ts +0 -66
package/.grokignore
ADDED
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
> @datagrok/hit-triage@1.
|
|
2
|
+
> @datagrok/hit-triage@1.11.0 build /home/runner/work/public/public/packages/HitTriage
|
|
3
3
|
> grok build
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
u2 ratchet HitTriage: ok, at or under consumers-baseline.json (tsInternalSelectors 9/9, rawSubscribe 4/4, u2/comments 41/41, u2/no-unowned-root 2/2)
|
|
6
|
+
u2 lint HitTriage: no errors; report mode: u2/comments 41, u2/no-raw-subscribe 4, u2/no-unowned-root 2, u2/no-internal-selectors 14
|
|
7
|
+
HitTriage warnings
|
|
8
|
+
[33mUnknown header tag: the app may have opened another campaign meanwhile In the file: src/app/shared/campaign-session.ts.[0m
|
|
9
|
+
[33mUnknown header tag: pinned to the view In the file: src/app/shared/campaign-session.ts.[0m
|
|
10
|
+
[33mUnknown header tag: the rows are flat In the file: src/tests/template-editor.ts.[0m
|
|
11
|
+
WARNING in ⚠ asset size limit: The following asset(s) exceed the recommended size limit (244.141 KiB). This can impact web performance.
|
|
12
|
+
│ Assets:
|
|
13
|
+
│ package-test.js (1.490 MiB)
|
|
14
|
+
│ package.js (1.279 MiB)
|
|
15
|
+
|
|
16
|
+
WARNING in ⚠ entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244.141 KiB). This can impact web performance.
|
|
17
|
+
│ Entrypoints:
|
|
18
|
+
│ package (1.279 MiB)
|
|
19
|
+
│ package.js
|
|
20
|
+
│ test (1.490 MiB)
|
|
21
|
+
│ package-test.js
|
|
22
|
+
|
|
23
|
+
WARNING in ⚠ Rspack performance recommendations:
|
|
24
|
+
│ You can limit the size of your bundles by using import() to lazy load some parts of your application.
|
|
25
|
+
│ For more info visit https://rspack.rs/guide/optimization/code-splitting
|
|
26
|
+
|
|
27
|
+
Rspack compiled with 3 warnings
|
|
28
|
+
bundled HitTriage in 1.5s 1310 KB
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,83 @@
|
|
|
1
1
|
# HitTriage changelog
|
|
2
2
|
|
|
3
|
+
## 1.11.0 (2026-11-27)
|
|
4
|
+
|
|
5
|
+
* [core#1407](https://github.com/datagrok-ai/core/issues/1407): Campaigns: Fixed the check for another session's saves reading the first row of an empty save log for a campaign not saved yet, which logged an error every 3 s
|
|
6
|
+
* [core#1407](https://github.com/datagrok-ai/core/issues/1407): Campaigns: Fixed releasing a lock reading the first row of an empty result when the lock had already expired
|
|
7
|
+
* Hit Design, Hit Triage, PeptiHit: Fixed the images of the help pages, which pointed at the help folder that public no longer has
|
|
8
|
+
* Dependencies: Pinned `uuid` to ^11.1.1 through `overrides`, so the `uuid` 8.3.2 that exceljs 4.4.0 brings is no longer resolved (GHSA-w5hq-g745-h8pq)
|
|
9
|
+
* Tests: The ribbon scenario no longer fails on a stand where a package with a designer function (Reinvent4) is published
|
|
10
|
+
* Hit Triage, Hit Design, PeptiHit, PepTriage: Fixed a campaign link (`?campaignId=`) opening only the landing when the address changed while the app started: the apps take the campaign from the call the link opens them with
|
|
11
|
+
* PeptiHit: Added its own help page (README_PH.md): HELM designs converted to molecules, templates, campaigns, the Progress Tracker, custom functions and permissions; the landing, its Learn more and the template editor open it
|
|
12
|
+
* Hit Design, PeptiHit: Fixed molecules and cards cut off in the Progress Tracker at 1366 px: lanes are as wide as their cards (the campaign's card layout, else the platform's) and scroll sideways when they do not fit; five lanes fit at 1920
|
|
13
|
+
* Hit Design, PeptiHit: Added a note to the Progress Tracker's status line when more stages are off to the side
|
|
14
|
+
* Hit Design, PeptiHit: Fixed a Progress Tracker value longer than its field being cut without an ellipsis
|
|
15
|
+
* Hit Design, PeptiHit: Fixed Edit Permissions saving its list onto a campaign opened after it; Edit Permissions and Select Primary Molecule Column are now pinned to the campaign view and close with it
|
|
16
|
+
* Hit Design, PeptiHit: Fixed a campaign opened earlier replacing one opened after it when its campaign.json or its table was slower to read
|
|
17
|
+
* Hit Design, PeptiHit: Fixed Submit keeping a changed submit function when the submit function fails; the campaign's submit function is now restored
|
|
18
|
+
* Hit Design, PeptiHit: Fixed a failed Modify Stages save resetting the tracker's count of moved rows, so closing the tracker no longer saved the moves
|
|
19
|
+
* Hit Design, PeptiHit: Fixed the assistant's save, status and stage functions reporting success for a save that did not happen; a failed status change is now taken back
|
|
20
|
+
* Hit Design, PeptiHit: Changed the assistant's Set stages to say the stages changed when their save failed
|
|
21
|
+
* PeptiHit: Added its own help page (README_PH.md), which the landing, its Learn more and the template editor open
|
|
22
|
+
* Hit Triage, PepTriage: A cloned template's name and key are free, as in Hit Design: "<name> (copy)" ("(copy 2)" and on when that is taken) and the key's next free number
|
|
23
|
+
* Hit Triage: Fixed the grid and its filters not showing what "Calculate additional properties" wrote into columns the campaign already had
|
|
24
|
+
* All apps: Fixed "Calculate additional properties" dropping the filter on an integer column (MW) it fills with fractions, rebinding the viewers that showed it and moving it to the end
|
|
25
|
+
* [core#1146](https://github.com/datagrok-ai/core/issues/1146): Campaigns: breadcrumbs are added when the pick view is ready, without an extra 300 ms
|
|
26
|
+
* Hit Design, PeptiHit: A new campaign's molecule column holds molblocks, so a sketched molecule is kept exactly as drawn; OK on an empty sketcher no longer calculates the properties of an empty molecule
|
|
27
|
+
* All apps: The landing header is u2's `AppHeader` (moved out of `@datagrok-libraries/utils`): the same icon, bullets and Learn more
|
|
28
|
+
* All apps: The campaigns table is u2's `CatalogTable`: every campaign is listed (no 20-row cap), the most recently saved first while no column is sorted, groups cover every campaign, start open and show their counts, a Template group is labelled by the template's name, a Date field shows its date, and Refresh reads the list from the server again; the eye menu stays open while columns are toggled
|
|
29
|
+
* All apps: Edit Permissions is one grid of users and groups with Can View and Can Edit, and deleting a campaign or a template asks through a confirmation that names it; a deleted campaign leaves the table in place
|
|
30
|
+
* All apps: The template picker offers to create the first template when there is none, says why the last template cannot be deleted, and no longer reports "Failed to delete template null" after a delete
|
|
31
|
+
* All apps: A link to a campaign that cannot be opened (its template is gone) lands on a working landing and says why, without logging that expected state as an error
|
|
32
|
+
* All apps: The landing's help is the app's README, kept as the help of the app's view (it lost to the platform's start page when the app opened from its address)
|
|
33
|
+
* All apps: Fixed two sessions starting a campaign from one template at the same time getting the same code: the first save takes the next free code under the campaign's lock
|
|
34
|
+
* All apps: Fixed a campaign that failed to open (its template or table gone) switching the app half over to it, so the campaign still open saved over the wrong campaign: what the open reads is checked first, and a failed open leaves the open campaign in place
|
|
35
|
+
* All apps: Fixed deleting a campaign leaving its last save, lock and V-iD links in the database, and a session letting go of another session's campaign lock
|
|
36
|
+
* All apps: Edit Permissions on the landing writes under the campaign's lock over the campaign as the server holds it, so another session's save made meanwhile is kept
|
|
37
|
+
* Hit Triage, PepTriage: Fixed a save dropping campaign.json keys it does not know, and a closed app still rewriting the address when a view of the same name became current
|
|
38
|
+
* Hit Design, PeptiHit: The new-campaign form is a u2 form: one label column, START disabled with the reason while a required field is empty (spaces only count as empty), and a line saying what START makes
|
|
39
|
+
* PeptiHit: Fixed a new campaign taking over the campaign opened before it, ignoring the Campaign Name, and failing after a view-only campaign
|
|
40
|
+
* Hit Triage, PepTriage: START is disabled with the reason while the file, a required field or a data-source parameter is missing; a new campaign no longer takes over the template and fields of the campaign opened before it
|
|
41
|
+
* Hit Triage, PepTriage: Fixed saved campaigns opening with a blank view: a campaign saved without filters no longer passes `{}` as the filter state
|
|
42
|
+
* All apps: Fixed the campaigns list hiding campaigns shared with All users from everyone but their author: they are listed for everyone, and editing, deleting and sharing a campaign follow its stored edit permissions (All users by default); an unreadable campaign is skipped with a warning naming it
|
|
43
|
+
* Hit Design, PeptiHit: The campaign view is one session owned by the view (`shared/campaign-session.ts`): the crumbs "Hit Design › <campaign>" are the platform's, shown at once (no second's delay, never on another view), the project Save is left off through the platform, and the package's ribbon group is pinned to the ribbon's end with its small icons folding into "…" at 1366 px; the progress tracker, dialogs, grid handlers and the check for other sessions' saves end with the view
|
|
44
|
+
* Hit Design, PeptiHit: Fixed a save over another session's save losing that session's edits to the rows both hold: a cell this session left as it read it takes the other session's value
|
|
45
|
+
* Hit Design, PeptiHit: Fixed a view-only campaign's refused save telling every open session of new changes: the save is refused before the lock, and the status bar says the campaign is view only
|
|
46
|
+
* Hit Design, PeptiHit: Fixed a save dropping campaign.json keys it does not know, and a save whose table cannot be written hanging with the campaign locked for 30 s: it lets the lock go and says why, and logs no save, so no other session is told of changes the share never got
|
|
47
|
+
* Hit Design, PeptiHit: Submit, Merge, Progress tracker and Modify Stages are u2 dialogs, all but the tracker with CANCEL: Submit is always there, disabled while no submit function is chosen, Enrichment Methods by friendly name, SAVE waits for the save; the tracker's lanes scroll at 1366, it closes with its campaign view; Modify Stages says before OK where the rows of a removed stage go
|
|
48
|
+
* Hit Design, PeptiHit: Fixed the Submit dialog's Name and File Path pencils and the download icon doing nothing: the pencil opens the value with Save and Cancel (Enter and Escape alike), a problem shows under the field, and the download saves the rows as CSV; a Molecule field's structure sits in the value column on a row as tall as the picture (it hung over the next row)
|
|
49
|
+
* All apps: Edit Permissions shows each user's picture or initials and each group's icon, on roomier rows across the dialog
|
|
50
|
+
* Hit Design, PeptiHit: Merge with table picks its source file from Datagrok Files again ("Add file from Files" beside Open file, as the platform's file input had it): a file from a share is remembered with the campaign and, with Auto-merge on, merged on every open
|
|
51
|
+
* Hit Design, PeptiHit: A new campaign opens with its template's layout; a layout's viewers bound to columns the table lacks (the first calculation adds them) start empty instead of failing, and such a column is saved only once it holds values
|
|
52
|
+
* Hit Design, PeptiHit: Calculate additional properties opens the template editor's compute box in a u2 dialog; the campaign's compute is stored as before
|
|
53
|
+
* Hit Design, PeptiHit: Fixed a save asked for while another campaign opened, or queued behind one, writing one campaign's rows or keys into the other: a save writes the campaign it was asked for, and an open takes the new campaign at once
|
|
54
|
+
* Hit Design, PeptiHit: Fixed a save over another session's save mixing up the rows of a molecule several rows hold, and reading the other session's table from our path instead of the one its campaign.json names
|
|
55
|
+
* Hit Design, PeptiHit: Fixed the progress tracker's cards reading another open campaign's table (a peptide's V-iD on a Hit Design card, cards missing) when the campaign's card layout named a table of the same name
|
|
56
|
+
* Hit Design, PeptiHit: The progress tracker shows a row whose stage the template does not have (a typo in the grid) in a lane of that stage instead of leaving it out
|
|
57
|
+
* Hit Design, PeptiHit: Fixed number columns showing every digit the campaign's table holds after a reload (446.9100036621094 for 446.91), in the grid and on the tracker's cards; a format the campaign chose stays
|
|
58
|
+
* Hit Design, PeptiHit: A save that cannot take the campaign's lock because a query fails says why, instead of "Someone else might be editing the campaign"
|
|
59
|
+
* Hit Design, PeptiHit: Fixed Modify Stages saving the progress tracker's Tile Viewer into the campaign's layout, a campaign whose layout has no grid no longer saving its edits, and two quick edits of a row leaving the first molecule's V-iD
|
|
60
|
+
* PeptiHit: Fixed the previous campaign view staying open when another campaign is opened, and the view being named after the campaign's code until its first save
|
|
61
|
+
* Hit Design, PeptiHit: Merge with table says why each option it keeps off is off ("Pick a source file first", "Used only when merging by V-iD", "Turn on Add unmatched rows first", …), as its tooltip and as its description for screen readers and automation
|
|
62
|
+
* Hit Design, PeptiHit: Merge with table, Calculate additional properties, the designer's form and the dialog for a dropped file are pinned to their campaign view, as Submit and the progress tracker are: hidden while another view is current, closed with the view
|
|
63
|
+
* Hit Design, PeptiHit: The template editor is a u2 page (`shared/template-editor.ts`) with its sections in the order they had, its fields and stages rows with "Add field" / "Add stage" (stages reorderable), the crumb back to the app the shell's (it closes the editor, asking first once something was typed), the help on the Templates section, and CANCEL / CREATE in a footer that stays in view; CREATE is disabled while the name or key is empty, blank or taken, with the reason, and waits for the write: a failed write, or a name or key another session took meanwhile, keeps the editor open and says why
|
|
64
|
+
* Hit Design, PeptiHit: The template editor's Compute is one u2 master-detail box (`shared/compute-editor.ts`): the functions on the left with their checkboxes (↑/↓ move the current one, Space checks it; a sash between the list and the settings), the descriptors as a searchable tree whose groups say how many of theirs are picked (they showed unchecked), a function's settings with "Re-run when campaign opens", dimmed with the reason while the function is not checked, and "Reorder…" to order and hide the functions; picking a descriptor turns Descriptors on
|
|
65
|
+
* Hit Design, PeptiHit: Fixed a cloned template keeping the name and key (now "<name> (copy)" and the key's next free number), losing its submit function, scripts, queries and layout
|
|
66
|
+
* Hit Triage, PepTriage: Fixed the template editor's CREATE never blocking on its own errors (an empty name wrote `templates/.json`, a taken name overwrote that template): it is disabled with the reason while the name or key is empty or taken, or PepTriage's sequence column is empty; a failed write is reported instead of "Template created successfully"; a clone keeps the template's layout
|
|
67
|
+
* Hit Design, PeptiHit: Fixed "Calculate additional properties" showing "Cannot read properties of undefined (reading 'label')" for every function but the descriptors while a table without a name was open
|
|
68
|
+
* All apps: Fixed a calculation over the whole table naming its columns after a hidden column ("Acceptor (~Molecule.canonicalSmiles)", beside the "Acceptor (Molecule)" a row's own calculation makes) and adding "(2)" copies when run again: the functions get the campaign's columns, the molecule column holding the canonical SMILES under its own name, and what they add or change fills the columns of that name; a hidden `~` column is never taken for the molecule column, never written to campaign.json, and dropped when a campaign's table holds one
|
|
69
|
+
* Hit Design, PeptiHit: Fixed a new campaign whose template layout has a Filters viewer showing "Error adding filter" for every filter on a column the campaign calculates later, and losing those filters: their columns are added empty with the layout's other columns, and a calculation's counts fill them without dropping the filters
|
|
70
|
+
* Hit Design, PeptiHit: Which columns a layout's viewers are bound to is the platform's answer (`DG.ViewLayout.boundColumnNames`) instead of the package's own reading of the layout, so a trellis plot's inner viewers are covered too
|
|
71
|
+
* Hit Design, PeptiHit: Fixed "Add new row" in the ribbon logging "No such column: then" on every press
|
|
72
|
+
* Hit Triage, PepTriage: Template, Campaign Name and the data source are one label column again, and START sits at the form's end, as before the u2 landing
|
|
73
|
+
* Hit Triage, PepTriage: START over a data source that answers no rows creates no campaign and says so ("<source> returned no rows, so no campaign was created"); it made an empty campaign silently
|
|
74
|
+
* All apps: Boolean campaign fields read true / false in the campaigns table again; a group by a Date field is labelled as its cells write the date (2026/6/29); "Apply template layout" has its platform icon again
|
|
75
|
+
* Hit Design, PeptiHit: A Stage cell is a dropdown of the template's stages, set when the campaign opens and when Modify Stages changes them, never saved with the campaign; a row in a stage the template lacks keeps it (in its dropdown too) until another is picked; the template editor's stages stay free text
|
|
76
|
+
* Hit Design, PeptiHit: Closing the progress tracker never puts a move back: its one action is CLOSE, and CLOSE, ✕, Escape and closing the campaign view all keep the moves and save them
|
|
77
|
+
* Hit Design, PeptiHit: Fixed a campaign view whose first read of the last save failed never noticing other sessions' saves: the check every 3 s starts all the same; a view closed while it read starts none
|
|
78
|
+
* Hit Design, PeptiHit: Merge with table no longer offers hidden columns (Chem's `~<column>.canonicalSmiles` cache, which a table saved as CSV keeps): the molecule and V-iD column choices list the columns the platform's pickers do, and pick their defaults among them; no merge (the dialog, a dropped table, Auto-merge on open) copies an incoming table's hidden columns into the campaign any more
|
|
79
|
+
* All apps: Hidden `~` columns are no longer shown to the AI assistant (a function's table result lists only the columns the platform's pickers do), and Hit Triage's campaign.json no longer names them in its column types; a campaign.json an older version wrote with them opens as before
|
|
80
|
+
|
|
3
81
|
## 1.10.9 (2026-10-15)
|
|
4
82
|
|
|
5
83
|
* Hit Design, PeptiHit: Fixed the "Campaing Name" typo in the new-campaign form
|
package/CLAUDE.md
CHANGED
|
@@ -64,8 +64,61 @@ Important constants and their roles:
|
|
|
64
64
|
|
|
65
65
|
**Hit Design views** (`src/app/hit-design-views/`):
|
|
66
66
|
- `info-view.ts` — Landing page with campaign table, grouping, sorting, create/continue campaigns
|
|
67
|
-
- `submit-view.ts` — Submit
|
|
68
|
-
|
|
67
|
+
- `submit-view.ts` — `HitDesignSubmitView`: the Submit dialog (u2: read-only summary rows, Name and File Path edited in
|
|
68
|
+
place, Status suggestions, Submit function; SAVE / SUBMIT) and `submit()` / `submitWithStatus()` the AI calls
|
|
69
|
+
- `tiles-view.ts` — `showProgressTracker(app, host)`: the platform Tile Viewer in a u2 dialog pinned to the campaign
|
|
70
|
+
view (`host.show`, modal; the session's `openTracker` keeps one open), one lane per stage (then one per other stage a
|
|
71
|
+
row holds); a move applies at once, and every close (CLOSE, ✕, Escape, the view closing) keeps the moves and saves
|
|
72
|
+
them — a close-only dialog (`closeOnly`: CLOSE, no CANCEL); Modify Stages (u2 `RecordsInput`, through
|
|
73
|
+
`host.show` too). The card layout kept with the campaign
|
|
74
|
+
(`tilesViewerFormSketch`) is pointed at the campaign's own table (`state.table`) before the viewer reads it
|
|
75
|
+
|
|
76
|
+
### The campaign view (`src/app/shared/campaign-session.ts`, u2)
|
|
77
|
+
|
|
78
|
+
A campaign opens as a platform `TableView`; `HitDesignApp.openView` adds it and opens its session with
|
|
79
|
+
`openCampaignSession(app, view, options)`: a plain `CampaignSession` (`view`, `host`, `needsRefresh`, the save
|
|
80
|
+
feedback, `openTracker`) built under the view's host (`ViewHost.of(view)`), so everything the app adds to the view ends
|
|
81
|
+
when the view closes. Its dialogs (merge, compute, designer, a dropped file, the tracker, Submit) are shown through the
|
|
82
|
+
host (`host.show`): hidden while another view is current, closed with the view.
|
|
83
|
+
- Ribbon through the host (`host.ribbon`): the package's group (refresh with the "new changes" hint, add row, merge,
|
|
84
|
+
compute, designer, permissions, apply template layout, PROGRESS TRACKER, SUBMIT...) pinned to the ribbon's end and
|
|
85
|
+
folding into "…" when narrow; the crumb "Hit Design › <campaign>" is the shell's (`breadcrumbs`: `tv.parentView` +
|
|
86
|
+
`showParentCrumb`), a press on it also closes the view and rebuilds the landing; Save off (`hideSave`).
|
|
87
|
+
- The grid's edits through `host.signals.grid` (a layout replaces the grid; an effect re-subscribes): a Stage edit
|
|
88
|
+
saves, an entry edit registers the V-iD and runs the single-cell calculation (`registerFirst`: Hit Design registers
|
|
89
|
+
first, PeptiHit converts the HELM first).
|
|
90
|
+
- A Stage cell is a dropdown of the template's stages: the column's `.choices` (`DG.TAGS.CHOICES`), set on open
|
|
91
|
+
(`_prepareColumns`) and by `setStages`, never saved (left out of `columnTags`; the CSV and the layout hold no
|
|
92
|
+
tags). A row in another stage keeps it, in its dropdown too, until another is picked. The template editor's and
|
|
93
|
+
Modify Stages' stage names stay free text.
|
|
94
|
+
- The check for other sessions' saves every 3 s while the view is current (a `host.task`: it starts once the last
|
|
95
|
+
save is read, also when that read failed, and never for a session closed meanwhile); save feedback (the grid's "Saving
|
|
96
|
+
Campaign...", the status bar while waiting for another session's lock, "View only — changes are not saved").
|
|
97
|
+
- A layout's viewers bound to columns the table lacks (a new campaign's computed ones): the columns are added empty
|
|
98
|
+
and marked (`PlaceholderTag`, `utils/merge-table.ts`); a viewer's columns are read as the platform reads them
|
|
99
|
+
(`…ColumnName(s)`, the Filters viewer's filters); a merge gives one the incoming type, a calculation its own type
|
|
100
|
+
(a number placeholder keeps integers in place, so a filter on it stays), a save leaves it out until it holds values.
|
|
101
|
+
- "Calculate additional properties": the compute editor (`computeEditor`, `shared/compute-editor.ts`) in a u2 dialog
|
|
102
|
+
(`HitDesignApp.editCompute`); what is new or changed is calculated over the table (statistics `calculateColumns`:
|
|
103
|
+
the functions get a copy of the table's listed columns, the canonical SMILES under the molecule column's own name;
|
|
104
|
+
what they add or change fills the columns of that name, and the table fires its values changed).
|
|
105
|
+
- Hidden `~` columns (Chem's `~Molecule.canonicalSmiles` cache) are never the molecule column
|
|
106
|
+
(`HitAppBase.moleculeColumn(s)`), are dropped when a campaign's table opens and are never written to its CSV or
|
|
107
|
+
campaign.json; Merge with table neither offers nor picks one of the incoming table, and no merge copies one into
|
|
108
|
+
the campaign (`getSourceMappings` reads the incoming columns through u2/dg `Platform.listedColumns`, as the AI
|
|
109
|
+
functions' column lists and Hit Triage's save do).
|
|
110
|
+
|
|
111
|
+
Hit Design and PeptiHit differ only by `CampaignSessionOptions` (`HitDesignApp.sessionOptions`, overridden by
|
|
112
|
+
`PeptiHitApp`) and `prepareTable` (PeptiHit's HELM tags).
|
|
113
|
+
|
|
114
|
+
Saving (`HitDesignApp.saveCampaign`): one save at a time, a save of a campaign asked for meanwhile folded into the next
|
|
115
|
+
one of that campaign; a save writes the campaign open when it was asked for, also when another one opened since (the
|
|
116
|
+
app keeps what a pending save needs of the campaign it switched away from; `setTemplate` reads everything first and
|
|
117
|
+
takes the new campaign at once). Refused before the lock without edit rights; under the lock a save over another
|
|
118
|
+
session's newer save merges that session's table (at the `savePath` its campaign.json names) in first
|
|
119
|
+
(`mergeServerTable` in `utils/merge-table.ts`: new rows and columns added, a cell this session left as it read it
|
|
120
|
+
takes the other session's value, a molecule several rows hold keeps ours); campaign.json keeps keys this version does
|
|
121
|
+
not know; a failure lets the lock go (without logging a save when nothing was written).
|
|
69
122
|
|
|
70
123
|
**PeptiHit views** (`src/app/pepti-hits-views/`):
|
|
71
124
|
- `info-view.ts` — Extends Hit Design info view for peptide context
|
|
@@ -78,17 +131,37 @@ UI accordions for creating new campaigns and templates:
|
|
|
78
131
|
|---|---|
|
|
79
132
|
| `new-campaign-accordeon.ts` | Hit Triage new campaign form: file/query data source, campaign fields |
|
|
80
133
|
| `new-template-accordeon.ts` | Hit Triage template creator: name, key, compute config, submit function, layout, campaign fields |
|
|
81
|
-
| `new-hit-design-campaign-accordeon.ts` | Hit Design/PeptiHit new campaign:
|
|
82
|
-
| `new-
|
|
83
|
-
| `layout-input.ts` |
|
|
134
|
+
| `new-hit-design-campaign-accordeon.ts` | Hit Design/PeptiHit new campaign: the initial one-row DataFrame (Molecule, Stage, V-iD; Helm first for PeptiHit); Molecule's units are molblock (the sketcher writes the molecule as drawn, campaign.json keeps the units in `columnTags`); an existing campaign keeps its own |
|
|
135
|
+
| `new-pep-triage-template-accordeon.ts` | PepTriage template creator: Hit Triage's plus the sequence and molecule columns |
|
|
136
|
+
| `layout-input.ts` | The platform file input a template's layout is picked with; `readLayout` (a `.layout` file's view state and its share path), `layoutFile` (a template's layout as a file the input shows) |
|
|
137
|
+
|
|
138
|
+
### Shared landing modules (`src/app/shared/`, u2)
|
|
139
|
+
|
|
140
|
+
The four landings are one composition, configured per app by `HitLandingView` (`base-view.ts`; `init` builds the home
|
|
141
|
+
under `Scope.root('hit-home')`: the landing is a `DG.MultiView` child, which no view host ends). Each piece is a u2
|
|
142
|
+
function component (`component(…)`, its handle an interface of the same name), except the catalog, a builder run under
|
|
143
|
+
the home's owner; their former statics are module functions:
|
|
144
|
+
|
|
145
|
+
| File | Purpose |
|
|
146
|
+
|---|---|
|
|
147
|
+
| `hit-home.ts` | `hitHome(options)` → `HitHome` (`catalog`, `picker`): the app header, then a u2 `Page` (in a plain block, so the view scrolls the whole landing) of two sections: "Continue Campaign" with the table and its icons, "New Campaign" with the picker (720px, `PICKER_PX`) |
|
|
148
|
+
| `campaign-catalog.ts` | `campaignCatalog(options)` → `CampaignCatalog` (`table`, `chrome()`, `reload(fresh)`): the u2 `CatalogTable` of the campaigns — columns, groupings, row actions, the last-save order, edit rights looked up once per group; `catalogColumns`, `catalogGroupings`, the HD*/HT* localStorage keys (`catalogPersistence`), Date-field values in every stored shape (`fieldValue`, `fieldText`, `dayText`) |
|
|
149
|
+
| `template-picker.ts` | `templatePicker(options)` → `TemplatePicker` (`names`): the Template choice with New / Clone / Delete, the form of the picked template (stale picks dropped), the "no templates" state |
|
|
150
|
+
| `new-campaign-form.ts` | `newCampaignForm(options)` → `NewCampaignForm` (`form`; Hit Design, PeptiHit): Campaign Name + the template's fields, START disabled with the reason |
|
|
151
|
+
| `permissions-editor.ts` | `PermissionsEditor`: Edit Permissions as a u2 `AccessGrid` over the stored `{view, edit}` group ids; `defaultPermissions` |
|
|
152
|
+
| `template-editor.ts` | `openTemplateEditor` + `templateEditor(options)` → `TemplateEditor` (`dirty`; Hit Design, PeptiHit): the "New Template" view (`ViewHost.create`; parent crumb, which closes it after a Discard? once something was typed; Templates help), a u2 `Page` (820px, its own label columns): Details / Additional fields / Stages (u2 `RecordsInput`) / Compute / Submit over the page's pinned footer, CREATE disabled with the reason; a clone's free name and key; writes `<app>/templates/<name>.json` in the keys' historical order |
|
|
153
|
+
| `compute-editor.ts` | `computeEditor(options)` → `ComputeEditor` (`ready`, `edited`, `read()`): a template's compute as a u2 `MasterDetail` (functions with checkboxes; descriptors as a searchable tree with per-group counts; a function's `funcForm` and re-run flag, off with the reason while unchecked — every detail built at once, so `funcForm` writes its computed defaults as the compute dialog does; "Reorder…" over `HTFunctionOrderingLS`); `read()` answers what the compute dialog writes (`templateCompute`). `descriptors` is optional (no Descriptors row; the given ones kept). No HitTriage import but its CSS; for Chem MPO it still lacks the dialog's single choice (`singleSelect`) |
|
|
154
|
+
|
|
155
|
+
Hit Triage and PepTriage keep their own new-campaign form (`accordeons/new-campaign-accordeon.ts`) and template editor
|
|
156
|
+
(`accordeons/new-template-accordeon.ts`, `new-pep-triage-template-accordeon.ts`) under the picker.
|
|
84
157
|
|
|
85
158
|
### Dialogs (`src/app/dialogs/`)
|
|
86
159
|
|
|
87
160
|
| File | Purpose |
|
|
88
161
|
|---|---|
|
|
89
|
-
| `functions-dialog.ts` | Compute configuration dialog: descriptor tree selection + tagged compute functions/scripts/queries with their parameter editors |
|
|
162
|
+
| `functions-dialog.ts` | Compute configuration dialog (Hit Triage campaigns, the Hit Triage / PepTriage template editors): descriptor tree selection + tagged compute functions/scripts/queries with their parameter editors; `rerunOnOpenOption`, `descriptorsTree` |
|
|
90
163
|
| `save-campaign-dialog.ts` | Simple dialog to name a campaign before saving |
|
|
91
|
-
| `
|
|
164
|
+
| `merge-table-dialog.ts` | Merge with table (u2): a file from the computer or a share (typed, or picked in the platform's "Select a file" through u2/dg `fileInput`'s "Add file from Files") merged by canonical SMILES or V-iD; a share file is kept in `mergeConfig.filePath` and, with Auto-merge, merged again on every open (`autoMergeOnCampaignOpen`, no save); the column choices are the incoming columns the platform lists (u2/dg `Platform.listedColumns`: no hidden `~` or nameless one) and the defaults are guessed among them (`guessMoleculeColumn`, `guessVidColumn`); each option off says why; OK off with the reason in the footer until the merge has what it needs |
|
|
92
165
|
|
|
93
166
|
### Utilities
|
|
94
167
|
|
|
@@ -98,7 +171,6 @@ UI accordions for creating new campaigns and templates:
|
|
|
98
171
|
- `checkEditPermissions()` / `checkViewPermissions()` — group-based permission checks
|
|
99
172
|
- `addBreadCrumbsToRibbons()` — navigation breadcrumbs in ribbon
|
|
100
173
|
- `joinQueryResults()` — joins query result dataframe back into main dataframe by molecule column
|
|
101
|
-
- Campaign grouping/sorting helpers for info view tables
|
|
102
174
|
|
|
103
175
|
**`src/app/utils/calculate-single-cell.ts`** — Runs compute pipeline (descriptors, functions, scripts, queries) on molecule values. Used for both batch column calculations and single-cell recalculations in Hit Design.
|
|
104
176
|
|
|
@@ -137,7 +209,9 @@ PostgreSQL schema `hitdesign` with two migrations:
|
|
|
137
209
|
**locks.sql** (connection: `HitTriage:hitdesign`):
|
|
138
210
|
- `acquireCampaignLock` — acquire 30-second lock (auto-cleans expired)
|
|
139
211
|
- `releaseCampaignLock` — release lock and log update timestamp
|
|
140
|
-
- `getLastModified` — get last save timestamp for a campaign
|
|
212
|
+
- `getLastModified` — get last save timestamp for a campaign; `getLastModifiedAll` — every campaign's of an app (the landing's order)
|
|
213
|
+
- `dropCampaignLock` — drop the caller's lock (`lockedBy` = `HitAppBase.lockHolder`, user + app instance) without logging a save
|
|
214
|
+
- `deleteCampaignRecords` — a deleted campaign's update_logs, campaign_locks and campaign_vids rows
|
|
141
215
|
|
|
142
216
|
## Files Storage (`files/`)
|
|
143
217
|
|
|
@@ -175,7 +249,10 @@ The package discovers external functions via tagged roles:
|
|
|
175
249
|
## Key Dependencies
|
|
176
250
|
|
|
177
251
|
- `@datagrok-libraries/compute-utils` — compute pipeline utilities
|
|
178
|
-
- `@datagrok-libraries/
|
|
252
|
+
- `@datagrok-libraries/u2` — the landings (`src/app/shared/`): `AppHeader`, `Page`, `CatalogTable`, `Form`,
|
|
253
|
+
`MasterDetail`, `AccessGrid`, `confirmDialog`; the package's CSS styles only its own classes (u2's look through
|
|
254
|
+
`--u2-*` properties set on them)
|
|
255
|
+
- `@datagrok-libraries/utils` — `ItemsGrid` UI components
|
|
179
256
|
- `uuid` — campaign ID generation
|
|
180
257
|
- `typeahead-standalone` — autocomplete UI
|
|
181
258
|
|
package/README_HD.md
CHANGED
|
@@ -30,7 +30,7 @@ Every time user changes given molecule or adds new molecule to a dataframe, comp
|
|
|
30
30
|
|
|
31
31
|
- **Submit function** : Define custom submit functions (tagged with `HitTriageSubmitFunction`) to further process or save the filtered and computed dataset. This could include saving to a private database or additional calculations.
|
|
32
32
|
|
|
33
|
-

|
|
34
34
|
|
|
35
35
|
## Campaigns
|
|
36
36
|
|
|
@@ -42,41 +42,41 @@ Campaigns are built based on templates and encompass the actual hit design proce
|
|
|
42
42
|
|
|
43
43
|
- **Functionality**: Once a campaign starts, you can add extra calculated columns, add new rows to dataframe and sketch molecules, apply changes, fileter, save or submit the campaign.
|
|
44
44
|
|
|
45
|
-

|
|
46
46
|
|
|
47
47
|
Campaigns can be groupped either by template key, status or be ungroupped. The groupping setting can be changed by clicking 'Group By' icon next to 'Comntinue Campaign' header.
|
|
48
48
|
|
|
49
|
-

|
|
50
50
|
|
|
51
51
|
## Getting started
|
|
52
52
|
|
|
53
53
|
Continue ongoing campaigns either directly by a link or by selecting it from the campaigns table.
|
|
54
54
|
|
|
55
|
-

|
|
56
56
|
|
|
57
57
|
Create a new template by clicking on the `New Template` button in the `Templates` dropdown.
|
|
58
58
|
|
|
59
|
-

|
|
60
60
|
|
|
61
61
|
Start a new campaign by choosing a template and filling out the required information. Once a new campaign starts, an empty dataframe will be added, where you can add new molecules. Upon adding or changing molecules, all compute functions will be executed on that row and the results in coresponding columns will be updated.
|
|
62
62
|
|
|
63
|
-

|
|
64
64
|
|
|
65
65
|
After the campaign starts, users can sketch new molecules, filter, modify or add viewers to the campaign and then save them. Once saved, reloading the campaign will restore the saved state.
|
|
66
66
|
|
|
67
|
-

|
|
68
68
|
|
|
69
69
|
Hit design campaign consists of two views, a main design view and a tiles view. You can access the tiles view from by clicking the 'Progrss Tracker' button on the ribbon pannel. Tiles view provides a versatile way to organize molecules in the campaign. Users can drag and drop molecules between stages, which were defined in the template.
|
|
70
70
|
|
|
71
|
-

|
|
72
72
|
|
|
73
73
|
As mentioned previously, "Stages" or tiles are defined in the template, but users can also modify them after starting the campaign. To do so, open the Progress Tracker and click the "Modify Stages" button. You can add, remove or rename stages. After clicking OK, the changes will be saved and reflected in the Progress Tracker view. If you remove a stage which had some molecules in it, those molecules will be automatically moved to the first stage.
|
|
74
74
|
|
|
75
|
-

|
|
76
76
|
|
|
77
77
|
Campaign status can be changed through 'Submit' menu. You can set status to anything. When you start typing, you will be suggested other statuses that are already in use.
|
|
78
78
|
|
|
79
|
-

|
|
80
80
|
|
|
81
81
|
## Adding custom compute and submit functions
|
|
82
82
|
|
|
@@ -191,7 +191,7 @@ where is_valid_smiles(Cast(molecules as cstring))
|
|
|
191
191
|
|
|
192
192
|
If the number of functions is getting large, you might prefer to see only relevant ones in the order you prefer. You can hide/reorder the functions in functions dialog or template using the pencil (✎) icon on the top right corner.
|
|
193
193
|
|
|
194
|
-

|
|
195
195
|
|
|
196
196
|
### Submit Functions
|
|
197
197
|
|
|
@@ -214,11 +214,11 @@ Hit Design allows users to manage permissions for campaigns, granting `view` or
|
|
|
214
214
|
|
|
215
215
|
By default, any new campaign will be shared with all users. To manage who can view or edit the campaign, click on the `share` icon located in the campaigns table, or open the campaign and click on the `share` button in the ribbon menu. If all users are removed from `edit` permissions, only the creator of the campaign will be able to edit it. Users who do not have edit permission but can view the campaign, will be able to see the campaign but not make any changes or delete it.
|
|
216
216
|
|
|
217
|
-

|
|
218
218
|
|
|
219
219
|
Similarly, you can manage view permissions, which will restrict access to viewing the campaign or accessing it directly via link. If all users are removed from `view` permissions, only the creator of the campaign will be able to view it.
|
|
220
220
|
|
|
221
|
-

|
|
222
222
|
|
|
223
223
|
You can also modify the default sharing permissions for all newly created campaigns. To do so, modify the HitTriage package settings.
|
|
224
224
|
|
|
@@ -227,4 +227,4 @@ You can also modify the default sharing permissions for all newly created campai
|
|
|
227
227
|
3. On the context panel, expand the `Settings` pane.
|
|
228
228
|
4. Modify the `Default view permissions` and `Default edit permissions` fields to set the default permissions for all newly created campaigns.
|
|
229
229
|
|
|
230
|
-

|
package/README_HT.md
CHANGED
|
@@ -149,7 +149,7 @@ where is_valid_smiles(Cast(molecules as cstring))
|
|
|
149
149
|
|
|
150
150
|
- **Submit function** : Users can define custom submit functions (tagged with `HitTriageSubmitFunction`) to further process or save the filtered and computed dataset. This could include saving to a private database or additional calculations.
|
|
151
151
|
|
|
152
|
-

|
|
153
153
|
|
|
154
154
|
## Campaigns
|
|
155
155
|
|
|
@@ -161,22 +161,22 @@ Campaigns are built based on templates and encompass the actual hit triage proce
|
|
|
161
161
|
|
|
162
162
|
- **Functionality**: Once a campaign starts, you can add extra calculated columns, apply changes, fileter, save or submit the campaign.
|
|
163
163
|
|
|
164
|
-

|
|
165
165
|
|
|
166
166
|
## Getting started
|
|
167
167
|
|
|
168
168
|
Users can continue ongoing campaigns either directly by a link or by selecting it from the campaigns table.
|
|
169
169
|
|
|
170
|
-

|
|
171
171
|
|
|
172
172
|
Users can create a new template by clicking on the `New Template` button in the `Templates` dropdown.
|
|
173
173
|
|
|
174
|
-

|
|
175
175
|
|
|
176
176
|
Users can start a new campaign by choosing a template and filling out the required information.
|
|
177
177
|
|
|
178
|
-

|
|
179
179
|
|
|
180
180
|
After the campaign starts, new calculated columns will be added. Users can filter, modify or add viewers to the campaign and then save them. Once saved, reloading the campaign will restore the saved state.
|
|
181
181
|
|
|
182
|
-

|
package/README_PH.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# PeptiHit
|
|
2
|
+
|
|
3
|
+
PeptiHit is Hit Design for peptides. A design is a sequence in HELM notation: you enter sequences in a
|
|
4
|
+
spreadsheet, PeptiHit converts each one to its molecule, calculates the molecule's properties, gives it a V-iD,
|
|
5
|
+
and keeps the designs of a campaign in stages until you submit the ones you pick. Campaigns are saved and
|
|
6
|
+
shared with others, as in Hit Design.
|
|
7
|
+
|
|
8
|
+
PeptiHit is in `Browse` → `Apps` → `Peptides`. It needs the Bio and Helm packages: Bio converts sequences to
|
|
9
|
+
molecules, Helm draws and edits the HELM cells.
|
|
10
|
+
|
|
11
|
+
The application is built around templates and campaigns. A template says what every campaign made from it
|
|
12
|
+
records and calculates; a campaign is the table of designs itself.
|
|
13
|
+
|
|
14
|
+
## Templates
|
|
15
|
+
|
|
16
|
+
A PeptiHit template holds the same settings as a Hit Design template, and is created the same way, with
|
|
17
|
+
the `+` (New Template) or the copy icon (Clone template) beside the `Template` choice on the landing:
|
|
18
|
+
|
|
19
|
+
- **Name** : Identifies the template.
|
|
20
|
+
|
|
21
|
+
- **Key** : The prefix of the campaign codes (`PHD-1`, `PHD-2`, ...).
|
|
22
|
+
|
|
23
|
+
- **Layout** : The layout the campaign table opens with. PeptiHit applies the template's layout to every
|
|
24
|
+
campaign that has no layout of its own, and `Apply template layout` on the ribbon applies it again at any time.
|
|
25
|
+
A layout picked from a mounted file share is read again from that file each time it is applied.
|
|
26
|
+
|
|
27
|
+
- **Additional fields** : Fields asked for when a campaign starts (a chemist's name, a target, a deadline),
|
|
28
|
+
each with a type and whether it is required.
|
|
29
|
+
|
|
30
|
+
- **Stages** : The lanes of the Progress Tracker. A new row starts in the first stage.
|
|
31
|
+
|
|
32
|
+
- **Compute** : The calculations every design gets: molecular descriptors and the functions tagged
|
|
33
|
+
`HitTriageFunction` in the installed packages. They run on the molecule a sequence converts to, not on the
|
|
34
|
+
sequence.
|
|
35
|
+
|
|
36
|
+
- **Submit function** : The function the campaign's rows are submitted to (tagged `HitTriageSubmitFunction`).
|
|
37
|
+
|
|
38
|
+
The package ships a demo template, `Peptide hits Demo` (key `PHD`), with a `Chemist` field, four stages
|
|
39
|
+
(Design, Consideration, Synthesis, Testing) and three descriptors (MolWt, HeavyAtomMolWt, FractionCSP3).
|
|
40
|
+
|
|
41
|
+
## Campaigns
|
|
42
|
+
|
|
43
|
+
- **Creation** : Pick a template, fill in its fields and an optional campaign name, and press `Start`.
|
|
44
|
+
The campaign opens with one empty row and the HELM editor on it.
|
|
45
|
+
|
|
46
|
+
- **Designs** : The `Helm` column holds the sequences. When a sequence is entered or changed, PeptiHit converts
|
|
47
|
+
it to its molecule (Bio's To Atomic Level, nonlinear sequences included) into the `Molecule` column, runs the
|
|
48
|
+
template's compute on that molecule, and registers the molecule's V-iD. V-iDs come from one dictionary shared
|
|
49
|
+
with Hit Design: one structure has one V-iD.
|
|
50
|
+
|
|
51
|
+
- **Editing** : Add rows with the `+` icon on the ribbon or `Add new row` in a sequence cell's context menu;
|
|
52
|
+
`Duplicate Sequence` copies a row's sequence into a new row, and `Re-Run Calculations` converts and calculates
|
|
53
|
+
a row again.
|
|
54
|
+
`Calculate additional properties` adds calculations to the campaign and runs them over the whole table.
|
|
55
|
+
|
|
56
|
+
- **Saving** : The campaign is saved as you work: after each calculation, stage change, merge, permissions
|
|
57
|
+
change and Save in the Submit dialog; each save keeps the table's layout too. Two people can work on one
|
|
58
|
+
campaign at once: a save merges in what the other session saved meanwhile, and the `Refresh` icon tells you
|
|
59
|
+
when there is something new to read.
|
|
60
|
+
|
|
61
|
+
- **Collaboration** : A campaign's address (`?campaignId=PHD-1`) opens it directly, for anyone who may view it.
|
|
62
|
+
|
|
63
|
+
PeptiHit has no designer function button: the `HitDesignerFunction` functions are offered in Hit Design only.
|
|
64
|
+
|
|
65
|
+
## Getting started
|
|
66
|
+
|
|
67
|
+
The landing lists the campaigns you may view under `Continue Campaign`: open one by its name. The table can be
|
|
68
|
+
grouped by template, status, author, last modifier or a campaign field, its columns chosen with the eye icon,
|
|
69
|
+
and refreshed from the server with the sync icon. A campaign you may only view opens with "View only — changes
|
|
70
|
+
are not saved" in its status bar.
|
|
71
|
+
|
|
72
|
+
Start a new campaign under `New Campaign`: pick the template, fill in its fields, and press `Start`.
|
|
73
|
+
|
|
74
|
+
In the campaign, type or draw sequences in the `Helm` column. The `Progress Tracker` button on the ribbon opens
|
|
75
|
+
the stages as lanes: drag a card to another lane to move the design to that stage; the moves are saved when the
|
|
76
|
+
tracker closes. `Modify Stages` in the tracker adds, removes, renames and reorders stages; rows in a stage that is
|
|
77
|
+
removed move to the first one.
|
|
78
|
+
|
|
79
|
+
`Merge another table into the campaign` brings rows and columns of another table (a file from your computer or a
|
|
80
|
+
file share) into the campaign, matched by canonical SMILES or by V-iD.
|
|
81
|
+
|
|
82
|
+
`Submit...` on the ribbon shows what the campaign is and lets you change its name, its folder and its status (you
|
|
83
|
+
are offered the statuses other campaigns use). `Save` stores the status; `Submit` runs the submit function on
|
|
84
|
+
the campaign's rows (the filtered ones) and then saves.
|
|
85
|
+
|
|
86
|
+
## Adding custom compute and submit functions
|
|
87
|
+
|
|
88
|
+
PeptiHit uses the same compute and submit functions as Hit Design, written in any installed package. A compute
|
|
89
|
+
function takes the table and its molecule column first; in PeptiHit that column is the `Molecule` column the
|
|
90
|
+
sequences convert to. A submit function takes the table and the name of the molecule column. See
|
|
91
|
+
[Hit Design](README_HD.md#adding-custom-compute-and-submit-functions) for the signatures and for examples in
|
|
92
|
+
TypeScript, JavaScript, Python and SQL.
|
|
93
|
+
|
|
94
|
+
## Permission Management
|
|
95
|
+
|
|
96
|
+
Each campaign keeps who may view it and who may edit it, by user or group. A new campaign is shared with the
|
|
97
|
+
groups in the HitTriage package settings (all users by default).
|
|
98
|
+
|
|
99
|
+
To change a campaign's access, use `Manage campaign permissions` in its row of the campaigns table, or the users
|
|
100
|
+
icon on the campaign's ribbon. Can Edit includes Can View. With no one left under Can Edit, only the campaign's
|
|
101
|
+
author can change it; with no one under Can View, all users can view it.
|
|
102
|
+
|
|
103
|
+
To change the default access of new campaigns:
|
|
104
|
+
|
|
105
|
+
1. Go to `Browse` → `Platform` and click on `Plugins` (or directly via a link at `{your_datagrok_url}/packages`).
|
|
106
|
+
2. Under Cheminformatics, click on `HitTriage` package.
|
|
107
|
+
3. On the context panel, expand the `Settings` pane.
|
|
108
|
+
4. Modify the `Default view permissions` and `Default edit permissions` fields.
|
|
109
|
+
|
|
110
|
+

|
package/bdd/bdd.config.json
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
{"tiers": ["viewers"]
|
|
1
|
+
{"tiers": ["viewers"],
|
|
2
|
+
"audits": {"allow": {
|
|
3
|
+
"errors": [{"message": "the descriptors are not available", "reason": "the template features make the descriptors unlistable on purpose (bindings/landing.ts), and the Hit Triage and PepTriage editors log that they could not list them"}]}}}
|