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
Restructure dashboard files and folders #9969
Restructure dashboard files and folders #9969
Conversation
5db85c7
to
26631bc
Compare
I really like it, I like the grouping by 'category' as opposed to 'type' a lot. I'm eager to hear what other people think! |
avoid duplicate ‘dashboard’ naming when unnecessary
26631bc
to
4e85e79
Compare
I like these changes. It's still a bit different than what we are going with in Watcher, but about what we can accomplish without major rewrites to these files. |
I also dig this. We took this one step further with the top-level The only additional changes I might consider:
But this it totally fine to ship as-is too. LGTM! |
88fdc96
to
a54a232
Compare
a54a232
to
423a272
Compare
I dig @w33ble, suggestions added. |
I'm not sure I'm digging this... isn't it a common practice and convention to have the module main js file named One advantage of having the main files named /cc @epixa |
FWIW, I'm partial to the |
9af819a
to
e29bf87
Compare
I like being explicit, but agree it's not the current convention, and don't feel strongly either way, so, I un-dig. 😸 |
BTW, I'm not partial either way... I just want to make sure we have a clear convention and we follow it. I like being explicit too... (and it has its merits as I mentioned) and if the majority likes that too we can make it the convention, but it needs to be a clear and consistent about it. |
btw... as a side note... per previous discussion I had with different ppl. The advantage of using import { Dashboard } from '/dashboard' vs import { Dashboard } from '/dashboard/dashboard.js' may look like a small thing, but it's actually bigger than it looks. by only importing the module, you force all exports to be explicit within the |
Backports PR #9969 **Commit 1:** Restructure dashboard files and folders * Original sha: 1c01e78 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-01-19T20:48:58Z **Commit 2:** Try to stay DRY avoid duplicate ‘dashboard’ naming when unnecessary * Original sha: 4e85e79 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-01-19T20:56:20Z **Commit 3:** rename index => dashboard and add an index.js with imports rename style * Original sha: 423a272 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-01-20T13:44:05Z **Commit 4:** un-dig * Original sha: e29bf87 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-01-20T14:18:27Z
FYI - for introducing a dashboard landing page, I'm probably going to have:
Similar to how it is in @cjcenizal's visualize landing page PR. |
Exactly. The proposal I've heard, and we've been following with watcher, is to use both.
This isn't the place for this discussion though, I'm planning to open another issue so we can discuss and come to an agreement as a team. |
moving the actual dashboard impl. to and I believe this to some degree what @stacey-gammon did (except the import part :)) |
* Restructure dashboard files and folders * Try to stay DRY avoid duplicate ‘dashboard’ naming when unnecessary * rename index => dashboard and add an index.js with imports rename style * un-dig
The current arrangement of folders and files in dashboard I find very unintuitive and difficult to find anything. Here is a new proposed version, trying to be in line with the LIFT principals
Previous collapsed folder structure:
New collapsed folder structure:
Previous expanded folder structure:
New expanded folder structure:
Changes:
component\panel\lib
) and the new folder structure keeps everything to less than 7 files per folder._dashboard
suffix for top_nav components.saved_dashboard
section could probably be improved, but wasn't sure on a better name.