← Back to community index
# contributor·Active

Seve - hello everyone, i need a maintainer to m...

okay should be use both name and displayName

Started by techmannihJan 14, 202699 messages

Discussion

Last active 5 months ago · plain text
techmannihoriginal post
okay should be use both name and displayName
techmannih
<@757706909351411845> https://github.com/tscircuit/core/pull/1848
techmannih
<@757706909351411845> is it done or i need to add anywhere? https://linear.app/tscircuit/issue/TSC-327/implement-displayname-for-all-normal-components
Seve
test on tscircuit.com
techmannih
after update the tscircuit in tscircuit.com
Seve
looks like bad dep verison for autorouter or something
techmannih
okay, need to update in core first?
Seve
update what?
Seve
make sure the autorouter version you're using in that project matches the one already in core. Use npm ls
techmannih
yep
techmannih
we never defined in props
Seve
manufacturer part number...
techmannih
yes but it not defined in props......do we need to add it, it give type error otherwise
Seve
yea we can add it!
Seve
it is a common shorthand
techmannih
https://github.com/tscircuit/props/pull/562
techmannih
is it not in commonlayoutprops?
Seve
where is manufacturerPartNumber defined
techmannih
manufacturerPartNumber is using individually for all
Seve
why would we define them in separate locations. mpn/manufacturerPartNumber is not related to layout
Seve
honestly a bit disappointed because maintainers are supposed to be keep code quality high and it seems like you sort of just did something really hacky
Seve
but i'm glad you found the issue in the first place ig
techmannih
ahh sorry, i was add it individually but when you mentioned it is common, then added in commonlayout
techmannih
https://github.com/tscircuit/props/pull/563
Seve
this is still the wrong location
Seve
are you reviewing your code before you request review?
techmannih
yes, but manufacturePartNo is also defined as same place for some component
Seve
add it as a common component prop, not a common layout prop
techmannih
😵‍💫
techmannih
my bad, i was thinking all component inherit the CommonLayoutProps 😵‍💫 damm
techmannih
https://github.com/tscircuit/props/pull/564
techmannih
number is missing in the component’s name when I convert the circuit-json to KiCad and check the schematic view.
Seve
Yea seems like a bug
techmannih
yep i try to fix it.
techmannih
https://github.com/tscircuit/circuit-json-to-kicad/pull/70
techmannih
I was getting this issue when I was using https://circuit-json-to-kicad.com to convert Circuit JSON to KiCad and viewing the schematic, and after fixing it, I followed the same process and got the correct output, which is what I mentioned.
Seve
Create a repro and don't update unnecessary snapshots
Seve
you updated every snapshot in the project
Seve
don't even fix it right away- implement the repro first
Seve
just PR a test with the snapshot so that i can see the issue
Seve
you updated 100 snapshots unnecessarily
techmannih
yep due to BUN_UPDATE_SNAPSHOTS=1
techmannih
https://github.com/tscircuit/circuit-json-to-kicad/pull/73
techmannih
now fixed
techmannih
yes, i made a repro first and send you a pr after fix? is there something wrong? that is repro https://github.com/tscircuit/circuit-json-to-kicad/pull/71
Seve
You merged without approval? Why?
techmannih
you said first make a repro then fix it.
Seve
Dont skip approval
techmannih
sure sorry for this time
techmannih
https://github.com/tscircuit/circuit-json-to-kicad/pull/58/files
techmannih
<@757706909351411845> https://github.com/tscircuit/circuit-json-to-kicad/pull/82 https://github.com/tscircuit/core/pull/1865
Seve
nice work on these <@1067854999889137715>
techmannih
some dep issue in the tscircuit.com. Idk why it is not updating. can you tell me how can i get proper dep update in tscircuit.com
techmannih
I don’t think so. We had already implemented maxVoltageRating / capacitance in the schematic view before 2 month ago i think, but it is still not showing on tscircuit.com.
techmannih
<@757706909351411845>
Seve
I think u just have to install that dep
techmannih
https://github.com/tscircuit/core/pull/1877
techmannih
I try to changes the color of board then found it the background color always is black. look like a issue ????
techmannih
<@757706909351411845> https://github.com/tscircuit/circuit-json/pull/447
techmannih
is the @tscircuit/capacity-autorouter private repo?
Seve
no
Seve
it is tscircuit-autorouter
Seve
maybe try to carefully reproduce the customer issue more? Maybe an issue with the group?
techmannih
yes i just copied which is give by him https://discord.com/channels/1233487248129921135/1437566965421047829/1466344901573742669
techmannih
once can you check it. both are working well right now. i am using the code which is provide the customer https://tscircuit.com/editor?package_id=ebeb9aec-1c80-45e6-82e6-15613e34c3f6
techmannih
<@757706909351411845>
Seve
can you communicate to the user that you couldn't reproduce and send them that link? ty
techmannih
Yes
techmannih
But this is reproduce
Seve
ah ok then fix it?
Seve
i'm confused
techmannih
It's fixed
techmannih
This is a link where both are working well
Seve
<@1067854999889137715> If it's working, then tell the customer you weren't able to reproduce their issue
Seve
if it's not working, then fix it
Seve
what is the issue?
techmannih
<@757706909351411845> The user wants the net label to use displayName instead of name when displayName is available. So we would need to define a clear priority, for example: manufacturerPartNumber > displayName > name, or displayName > manufacturerPartNumber > name What do you think—should we support this behavior? And if yes, which priority makes more sense?
techmannih
<@757706909351411845>
Seve
What? Name and manufacturerPartNumber display in different locations
Seve
Not relevant
techmannih
No
techmannih
User want this
Seve
displayName is prefered over name, manufacturerPartNumber is put in a totally different place
Seve
also <@1067854999889137715> i'm literally going to derank you for your shitty short messages. Do not waste my time
Seve
i'm dead serious, wtf is this
Seve
explain yourself complete, in full sentences, with screenshots. This is the last warning. I don't have time for a million messages on such a simple concept
Seve
displayName is shown instead of name when provided. manufacturerPartNumber is shown in a different location
Seve
that is the intended behavior
techmannih
I know this "displayName is shown instead of name when provided. manufacturerPartNumber is shown in a different location". But the user desired something different. I was just asking you. do we need to support or not. The user wants the net label to use displayName instead of name when displayName is available.
Seve
Yes net labels can also have display names!
Seve
Thank you

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