Comments (3)
Thanks for this @afomera - the navigation and search is definitely high up on the list of things to improve. There is another issue open with some rough thoughts on nav/search improvements, and including example titles in the filter is definitely one of them.
Looking at your example, It would also be nice to be able to specify where in the namespace to start the nav tree from (i.e. skip the Podia::UI part altogether). I'll add that to the list.
However quite why the first item ends up in its own list is an odd one - definitely a bug. I'll try to figure out why that might happen.
from lookbook.
Out of interest, would you want the examples for each preview sorted alphabetically too? My preference is to match the order I've defined them in the preview class, but that could quite easily be a configuration option.
from lookbook.
Thanks @allmarkedup , sorry I missed that other issue. I'm sorta mixed, if it respected the order it was defined in the preview class that'd work (I may be wrong, but it doesn't seem to do this now), otherwise falling back to alphabetical order by example would be great imo, we can classify stuff ourselves that way.
TBH, we have a ton of namespaces (IE so Podia::UI is not the only one in the Podia tree), so I'm not sure if we'd want to use it, as our team has decided things in Podia::UI are 'dumb' base components we one day when we're a larger team may extract to a new gem, but have other folders and namespaces inside of them.
from lookbook.
Related Issues (20)
- Why does the preview filter ignore the path/folder structure? HOT 4
- Add the ability to hide a nested within a group. HOT 3
- Cannot choose display options in an embedded preview HOT 4
- Support better errors / web console instead of rescuing errors in Lookbook HOT 2
- undefined method `strftime' for nil:NilClass with nil datetime HOT 1
- Hidden scenarios within groups are not accessible via their URL
- Swap the order of Previews and Pages sections HOT 4
- Ability to search within pages section HOT 3
- X-Frame-Options always set to deny HOT 8
- Can't draw templates that require instance variables HOT 5
- Lookbook overrides ViewComponent `show_previews` config depending on load order HOT 3
- ActionView::Template::Error occurs when trying to render a template file with a partial HOT 5
- FEA: Support for Mailer Previews HOT 1
- Support configurable frame ancestors for embeds HOT 2
- Documentation request: mention support for Phlex in the README HOT 5
- Previews not rendering nested components HOT 2
- Better integration with Phlex HOT 1
- Version requirement for listen gem is not specified, and wrong version error is suppressed HOT 1
- Syntax error reporting in Lookbook HOT 2
- Sharing View Component Previews Across Multiple Projects Without Duplicating Files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lookbook.