These are chat archives for reactioncommerce/reaction

29th
Apr 2019
Chandran
@chandrantwins
Apr 29 07:05
anybody knows reaction ecommerce staging website for operator .. i found for frontend https://storefront.staging.reactioncommerce.com
kathiresh
@kathiresh
Apr 29 08:43

Hi All, How can we show more than 10 tags in Store. Currently I am able to show around 10 only. Remaining not visible/hidden for web view. In mobile view it is showing in dropdowns which is good. So for web view How can i show more tags? It would be helpful If anyone could ans to this.

Thanks

Chandran
@chandrantwins
Apr 29 08:51
i have created custom plugin and tried to add menu in dashboard. but its not displaying.. i checked reaction log.. its not loading my custom plugin
how to make load our custom plugins
Loan Laux
@loan-laux
Apr 29 09:06
@thirdchance57 Not available publicly as far as I know
@kathiresh The default UI in the starter-kit isn't made to display a lot of links in the navbar. You'd have to add your own styling to allow for that to happen.
kathiresh
@kathiresh
Apr 29 09:10
Thanks @loan-laux
Chandran
@chandrantwins
Apr 29 09:14
Hi @loan-laux any idea why its not loading my custom plugin in 2.0.0 version
how to debug?
Loan Laux
@loan-laux
Apr 29 09:14
@chandrantwins Any extra details on what's happening?
Chandran
@chandrantwins
Apr 29 09:15
i have created plugin using reaction-cli
and i have changed register.js to display icon in dashboard
thats all
Loan Laux
@loan-laux
Apr 29 09:16
Hmm... Which dashboard? Are you using an old version? On the latest one, you don't use the registry anymore to add admin panels.
Chandran
@chandrantwins
Apr 29 09:17
i am using 2.0.0 version.. i am trying to add in operator dashboard..
image.png
i want to add after product
Loan Laux
@loan-laux
Apr 29 09:19
All right, then you can't do that through the registry as it used to be. Now you need to use the registerOperatorRoute method in your plugin's client directory. Try and do a global search for usage examples and just go from there.
Not sure if there's an official documentation for that yet... I haven't checked to be honest.
Chandran
@chandrantwins
Apr 29 09:19
let me check @loan-laux thanks for input
Rajan Tiwari
@trojanh
Apr 29 09:22
@chandrantwins check this,
https://github.com/reactioncommerce/reaction/blob/6c8e8066e7cf36057f93bbf4f08e836676c44896/imports/plugins/core/accounts/client/index.js#L59
This how you will need to register your route inside client/index.js to be able to see it
Chandran
@chandrantwins
Apr 29 09:26
thanks @trojanh for reference
Chandran
@chandrantwins
Apr 29 09:52
image.png
still its not loading my custom plugins
@trojanh and @loan-laux any idea?
Chandran
@chandrantwins
Apr 29 10:21
i think some one should create documentation ..how to create plugin in 2,.0.0 version
reaction-cli is not more valid.. it seems
Loan Laux
@loan-laux
Apr 29 10:22
Not loading your plugin, huh... Did you completely restart your Reaction container?
Chandran
@chandrantwins
Apr 29 10:23
yes sudo docker-compose restart.. i have done @loan-laux
inside reaction folder
Rajan Tiwari
@trojanh
Apr 29 10:23
"reaction reset -y" us also needed i think
Loan Laux
@loan-laux
Apr 29 10:24
@trojanh That was back when the Reaction CLI was still used. Now it's deprecated, and restarting the container should make the plugin loader pick up the newly created plugin.
Chandran
@chandrantwins
Apr 29 10:24
i have already done reaction reset -n .. is that fine or do we need -y @trojanh
Loan Laux
@loan-laux
Apr 29 10:25
You don't need it @chandrantwins, the container will rebuild the plugin imports by itself on restart.
Simply don't use the reaction CLI anymore. It's deprecated.
Chandran
@chandrantwins
Apr 29 10:25
ok fine @loan-laux
Loan Laux
@loan-laux
Apr 29 10:25
@chandrantwins So where did you put your registerOperatorRoute calls?
Is that file being imported from <your_plugin>/client/index.js?
Chandran
@chandrantwins
Apr 29 10:27
its inside imports/plugin/custom/reaction-product-csv/client/index.js
Rajan Tiwari
@trojanh
Apr 29 10:27
it will work without docker, i/e when setting reaction on local with reaction command even with 2.0
Loan Laux
@loan-laux
Apr 29 10:27
Great. And you can't see any new panel added in the Operator UI?
Rajan Tiwari
@trojanh
Apr 29 10:28
otherwise as @loanlaux suggested restarting the container will work when using docker
Loan Laux
@loan-laux
Apr 29 10:28
@trojanh Yes, it still works but it's deprecated. And one day it won't work anymore, hence why I never advise anyone to get used to it.
Chandran
@chandrantwins
Apr 29 10:28
yes @loan-laux still i cannot see new menu
Loan Laux
@loan-laux
Apr 29 10:28
@chandrantwins Getting any error in the server or client console?
Chandran
@chandrantwins
Apr 29 10:29
do we need to check inside reaction folder.. sudo docker-compose logs -f right @loan-laux
Rajan Tiwari
@trojanh
Apr 29 10:29
sure @loanlaux
Chandran
@chandrantwins
Apr 29 10:29
or do we have any other logs file
Loan Laux
@loan-laux
Apr 29 10:30
@chandrantwins Yeah just print the logs from the Docker container like you did, and look for any error. On the client side as well, open your JavaScript console and let me know if you see anything stranger there.
Chandran
@chandrantwins
Apr 29 10:31
image.png
still not loading my custom plugin in docker @loan-laux
Loan Laux
@loan-laux
Apr 29 10:33
@chandrantwins If you don't have a registerPackage call in your plugin's register.js, it won't appear there. But it doesn't mean that it's not imported.
Chandran
@chandrantwins
Apr 29 10:34
is that only client.js is enough to register our plugin @loan-laux
Loan Laux
@loan-laux
Apr 29 10:34
@chandrantwins Please check if there are imports for your plugins in <reaction>/client/plugins.js
Chandran
@chandrantwins
Apr 29 10:35
in my code there is no file call plugins.js
it seems those file should be created automtically but its not created @loan-laux
mulib
@mulib
Apr 29 10:51

after last pull, im getting error when trying to run the platform:
"no such file or directory, open '/opt/reaction/src/node_modules/apollo-codegen/test/misc/schema.graphql'"

any idea how to fix it?

Chandran
@chandrantwins
Apr 29 10:53
it seems inside mongodb Packages not having my custom plugin. its really strange
Loan Laux
@loan-laux
Apr 29 10:58
@chandrantwins That's weird. Can you put your custom plugins aside, start a new Reaction project and put the plugins back in custom?
mulib
@mulib
Apr 29 11:36
npm install fixed it sorry for posting....thanks Loan (;
Loan Laux
@loan-laux
Apr 29 11:37
:+1:
kathiresh
@kathiresh
Apr 29 12:17
Hi All, Can we add tags for 4 levels like Category1 --> Subcategory Parent 1 --> Sub category child 1 -- > SUbcategort grand child 3?
Loan Laux
@loan-laux
Apr 29 12:25
@kathiresh That shouldn't be a problem AFAIK.
kathiresh
@kathiresh
Apr 29 12:54
@loan-laux How can I achieve that? I want 4 to 5 levels of Category and Subcategories
Eliot Hills
@elhil
Apr 29 14:08
@chandrantwins I’m running into the same issue, did you figure anything out?
Eliot Hills
@elhil
Apr 29 14:21
@chandrantwins okay I solved it
check /client/plugins.js and make sure your plugin appears there
if not, it’s not registering
Chandran
@chandrantwins
Apr 29 20:27
@elhil in my case this file is not yet created
is that created automtaically for you?
Eliot Hills
@elhil
Apr 29 20:28
even when the app is started? yes
if Reaction has started, that file exists
Chandran
@chandrantwins
Apr 29 20:28
i am running in docker..
but file was not created @elhil
are you running in docker?
Eliot Hills
@elhil
Apr 29 20:34
yes reaction-platform rc11
everything is running and you don’t have a client/plugins.js?
Chandran
@chandrantwins
Apr 29 20:35
are you running in docker?
Eliot Hills
@elhil
Apr 29 20:35
yes, that’s the only way to run reaction-platform