Coder Social home page Coder Social logo

alm-rangers / countdown-widget-extension Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 16.0 1.15 MB

Counts down to a configurable moment in time.

Home Page: https://marketplace.visualstudio.com/items?itemName=ms-devlabs.CountdownWidget&utm_roundup=github

License: Other

HTML 1.37% CSS 3.71% JavaScript 89.12% TypeScript 5.80%

countdown-widget-extension's People

Contributors

d3r3kk avatar fabienlavocat avatar henrybeen avatar mikaelkrief avatar technical2cents avatar wouterdekort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

countdown-widget-extension's Issues

Days are showing as partial

Hello,

Countdown widget now shows remaining days as partial: 32.6, 97.6, etc..

Is there a setting where it could round up days?

Thank you

More colors.

Thanks for the widget. Would it be possible to have more colors available? the choice is quite limited at the moment.

How to configure Countdown working hours?

I am facing the problem that Countdown shows me 15 hours left until the end of the sprint. But the right number is 7. Today is the last day of the sprint and we only work 8 hours a day.

Maybe this is problem in azure devops. I could't find a way to configure our working hours. I can only configure the working days.

Show Better feedback once countdown has expired

I'd request an improvement to the experience after the countdown has reached zero. I understand you do not plan to support negative numbers, sure. But even displaying the widget Title and a statement saying something to the effect of "This countdown has expired" or "Time's up!" or even "2020-Feb-14 17:00:00 is in the past" would be an improvement over "Countdown: Sorry, nothing to show"

"Countdown Sprint" showing half of actual remaining days when all setting are set

Given an iteration setup starting at 2018-10-01 and ending at 2018-12-31
And "Skip non-working days" is set
When "Change background color when less than specified numbers of hours" is set
Then the number of days shown on the widget is exactly half of number of days when "Skip non-working days" is not set.

Exempel:
Today is 2018-10-25.

Given "Change background color when less than specified numbers of hours" is set
When "Skip non-working days" is not set
Then the number of days remaining is shown as 68.

Given "Change background color when less than specified numbers of hours" is set
When "Skip non-working days" is set
Then the number of days remaining is shown as 34.

image

image

How to unit test code that import VSS SDK components

I'm trying to use your project as an example to add unit testing to my own VSS SDK web extension - this is the closest I've come to getting unit tests working, after many days of searching.
I was able to download and run your tests, but when I try to apply this to my own project ( a fork of Microsoft/vsts-team-calendar), I get an error when I run tsc ./tests/TestSpec.ts:

src/Calendar/Utils/TestDate.ts(1,29): error TS2307: Cannot find module 'VSS/Utils/Date'.

I'm wondering if you can give any hints on how to handle this? Do you know of any projects successfully testing when VSS SDK components are imported?

I'll include some of my code/config as reference in the hope that you might have a minute to help:
TestSpec.ts:

import jasmine = require("jasmine");
import * as DateUtils from "../src/Calendar/Utils/TestDate";

describe('JavaScript addition operator', function() {
    it ('adds two numbers together', function(){
        expect(1+2).toEqual(3);
    });
});

describe('inputStringToIsoString', () => {
    it('Converts input date string to ISO string', () => {
        expect(DateUtils.getDatesInRange(
            new Date(2018, 4, 25), 
            new Date(2018,4,26)
        ))
        .toEqual([
            new Date(2018, 4, 25), 
            new Date(2018,4,26)
        ]);
    });
});

TestDate.ts:

import Utils_Date = require("VSS/Utils/Date");

export function getDatesInRange(startDate:Date, endDate: Date): Date[] {
    const dates = [];
    let current: Date = startDate;
    while (current.getTime() <= endDate.getTime()) {
        dates.push(new Date(<any>current));
        current = Utils_Date.addDays(current, 1);
    }
    return dates;
}

Dynamic Countdown Date

I was wondering if there was anything in the works to set/update the countdown date dynamically? My use case is that we want a countdown to the next release day, but manually setting it every time seems silly. The dates are available on the user stories so I was hoping to just use a query to count down to the next provided valid date, when it passes it would jump to the next.

Conditional formatting.

Would it be possible to support conditional formatting in this widget, depending on the number of days left? Thanks.

Sprint countdown value incorrect after browser refresh in Azure DevOps Server 2019

Steps to reproduce:

Expected Result
The countdown widget shows the correct number of days remaining in the current sprint

Actual Result
The countdown widget shows an incorrect number of days from a different team's sprint.
It appears that the current team is forgotten. Notice when the team part is included in the url, the countdown is correct.
When switching between dashboards using the dashboard drop-down select list in Azure DevOps Server, it works (because the team part is kept in the url). Browser refresh corrupts the countdown value.
All other widgets are correctly displayed in my dashboard setup.

How to use ?

hello, How to Use this extension on Azure Dev ops web version ? Thank's

Sprint countdown off by a day

Today is Thursday 10/20 and my sprint ends on Tuesday 10/25. The countdown widget shows 2 days remaining if we skip days off and 4 days remaining if we don't skip. By my count, it should be 3 days (Friday, Monday, Tuesday) or 5 days (Friday, Saturday, Sunday, Monday, Tuesday) if we don't count today.

image

The Countdown widget doesnt show the right amount of days left

Hi

I´m facing a problem during using the CountDown widget.

I´ve setted it to coutdown the days from today(Nov 30 to Dec 7).

If I check the "Skip non-working days" option, the count shows 2.5 days which is wrong because the right value should be 4.5 or 5.

If I doesnt check the "Skip non-working days" option, the count show 6.5 days, which is right because its counting the weekend.

Sprint Countdown Widget does not include current work day.

The Sprint Countdown widget shows a different countdown date from the Sprint Overview Widget/Work hub with non-working days unselected.

For example, my sprint spans from Monday, 8/14 to Monday, 9/4. The current date is Wednesday, 8/30. The work hub indicates there are 4 work days remaining (Wednesday, Thursday, Friday, Monday). However, the Sprint Countdown widget indicates 3 days (Thursday, Friday, Monday) or 5 days (including Saturday and Sunday)

image
image

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.