Author Topic: Show workspace name in calendar tasks  (Read 9570 times)

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Show workspace name in calendar tasks
« on: June 17, 2010, 02:26:55 am »
I have many workspaces and tasks with same name in they.
And in Calendar I see only task name and can't understand from which workspace this task is.

Will be good to add workspace name for tasks in calendar views

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Show workspace name in calendar tasks
« Reply #1 on: June 22, 2010, 10:10:47 am »
Noted. Thanks.

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #2 on: June 28, 2010, 12:26:25 pm »
Here is my patch that do this for 5days view only (at first).

Additionally I do task strings multi-line for show all task title in view, and decrease the free space on left-right of tasks elements (for give more space to task name).
How it looks is attached, before and after, template for text is "{workspace}: {task title}".

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #3 on: June 30, 2010, 05:28:02 am »
Version 2:
- 5days view: fixed some bugs in task placing
- month view: added workspace name and color to calendar view
- month view: added list of all tasks in day in tooltip "more"
- added workspace and milestone to tooltip
- removed adding workspace if one workspace selected (without subworkspaces)
- added assigned username to tooltip if all users selected
« Last Edit: June 30, 2010, 05:43:53 am by Murz »

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Show workspace name in calendar tasks
« Reply #4 on: June 30, 2010, 10:11:54 am »
Thanks for sharing!

damendieta

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #5 on: June 30, 2010, 07:20:11 pm »
Hi, nice contribution.

I have the same problem. As a work around I have to put the name of the workspace in front of the task.

I think the idea of having the workspace name in the calendar will be really useful. But if you do that the name will be too large. For example, I have some workspaces with 4 or 5 subworkspaces

all/workspace/sub/sub/sub/sub and many have really large names, with 10 to 15 characters. So, If the name of the workspace is in the calendar, I won't be able to see the name of the task.

I think that maybe, the name of the workspace can be shown with the name of the task, assignee and description when you place the cursor (mouse) over the task name.

What do you think about it ?


Bye.

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #6 on: July 01, 2010, 03:18:44 am »
Version 3:
- week, day and 5days views: Fixed positioning when dragging tasks on empty days without tasks.
- week, day and 5days views:added dashed dropzone for empty days.

damendieta, in version 2 I have do that in task shows only child workspaces for save the space, I hope that this help you.
And on month view I add workspace colors to tasks.
And I add workspace and milestone names in popup of each task.

And you can look all tasks with workspaces in monthly view on "Details" phrase popup.

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #7 on: October 20, 2010, 03:57:34 am »
Version 4, updated to fengoffice 1.7.2 (changed only number of spaces in sources) :)

galosu82

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #8 on: October 20, 2010, 05:19:17 am »
When I try to apply the patch I got this message:

Quote
patch < /Users/xserve/Desktop/fengoffice_calendar_tasks_4.patch
can't find file to patch at input line 4
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urp /var/www/feng/_patching/orig_1.7.2/application/views/event/calendar.php ./application/views/event/calendar.php
|--- /var/www/feng/_patching/orig_1.7.2/application/views/event/calendar.php 2010-09-14 00:30:20.000000000 +0400
|+++ ./application/views/event/calendar.php  2010-09-16 14:27:44.000000000 +0400
--------------------------
File to patch: /Applications/MAMP/htdocs/fengoffice/application/views/event/calendar.php
patching file /Applications/MAMP/htdocs/fengoffice/application/views/event/calendar.php
Hunk #1 FAILED at 59.
Hunk #2 FAILED at 314.
Hunk #3 FAILED at 425.
Hunk #4 FAILED at 445.
Hunk #5 FAILED at 478.
Hunk #6 FAILED at 517.
Hunk #7 FAILED at 553.
7 out of 7 hunks FAILED -- saving rejects to file /Applications/MAMP/htdocs/fengoffice/application/views/event/calendar.php.rej
can't find file to patch at input line 117
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urp /var/www/feng/_patching/orig_1.7.2/application/views/event/viewweek5days.php ./application/views/event/viewweek5days.php
|--- /var/www/feng/_patching/orig_1.7.2/application/views/event/viewweek5days.php  2010-09-14 00:30:20.000000000 +0400
|+++ ./application/views/event/viewweek5days.php 2010-09-16 14:27:44.000000000 +0400
--------------------------
File to patch: /Applications/MAMP/htdocs/fengoffice/application/views/event/viewweek5days.php
patching file /Applications/MAMP/htdocs/fengoffice/application/views/event/viewweek5days.php
Hunk #1 FAILED at 24.
Hunk #2 FAILED at 208.
Hunk #3 FAILED at 272.
Hunk #4 FAILED at 319.
Hunk #5 FAILED at 352.
Hunk #6 FAILED at 381.
Hunk #7 FAILED at 391.
7 out of 7 hunks FAILED -- saving rejects to file /Applications/MAMP/htdocs/fengoffice/application/views/event/viewweek5days.php.rej
can't find file to patch at input line 195
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urp /var/www/feng/_patching/orig_1.7.2/application/views/event/viewweek.php ./application/views/event/viewweek.php
|--- /var/www/feng/_patching/orig_1.7.2/application/views/event/viewweek.php 2010-09-14 00:30:20.000000000 +0400
|+++ ./application/views/event/viewweek.php  2010-09-16 14:27:44.000000000 +0400
--------------------------
File to patch: /Applications/MAMP/htdocs/fengoffice/application/views/event/viewweek.php
patching file /Applications/MAMP/htdocs/fengoffice/application/views/event/viewweek.php
Hunk #1 FAILED at 327.
1 out of 1 hunk FAILED -- saving rejects to file /Applications/MAMP/htdocs/fengoffice/application/views/event/viewweek.php.rej
can't find file to patch at input line 209
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urp /var/www/feng/_patching/orig_1.7.2/public/assets/javascript/og/CalendarFunctions.js ./public/assets/javascript/og/CalendarFunctions.js
|--- /var/www/feng/_patching/orig_1.7.2/public/assets/javascript/og/CalendarFunctions.js 2010-09-14 00:30:20.000000000 +0400
|+++ ./public/assets/javascript/og/CalendarFunctions.js  2010-09-16 14:27:44.000000000 +0400
--------------------------
File to patch: /Applications/MAMP/htdocs/fengoffice/public/assets/javascript/og/CalendarFunctions.js
patching file /Applications/MAMP/htdocs/fengoffice/public/assets/javascript/og/CalendarFunctions.js
Hunk #1 FAILED at 108.
Hunk #2 FAILED at 128.
Hunk #3 FAILED at 294.
Hunk #4 FAILED at 315.
4 out of 4 hunks FAILED -- saving rejects to file /Applications/MAMP/htdocs/fengoffice/public/assets/javascript/og/CalendarFunctions.js.rej

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #9 on: October 21, 2010, 02:24:47 am »
When I try to apply the patch I got this message:
I think that you set wrong params to "patch" program. Try this variant:
Code: [Select]
patch -p0 < /Users/xserve/Desktop/fengoffice_calendar_tasks_4.patch

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #10 on: October 21, 2010, 03:49:20 am »
Sorry, I do the wrong patch! My text editor converts all tabs to spaces ;(
Here is correct patch, try it.

galosu82

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #11 on: October 21, 2010, 04:39:47 am »
Hi Murz, the patch actually works only for Tasks (not for Milestones) and when I try to access the Monthly view of the calendar tab I got an error "Error 500: Internal Server Error".

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #12 on: October 21, 2010, 04:49:42 am »
Hi Murz, the patch actually works only for Tasks (not for Milestones) and when I try to access the Monthly view of the calendar tab I got an error "Error 500: Internal Server Error".
Yes, we use at most tasks, but milestones rarely. I try to add milestones to in in future versions.

But about Error 500 - can you send me to email murznn (at) gmail dot com your patched files (application/views/event/calendar.php and other) and apache/php error log? I look on it.

Murz

  • Full Member
  • ***
  • Posts: 147
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #13 on: October 21, 2010, 05:31:19 am »
Seems that you have the event that not attached to any workspace and when my script try to get workspace path, it creates the error. In my variant all events are attached to workspaces.
Try my new version of patch, I think it solve your problem.
Or try to find this event and assign workspace to it and check that error is disappear with 5 version of patch.

galosu82

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Show workspace name in calendar tasks
« Reply #14 on: October 21, 2010, 05:48:50 am »
GREAT!  :D

Now it works, thanks!