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
Open dashboard with code-view shown #478
Open dashboard with code-view shown #478
Conversation
Just a thought: to reduce loading time, we can load a dummy page for the code view at first rather than load the code of a specific person. |
Just a suggestion, |
Yes, that is a good idea. Capturing code view configuration into the URL would be a separate feature though. The first step is to open the code view by default when launching the report for the first time, but show a dummy code view page to reduce loading time. The dummy page can have some instructions on how to view the code of a specific person. |
I am currently using information of the 1st author of the 1st repo which is already loaded at the time of the creation of the report, so I am not sure how much it would affect the loading time to use a dummy page instead. |
Are you sure? In the current version, loading the code view of a person takes an appreciable time even if it is the first person in the list; I'm not sure how the first one can be loaded by default without any additional delay. |
81979c5
to
3c64eed
Compare
I've updated the implementation to show a dummy code view page with some instructions on how to view the code of a specific author. |
3c64eed
to
e302c16
Compare
@reposense/devs i've updated the branch ready for review |
frontend/src/index.jade
Outdated
@@ -38,6 +38,11 @@ html | |||
v_authorship( | |||
v-bind:key="generateKey(tabInfo.tabAuthorship)", | |||
v-bind:info="tabInfo.tabAuthorship") | |||
#tab-authorship.tab-pane(v-else) | |||
.title | |||
span To get started, click on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change as follows?
To get started ... To view the code attributed to a specific author, click the </>
icon next to that author's name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the empty tab shouldn't be id-ed #tab-authorship
, maybe call it #tab-empty
or something.
cos the idea is that, next time we can add new kinds of side display, say a diff view will have the id #tab-commit
e302c16
to
02b9c9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 good to go
Just came to my mind... now that the code view is opened by default, perhaps we should also inform the user that the code view can be hidden? |
Code view is hidden upon initial loading of report. Let's open a dummy code view with instructions on how to view the code of a specific author, to guide a user seeing a RepoSense report for the first time.
69f879d
to
06f4750
Compare
Ok, I've added a line to inform the user that the code view can be hidden |
Fixes #464