Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Refactor out branding-related settings to a separate service #254

Closed
syndesis-bot opened this issue Nov 15, 2017 · 3 comments
Closed

Refactor out branding-related settings to a separate service #254

syndesis-bot opened this issue Nov 15, 2017 · 3 comments
Labels
cat/starter An issue which is easy to solve and can be used for ramping up new developers cat/techdebt Label for issues identifying technical debt group/ui User interface SPA, talking to the REST backend prio/p2 The priority of a bug. p1 means low status/stale Issue considered to be stale so that it can be closed soon

Comments

@syndesis-bot
Copy link
Collaborator

@gashcrumb 2017-11-07 good first issue, Priority - Low, refactoring

We've this block of code that's kinda gotten out of hand:

https://github.com/syndesisio/syndesis-ui/blob/master/src/app/app.component.ts#L85-L130

I wonder if we should consider creating a separate branding service that components can just inject so it's easier to use these settings in views without all this extra boilerplate code.

@syndesis-bot syndesis-bot added cat/starter An issue which is easy to solve and can be used for ramping up new developers cat/techdebt Label for issues identifying technical debt group/ui User interface SPA, talking to the REST backend prio/p2 The priority of a bug. p1 means low labels Nov 15, 2017
@syndesis-bot
Copy link
Collaborator Author

@deeleman 2017-11-07

Agreed. It also contains a lot of hardcoded default values on each call, which should never be part of an Angular component since it breaks component reusability.

On a more particular note, since stuff such as favicons, theme colors, default onloading text, and themes have an impact in the wrapper index.html shell file (which is not part of the AppComponent itself), and some of of such information falls outside the scope of what Angular can do (at least for v4.x/5.x), I think that moving all those settings to a global custom settings JSON file and delegating on the Angular CLI/Webpack the responsibility for binding such information might be the way to go IMO.

This would make customizing the application easier for non-Angular devs too.

@syndesis-bot
Copy link
Collaborator Author

@gashcrumb 2017-11-07

Yeah, exactly, currently it's set via this json file which for us is set at runtime via the openshift template -> https://github.com/syndesisio/syndesis-ui/blob/master/src/config.json.example#L4-L14

It's probably going to be easier to just replace the favicon by just overriding it when building the docker image I think. Maybe also for the logo, but then I don't think we have any gnarly branding requirements outside of having an upstream vs product build.

@paoloantinori paoloantinori added the notif/triage The issue needs triage. Applied automatically to all new issues. label Mar 14, 2018
@gashcrumb gashcrumb added this to the Backlog milestone Mar 19, 2018
@paoloantinori paoloantinori added target/postGA and removed notif/triage The issue needs triage. Applied automatically to all new issues. labels Apr 10, 2018
@heiko-braun heiko-braun modified the milestone: Backlog Aug 27, 2018
@stale
Copy link

stale bot commented Nov 25, 2018

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale Issue considered to be stale so that it can be closed soon label Nov 25, 2018
@stale stale bot closed this as completed Dec 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cat/starter An issue which is easy to solve and can be used for ramping up new developers cat/techdebt Label for issues identifying technical debt group/ui User interface SPA, talking to the REST backend prio/p2 The priority of a bug. p1 means low status/stale Issue considered to be stale so that it can be closed soon
Projects
None yet
Development

No branches or pull requests

4 participants