-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Continue refactoring out common code from app layers #2636
Comments
@igor-dv you mentioned something about wanting to separate the angular part of |
@tmeasday, there are several functions for generating dynamic components and metadata repeated through the angular app and the knobs addon. We should unify them so we don't repeat ourselves |
👆 + after #2564 will be one more place - storyshots. |
I think none of the addons currently are dependant on any of the app packages. We can technically do it (like @Hypnosphi suggested - just import things from extraneous deps, without defining them in package.json), but in this case, it feels a bit dirty to me - because of the purpose of the "app" package. |
I think we need to figure out the story on the way that addons import from the various app packages anyway, right? I mean it's pretty hacky in storyshots as it stands, it would be best to figure out a pattern as we take it further. I guess what I am wondering is whether it helps for (say) |
Yeah, I think this was a point of discussion when we I initially started working on the knobs addon. At that point in time we wanted to keep their functionality separated, after all just because you use storybook it doesn't mean you'll want to use the knobs addon. I still feel the same way. We should split out the metadata/component/module annotation stuff from both the app and the addons; these things aren't directly related to the app or addons. They're just things we need in order to make storybook work with angular as it stands. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks! |
Can all this recent transition to the core be considered a refactoring? Or you have something else in mind? |
Do you think splitting the RN app from the browser UI is something that could be added to the list of refactoring here? Instead of the browser keeping track of the state, we should just run that code in RN. This would allow our app to run and ship independently. |
@danielduan probably best to keep that to a separate issue. What I mean in this issue is quite a simple refactoring out of repeated code from the various app layers. It has been happening, slowly on both the preview and config (server) front. |
Following on from #2241
Checklist:
The text was updated successfully, but these errors were encountered: