-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#4880 – Adjust previews – add APs, show IDT aliases for previews in sequence mode, increase debounce time #5160
Conversation
0b75a75
to
4e44f14
Compare
ketcher-autotests/tests/test-data/KET/chem-connected-to-micro-structure-expected.ket
Outdated
Show resolved
Hide resolved
packages/ketcher-macromolecules/src/components/monomerLibrary/RnaPresetGroup/RnaPresetGroup.tsx
Outdated
Show resolved
Hide resolved
packages/ketcher-macromolecules/src/hooks/useAttachmentPoints.ts
Outdated
Show resolved
Hide resolved
packages/ketcher-macromolecules/src/state/common/editorSlice.ts
Outdated
Show resolved
Hide resolved
return null; | ||
} | ||
|
||
if (presetName.includes('MOE')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why rules applied only for MOE? I believe it should be for all presets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { R1, R2 } = attachmentPointsToBonds; | ||
// Handle phosphate exclusively | ||
if (base === 'Phos') { | ||
if (R1 !== null && R1.firstMonomer instanceof Sugar) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sugar can be the second monomer in bond if user connected it from right to left. Probably need another check here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the requirement, we need to check only the specific case when sugar and phosphate have left-to-right connection.
4.2.3. If the phosphate is the last monomer in the chain, but the second to last is not a sugar/nucleozide, the alias should be: 3Phos.
It doesn't matter, if there is a sugar after phosphate, it will be covered by the general rules for monomers
packages/ketcher-macromolecules/src/hooks/useIDTAliasesTextForMonomer.ts
Outdated
Show resolved
Hide resolved
0073965
to
91f462e
Compare
ae4fd6a
to
f38b868
Compare
…equence mode, increase debounce time
This reverts commit f2608b3.
- resolved conflicts during rebase
f38b868
to
42826a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
…equence mode, increase debounce time (#5160) - added changes according new requirements for IDT aliases - added util function to add H to O leaving group - fixed idt aliases in preview for unresolved monomers - updated screenshots --------- Co-authored-by: Roman Rodionov <roman_rodionov@epam.com>
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
Check list
#1234 – issue name