Giter VIP home page Giter VIP logo

aljawaid / glancer Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 5.16 MB

Quickly jump to a project, task or comment through a bar at the bottom of the screen. Use the new copy to clipboard feature in different formats coupled with the new global shortcut icon to realise why Glancer was built for power users. Following the 'Getting Things Done' methodology, productive users can glance through their workflow easily.

License: MIT License

CSS 12.54% PHP 72.16% JavaScript 15.30%
get-things-done gtd kanboard kanboard-plugin plugin

glancer's Introduction

Hi there, this is aljawaid ๐Ÿ‘‹

Profile View Counter

GitHub Streak

My Skill Set:

HTMLย  CSSย  JavaScriptย  PHPย  Markdownย  MySQLย  ย  Ubuntuย 

๐Ÿ”ฅ My Stats:

My Repository's Statsย 
My Repository's Stats

glancer's People

Contributors

aljawaid avatar creecros avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

glancer's Issues

Copy Comment to Clipboard

Allow a way to copy the comment to the clipboard, using clipboard.js

  • Install and test clipboard.js in plugin
  • Add copy button for html
  • Add copy button for markdown
  • Add copy button for rendered comment
  • Add to all templates where appropriate

Display Comment IDs in Activity Stream

Kanboard doesn't show the Comment ID by default for users.

By displaying in the Activity Stream, users can begin to get familiar with a granular way of directly reaching the task instead of just using the Task ID.

Bug: Hours is Not Ignored in Timeago

I coded to make 'time ago' readable and sensible for up to 5 years based on the existing comment date creation.

It works fine, EXCEPT:

  • I've noticed any comments which have been created within 'hours' and not 'days' still go through my code and then show the default 'over 5 years ago`

I was expecting the Kanboard '5h' or '~5h' as it is in the core but it seems ignored. I'd like to change the 'h' to 'hrs' or 'hours' but the code in the function is complicated to strip. Days is more important in workload anyway so i got that working.

I need help with the code to ignore the minutes and hours

image

The tooltip is the correct value in the picture

Commit: cfbf1fe

Feature request: ability to add a href link and text or image in Glancer

I have an external wiki that I use for documentation and would very much like a link to the wiki board directly and always visible within the kanboard. What I am requesting is the ability to add a link and text in Glancer that is always visible. Glancer seems like an ideal candidate because of its visibility within the kanboard itself. Thanks for your consideration.

Search by Comment ID

Can anybody help with how to find the comment ID and display the associated task? I've tried a few different ways, one is below, but nothing seems to work.

<?= $this->model->commentModel->getById($comment['id']); ?>
			<form method="get" action="<?= $this->url->dir() ?>#comment-<?= $comment['id']; ?>" class="search">
            <?= $this->form->hidden('controller', array('controller' => 'TaskViewController')) ?>
            <?= $this->form->hidden('action', array('action' => 'show','task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id'])) ?>

            

            <div class="glancer-bar-input">
                <?= $this->form->text('comment_id', array(), array(), array('placeholder="'.t('Enter Comment ID').'"', 'pattern="[0-9.]+" title="'.t('Enter Comment ID').'"'.'aria-label="'.t('Enter Comment ID').'"'.'style=""'), 'input-addon-field border-radius') ?>
            </div>
        	</form>

This is another feature request. (as a new plugin)

I'm sorry, I did not see how to write you without making it an "issue"

Have you heard of mermaid? It allows simple text to become a diagram.

Where i came across the idea:
https://kanboard.discourse.group/t/new-plugin-addmermaid/2392

I do not see any plugins that allow it yet, however I was able to simply add it to my plugins directory and now I can draw diagrams easily!
So awesome, I wanted the community to have this ability and it should be a piece of cake for you to create as a plugin.

Mermaids main site:
https://mermaid-js.github.io/mermaid/#/

Code example in any task's description that will diagram once installed:

<div class="mermaid">
sequenceDiagram
    Alice->>John: Hello John, how are you?
    John-->>Alice: Great!
    Alice-)John: See you later!
</div>

A second example:

<div class="mermaid">
flowchart LR
    A-->B
    B-->C
    C-->D
    D-->E
    click A "https://www.github.com" _blank
    click B "https://www.github.com" "Open this in a new tab" _blank
    click C href "https://www.github.com" _blank
    click D href "https://www.github.com" "Open this in a new tab" _blank
</div>

My request: Please can you make a simple plugin so others may install this easily ?

Best wishes,
Faisal

Bug: Normal Users Login Issue

When normal (non-admin) users login with Glancer installed, after logging in, the user is directed to a page not found message. Clicking on the dashboard icon takes them to the dashboard. But straight after login, the first page, which should be the dashboard, is the not found page (which is blank, just the header and glancer bar).

Need to Notify User With Not Found Message

Current process will default to the dashboard when no ID is found in the glancer bar. Need a fade out (like when task updated) to notify user of failure and redirection.

Direct to Comment Link... Can't Pull the ID

The end resulting link Shows Task in url and also displays task which is fine but not ideal...

$this->response->redirect($this->helper->url->to('TaskCommentViewController', 'showTask', array('plugin' => 'Glancer', 'task_id' => $task_id)), true);

My Version for Direct to comment
$this->response->redirect($this->helper->url->to('TaskCommentViewController', 'showTask', array('plugin' => 'Glancer', 'task_id' => $task_id), 'comment-'$commentID), true);

Notice the 'comment-'$commentIDas I'm trying to result in...https://my.company.com/project/37/task/476#comment-3754` which is how the current default 'link to comment' in the comment dropdown works. (It goes direct to show the comment within the task on enter)

