JRaviLab / molevolvr2.0

WIP new molevolvr app
https://molevolvr.netlify.app/
1 stars 10 forks source link

MSA viz using Nightingale #32

Open triksi254 opened 1 month ago

triksi254 commented 1 month ago

Step 1: Install Dependencies npm i @nightingale-elements/nightingale-msa

Step 2: Create a Wrapper Component New file NightingaleMSAWrapper.js

Step 3: Integrate the Wrapper Component Modify your Outputs component to include the NightingaleMSAWrapper

Step 4: Parse the MSA Data in NewAnalysis.tsx

Step 5: Integrate the Parsed Data into the Outputs Component

netlify[bot] commented 1 month ago

Deploy Preview for molevolvr failed.

Name Link
Latest commit 32e08e901888cda68b54332d10ccfc23f22410ef
Latest deploy log https://app.netlify.com/sites/molevolvr/deploys/671d5d76b38dbb00098ae0e2
triksi254 commented 1 month ago

@vincerubinetti @jananiravi please review and give feedback, thank you

vincerubinetti commented 1 month ago

A couple of things just briefly looking at the code and not testing it yet:

It's perfectly okay that you've set it up the way you did, because I didn't provide any guidelines in the issue, but I'll want to make a few architectural changes:

I'll probably have some more comments on Monday.

vincerubinetti commented 1 month ago

@triksi254 If you're able to make the changes I discussed above, please do. If not, I won't be able to get to making the changes myself until next week.

triksi254 commented 1 month ago

I am currently working on it. It should be ready tomorrow

On Tue, Oct 15, 2024 at 9:38 PM Vincent Rubinetti @.***> wrote:

@triksi254 https://github.com/triksi254 If you're able to make the changes I discussed above, please do. If not, I won't be able to get to making the changes myself until next week.

— Reply to this email directly, view it on GitHub https://github.com/JRaviLab/molevolvr2.0/pull/32#issuecomment-2414744080, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVOAL36Z2HXWVEHJTHDUE5LZ3VOKTAVCNFSM6AAAAABP2UFNPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUG42DIMBYGA . You are receiving this because you were mentioned.Message ID: @.***>

triksi254 commented 1 month ago

bun run lint test shows the error below bun: File name too long: error: script "lint" exited with code 1

vincerubinetti commented 1 month ago

I'm not able to reproduce that error. Can you provide more info, e.g. which commands you ran, what OS you're using, what other logs (errors or otherwise) did you get?

triksi254 commented 1 month ago
$ eslint . --fix && prettier **/*.{tsx,ts,module.css,css,html,md,json,yaml} --write --no-error-on-unmatched-pattern

=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=4.7.4 <5.6.0

YOUR TYPESCRIPT VERSION: 5.6.2

Please only submit bug reports when using the officially supported version.

=============
bun: File name too long: 
error: script "lint" exited with code 1` 
This is the full error. Am using windows 10-64 bit
vincerubinetti commented 1 month ago

Also, this typescript is defining a custom element for nightingale...

declare namespace JSX {
  type IntrinsicElements = {
    "nightingale-msa": any;
  };
}

...but it is overwriting/removing the definitions for all other native HTML elements:

Screenshot 2024-10-16 at 11 15 21 AM

I believe to capture both it should be:

namespace JSX {
  interface IntrinsicElements {
    "nightingale-msa": JSX.HTMLAttributes<CustomElement>;
  }
}
triksi254 commented 1 month ago

Thanks, I'll check it out!

On Wed, Oct 16, 2024 at 6:33 PM Vincent Rubinetti @.***> wrote:

Also, this typescript is defining a custom element for nightingale...

declare namespace JSX { type IntrinsicElements = { "nightingale-msa": any; };}

...but it is overwriting/removing the definitions for all other native HTML elements: Screenshot.2024-10-16.at.11.15.21.AM.png (view on web) https://github.com/user-attachments/assets/479bdc62-c8ad-4007-b685-c50449b8cbb4

I believe to capture both it should be:

namespace JSX { interface IntrinsicElements { "nightingale-msa": JSX.HTMLAttributes; } }

— Reply to this email directly, view it on GitHub https://github.com/JRaviLab/molevolvr2.0/pull/32#issuecomment-2417191241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVOAL3YJWF65WRFZXROZIF3Z32BONAVCNFSM6AAAAABP2UFNPKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJXGE4TCMRUGE . You are receiving this because you were mentioned.Message ID: @.***>

vincerubinetti commented 4 weeks ago

See what I did in this PR for more guidance:

https://github.com/JRaviLab/molevolvr2.0/pull/39