Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We are working on #544360: D7UX dashboard module but we need to take considerable time to think about the contents. I would like to use this issue to discuss the several ideas.
http://farm4.static.flickr.com/3440/3748580107_66370ccf57_o.jpg
Comment | File | Size | Author |
---|---|---|---|
#19 | dashboard-blocks-569190.patch | 5.49 KB | jolos |
#5 | dashboard-comments.png | 297.98 KB | SeanBannister |
#5 | dashboard-comments-(no-notes).png | 128.56 KB | SeanBannister |
Comments
Comment #1
jenlampton1. can we have some friendly "empty" text when there's nothing here?
2. What about User Stats (counts / roles / active)?
3. What about taxonomy (list of vocabs and type / term counts / add + edit links)?
4. Administration Shortcuts aren't really shortcuts.
4a. No one ever uses the node/add page. Can we put in links to each content type instead?
4b. can we add "administer comments" (is there better language than that? "manage comments"?)
4c. We have a link to the "dashboard" (/admin) from the "dashboard" (/admin/dashboard"). Can we change the text to "up" ?
Comment #2
mcrittenden CreditAttribution: mcrittenden commentedI for one would love the pretty graph of traffic, if at all possible (which it might not be without requiring a contrib module). Call me a noob, but sometimes you just want to glance without going all the way to Google Analytics.
Comment #3
Linea CreditAttribution: Linea commented+1 for a traffic graph for a quick look at what's happening on your site.
Comment #4
SeanBannister CreditAttribution: SeanBannister commentedIn my opinion the traffic widget would require more than we can handle in core at the present time because it would need some type of Graphing API. Correct me if i'm wrong but this seems like a lot of work done in time.
There is however the Google Analytics API contrib module which works in well with the Google Analytics module to bring you analytics stats back into Drupal.
Comment #5
SeanBannister CreditAttribution: SeanBannister commentedI believe some of the most used widgets will be "Moderate Comments", "Moderate Nodes", "Moderate Users".
I had a play around with the Moderate Comments mockup and attached is what I came up with. A few of the elements need a bit more padding/margin.
Comment #6
amc CreditAttribution: amc commentedCouldn't we just leverage the Statistics module for a basic traffic widget? In fact, most of the blocks from the Statistics module would make good dashboard content.
Comment #7
SeanBannister CreditAttribution: SeanBannister commented@amc yeah I think a basic traffic widget would be good.
Comment #8
jolos CreditAttribution: jolos commentedA traffic widget would indeed be nice to have. But it's certainly not a must have, it's not essential to the task of administering your site. And as SeanBannister has already mentioned, without a graph API this would be hard to implement. So I'm in favour of implementing this with a contrib module.
I've tried to aggregate the goals of the dashboard found on http://www.d7ux.org/dashboard/ below ( + added my own opinion, marked with a question mark ):
Only a few blocks already implement (partly) the functionality described above.
"Recent comments" lists indeed the recent comments but doesn't allow you to interact with these comments, I think the mockup of SeanBannister is a good indication of what we should achieve.
But most other functionality has still to be implemented (correct me if I'm wrong).
Comment #9
seutje CreditAttribution: seutje commentedsubscribe
Comment #10
amc CreditAttribution: amc commentedJust found #488550: [PP-1] D7UX Microproject - Dashboard Widget for Traffic Data.
Comment #11
yoroy CreditAttribution: yoroy commentedBump to critical, we *really* should have some sensible defaults available to make a useful dashboard page.
Scanning the suggestions here and some inquiry in IRC it seems like:
### Must haves:
- comments awaiting approval
- number of published / unpublished nodes
- available updates
- direct shortcuts to creating content of a specific type
### Should haves
- Drupal.org newsflashes
- Traffic data (but really how feasible is that with what we have in core now?)
- Shortcuts to drafts
### Nice to haves
- Watchdog messages?
- List of recenly installed modules
- And all the other fun stuff we already have in core (recent forum posts, recent comments, who's online, who's new etc)
… anyway, it's easy to come up with nice2haves, but that should not be the focus now.
____________________________
So, is this something we can agree on:
### Must haves
- comments awaiting approval
- number of published / unpublished nodes
- available updates
- direct shortcuts to creating content of a specific type
We'd still need to spec each individual block of course, but at least this would give us some direction on which ones to do that for. Thoughts?
Comment #12
Gábor HojtsySounds sensible.
Comment #13
yoroy CreditAttribution: yoroy commentedHmm left out accounts awaiting approval / link to users list, also a must have methinks
### Must haves
- comments awaiting approval
- number of published / unpublished nodes
- user accounts awaiting approval
- available updates
- direct shortcuts to creating content of a specific type
Comment #14
Bojhan CreditAttribution: Bojhan commentedOke, so looking at the list I think the *approval* might not be so applicable to Drupal sites. Instead lets assume that, having blocks that display *recents* are important. Since its highly likely, you either want a listing of your recent content or a listing of your recent comments.
--------
* Recent content
* Recent comments
* Recent users
-------
Continuing I think we want to avoid, any action or statistics for now. And focus on listings of important thing's, whether this is updates or content. I think its best - not to focus to much on what will endup on the Dashboard, and just create good blocks - during that we should find common ground, on which blocks are critical and which ones are not.
Comment #15
yoroy CreditAttribution: yoroy commentedAgreed with swapping out 'awaiting' for 'recent'. 'Awaiting' assumes a certain use case. (like currently in core, the default for account creation is 'just let everybody signup, no approval needed'. Same with comments.)
Also agree on leaving out the 'actions' bit for now, with a possible exception of the direct links to create content of a certain type. It's easy to forget how much better the 'add content' shortcut is in the toolbar, but I'm already annoyed by the intermediate page it links to.
Interestingly, this makes only the 'recent content' block a new one. I'm sure we want to have a close look at the existing 'recent comments' and 'new users' blocks but hey, it's a start!
#337947: Correct whitespace issue for 'recent content block' in dashboard
Comment #16
amc CreditAttribution: amc commentedFor future reference, an issue was started on a watchdog block at #488570: Block for dblog, although as of yet discussion hasn't really gone anywhere...
Comment #17
yoroy CreditAttribution: yoroy commentedYup! That's why we be taggin' :-) http://drupal.org/project/issues/search/drupal?issue_tags=dashboard
Comment #18
Dries CreditAttribution: Dries commentedComment #19
jolos CreditAttribution: jolos commentedI was already working on the recent content & the approval block.
This is only a first try, so there's still a lot of work to be done. Especially on the approval block.
As for now this block only shows the unapproved comments, there's not yet a way to approve or delete them.
Also, I haven't touched the styling yet, so it is a bit ugly :).
But it's a start. Let me know what you think.
Comment #20
jolos CreditAttribution: jolos commentedhmmm, I totally missed #337947: Correct whitespace issue for 'recent content block' in dashboard
Comment #21
yoroy CreditAttribution: yoroy commentedjolos: thanks for your quick reply, but please follow up the actual coding in that other issue. This one is better off only discussing the general direction of the ones we want on the dashboard. Thanks!
Comment #22
SeanBannister CreditAttribution: SeanBannister commentedDon't want to derail the issue, I agree with having blocks for Recent Content/Comments/Users but I think they should work similar to the current Comments page (/admin/content/comment) at the top it provides two options [Published Comments] [Approval queue]. I think we'll find the ability to moderate the content from the dashboard is what'll make it really useful.
We'd need to work out the terminology so it was consistent but it'd be something like :
* Recent content
[Published] [Unpublished]
* Recent comments
[Published] [Awaiting Approval]
* Recent users
[Approved] [Awaiting Approval]
Comment #23
catchI've been thinking about recent comments / recent content - and for me, I'd want quick links to edit and delete those, not just view them. So I'd suggest we add new 'content administration' 'user administration' and 'comment administration' blocks which have those handy links on them.
Would be good to have a block which provides the same information as admin/reports/status.
One thing we don't provide anywhere in core yet, but is useful information, is number of nodes / comments / users on the site - we can also do that historically quite easily, so:
Comment #25
David_Rothstein CreditAttribution: David_Rothstein commentedI agree with @catch: Although a "comment administration" block would in some ways contain similar information as the current "recent comments" block, it does make sense to create a totally new block for this rather than trying to reconfigure the current one to work in both places.
That sounds like the most flexible solution, especially since there's a good chance we'll be technically limited so that a block which appears in the dashboard cannot appear elsewhere on the parts of the site that use the same theme.
As per discussion at #544360: D7UX dashboard module, I'd suggest we make this a strong recommendation for contributed modules who are thinking about making blocks for the dashboard. They are going to need some guidance here. So the advice would be: "Don't add lots of configuration options to your current blocks to make them do double-duty on the dashboard. Instead, create a new administration-focused block."
Comment #26
seutje CreditAttribution: seutje commented@catch what (module or w/e) would be responsible for this block? since it's node.module + comment.module + user.module
is there a possibility to have the outline of the block live in system.module, and have the other modules add their content to it?
if not, would it make sense to have it live in the dashboard.module and add a check for comment.module (since that's the only one u can actually disable) or would it make more sense to have all these modules expose the "overview block" data in a separate hook and have something else handle stuffing it all in a neat block?
Comment #27
catch@seutje, if you mean the general system stats one, I'd put it in system.module and provide an _alter() hook for data to be added.
Comment #28
Gábor HojtsyComment #29
yoroy CreditAttribution: yoroy commentedContinued 'recent items' discussion is here: #614410: Patterns for recent-items-blocks on the dashboard
Keep discussing other likely candidates for default core here:
- A block which provides the most important bits of admin/reports/status.
Sounds most important/useful. Should probably start a seperate issue for it's design too.
- Number of x, y and z on the site.
- Statistics module summary
- Drupal.org newsfeed
-…?
Looking back up at #11, no new critical must haves we can think of? Would like to hear one more round of feedback on the necessitiy of these last 3.
Comment #30
yoroy CreditAttribution: yoroy commentedthis seems like a useful minimal implementation no?
Comment #31
sun.core CreditAttribution: sun.core commentedComment #32
yoroy CreditAttribution: yoroy commented