Milestones needs a calendar view

Project:ProjectPier
Version:0.8.0.2
Component:User interface
Category:feature request
Priority:normal
Assigned:dossy
Status:closed - by issue author
Description

This is of the utmost importance and I know a user has already written the
code and donated it to the activeCollab project. Please donate it to
ProjectPier as well!

Version:0.8.0-dev»
Status:new» open - postponed

Postponed until after version 0.8 is released.

0.80 is released...

+1.

Status:open - postponed» open - needs more info
Assigned to:Visitor» dossy

I've implemented a very basic calendar view of the project milestones. I'm attaching a screenshot and a patch. I've only created a calendar.css for the default theme.

Please review and provide comments.

milestone-calendar-view-patch.txt

AttachmentSize
milestone-calendar-view-patch.txt7.98 KB
Status:open - needs more info» patch - code needs review

Looks great! one thing needed is setup of first day of the week.

Submitting new diff with a few cosmetic changes, and this time this is a diff from the top of the PP SVN.

AttachmentSize
milestone-calendar-view-svn-patch.txt10.18 KB

New screenshot reflecting changes in milestone-calendar-view-svn-patch.txt.

I fixed one bug and also a couple of other cleanups to get rid of Notice messages and the like. Although I see you've updated your patch now so I'll have to take a look at that when I get some time and merge the changes.

AttachmentSize
milestone-calendar-view-rev1.patch7.16 KB

OK, I've integrated your fixes and also added code to make the start-of-week day configurable via a single variable in the views/milestone/calendar.php. We can push that into a config UI in a later commit.

AttachmentSize
milestone-calendar-view-rev2.txt10.12 KB

I've changed application/views/milestone/calendar.php to render the calendar for months that have no milestones. Previously, it would dead-end the UX with a stupid "no milestones" error. Duh.

AttachmentSize
milestone-calendar-view-rev3.txt9.91 KB

How to install it?

Where are the source files, please?

I would like to install it on my PP.

Is there a way to incorporate this into a My Milestones tab from the Dashboard that would show a users milestones across all projects in a calendar form like this? (I'd be happy to have them in the list form from the way they view inside a project right now, but need something that extends across all projects)

Thanks, good work.

Sorry for the second post, the other idea would be to show a calendar like this featuring all the projects at the top of the dashboard) - is something like that possible?

Status:patch - code needs review» closed - fixed

Thanks a bunch Dossy, this was a great contribution. Apologies for the delay in committing it.

For anyone who wants to try it, download a nightly build.

Status:closed - fixed» closed - by issue author

Automatically closed -- issue fixed for two weeks with no activity.

Version:» 0.8.0.2

I've found a small bug on your code.

In calendar.php file almost in line 88:

It says:

        <ul class="entries">
<?php
         
foreach ($calendar[$dom] as $m) {
           
printf('<li><a href="%s">%s</a></li>'."\n",
             
get_url("milestone", "view", $m->getId()),
             
clean($m->getName()));
          }
?>

        <ul>

It should say

        <ul class="entries">
<?php
         
foreach ($calendar[$dom] as $m) {
           
printf('<li><a href="%s">%s</a></li>'."\n",
             
get_url("milestone", "view", $m->getId()),
             
clean($m->getName()));
          }
?>

        </ul>

Cheers.

As you can see in the screenshot, the first day in the week and the last day in the week are weekends.

The problem is that your script considers Monday (Lunes) as a weekend day.

Is there a way to solve this?

Thanks

Category:feature request» bug report

There is a big bug in the calendar, there is a lag in the date.

Just check with the sample images that are on this thread, for instance :
April 1st 2008, is a Tuesday (Martes) not a Wednesday (Miercoles), and I'm not kidding !

This is quite annoying as most people check their meeting with the day of the week, not necessarly the number.

Category:bug report» feature request

This patch was already committed, any bugs should be reported as new issues against the development version (0.8.5 - dev)

You can include a link back to this issue to help track the existing reported information

Hi
I am new to Project Pier, and really like the look of it. I have set it up on my web server, and am currently trying it out. However, the calendar view discussed above would be essential for me.

I am also fairly novice at managing web based applications ... can anyone tell me how I go about trying out the calendar patch (I am not familiar with TAR files)
cheers
Toby