I thought maybe I would need to add a route but I got confused as when it shows the commentID-searched task, its a nice task pretty url... so very confused on this one.

Any input please?

PHP Deprecated: str_replace()

To fix:

2022/10/31 17:49:37 [error] 15#15: *45 FastCGI sent in stderr: "PHP message: PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/app/app/Core/Http/Route.php on line 155

Just need to add a empty parameter, when I or you get a chance. Just a annoying deprecated message.

Bug: Anchor Links Don't Always Work

    i figured it out. It's your JS. everything works if you turn it off.

I'm not a JS or JQuery expert to tell you why, so I will leave that one for you to solve.

has to be something in here though:

  // Add smooth scrolling to all links
  $("a").on('click', function(event) {

    // Make sure this.hash has a value before overriding default behavior
    if (this.hash !== "") {
      // Prevent default anchor click behavior
      event.preventDefault();

      // Store hash
      var hash = this.hash;

      // Using jQuery's animate() method to add smooth page scroll
      // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
      $('html, body').animate({
        scrollTop: $(hash).offset().top
      }, 1000, function(){

        // Add hash (#) to URL when done scrolling (default click behavior)
        window.location.hash = hash;
      });
    } // End if
  });
});

I don't like the words, preventDefault, that doesn't sound good, specially since it prevents anchor click behavior, which is what your issue is. Only you can prevent forest fires ๐Ÿ˜„

Originally posted by @creecros in #15 (comment)

Better Description

Apply GTD to task descriptions

  • Add Copy Task Description Feature #19
  • Show states if description empty or complete

Add Task Navigation

Discussed in #26

Originally posted by aljawaid January 13, 2023
@creecros Can we add this? A back (previous numbered task in project) / next (following numbered task in project)

This would save the user from going back to the board etc to get into every task if he creates tasks in bulk as they would be numbered in order. Even if not, the next button would go through each task to the project.

I'm guessing this would use Pagination but looking at the TaskListController I have absolutely no idea where to start.

Project Overview Link Button in Comment

I Cant seem to get this to work:

I replaced the activity template to add a css ID which will target from the comments through an icon.

<?= $this->url->icon('eye', t('Overview'), 'ProjectOverviewController', 'show', array('project_id' => $task['project_id']), false, 'comment-board', 'View recent activity in this project', false, 'ActivityOverview') ?>

in the addressbar, it works:
domain.com/project/37/overview#ActivityOverview

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.