Extending Horizon's plug-in mechanism to scss

Registered by Shaoquan Chen

Summary:
Currently in Horizon's application part - openstack_dashboard, scss files are integrated to the app using dashboard.scss as the integration point and scss files for each enabled dashboard are imported into it by using hard-coded approach. This approach has some issues:

* style for disabled dashboard will still be included in the app, unless changing the source code
  during deployment.
* developer has to manually maintain the integration list or tree

Motivation:
We want to solve the issues listed above.

Description:
Extends Horizon's plug-in mechanism to scss, so to solve the above issue. This extended plug-in mechanism is based on a simple naming convention, just like it does with JavaScript files, HTML files
and Python files. The naming convention is:

* For each dashboard, `project` for example, there should be a directory
  defined for it: openstack_dashoboard/static/dashboard/project/.
* And there should be a `project.scss` defined for it

UX:
No impact.

Outside Dependencies:
N/A

Requirements Update Required:

Doc Impact:

Blueprint information

Status:
Complete
Approver:
David Lyle
Priority:
Undefined
Drafter:
Shaoquan Chen
Direction:
Needs approval
Assignee:
Shaoquan Chen
Definition:
Obsolete
Series goal:
None
Implementation:
Not started
Milestone target:
None
Completed by
David Lyle

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/plugin-scss,n,z

Addressed by: https://review.openstack.org/192500
    Extending Horizon's plug-in mechanism to scss

Gerrit topic: https://review.openstack.org/#q,topic:coreModule,n,z

*** Abandoning ***

This bp get abandoned since Thai created a similar one
https://blueprints.launchpad.net/horizon/+spec/pluggable-scss

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.