Lookbook v1.0 [beta]
This is the beta development branch for Lookbook v1.0.
> See the main branch for code and documentation for the current stable release.
🚀 Release focus
The main goals of the v1.0 release are:
- [x] Rebuild app UI using ViewComponent components
- [x] Improve usability of the small screen/mobile layout
- [x] Add support for some limited UI color theme customisation
- [x] Remove the
experimental
flag from the Pages - [x] Improve the development/debugging setup, and allow previewing Lookbook’s own components in Lookbook :-)
- [ ] Improve the test setup and test coverage, switch to RSpec [in progress]
No breaking changes are planned for user-facing features, although the app UI will include some minor visual updates and usability improvements.
👋 Testing and feedback - help wanted!
The bulk of the v1.0 ‘new feature’ development work is now mostly complete, although testing and bug fixing is ongoing.
If you are an existing Lookbook user I’d greatly appreciate if you can kick the tyres on the v1.0 beta and open an issue with any bug reports, suggestions or feedback you might have.
Main areas/points for testing:
- Existing Lookbook setups should continue to work with no changes required
- There have been a number of small UI changes - do any of them negatively affect your experience of using Lookbook?
- The Pages feature should work without opting in to any experimental features.
- It’s now possible to pick from one of a small set of pre-defined UI themes (finer-grained customisation coming soon!). See below for details. Any thoughts on this?
> However absolutely any thoughts, comments or bug reports (even if unrelated to the specific areas above) would be much appreciated!
UI theming
Lookbook now ships with a small set of pre-defined UI themes, which can be set using the ui_theme
config option:
# config/application.rb (or similar) config.lookbook.ui_theme = "blue"
Currently available themes are:
indigo
(default)blue
zinc
> More themes and finer-grained customisation of theme colours is coming soon!
🛠Workbench
As of this release, Lookbook’s UI is itself built using ViewComponent components. To help with development it is possible to preview these components (in a Lookbook instance!) by running the included ‘Workbench" app, as follows:
- Clone this repo
- Install dependencies:
bundle install & npm install
- Start the Workbench:
foreman start
- Open http://localhost:4545 in your browser to view the Workbench
This will start the Workbench app in development mode and any changes to Lookbooks views or assets will immediately be visible in the UI.
🚦 Running tests
The test suite is in the process of being completely overhauled.
Tests are now written using RSpec and the system now uses Combustion under the hood.
- Tests can be run using the
rake lookbook:test
orbundle exec rspec
commands. - The dummy app that the tests are being run against can be viewed by running the
rake lookbook:test:serve
command and then browsing to http://localhost:9292/lookbook
License
The gem is available as open source under the terms of the MIT License.