Giter VIP home page Giter VIP logo

mobtime-intellij-plugin's People

Contributors

actions-user avatar dependabot[bot] avatar jstruk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mobtime-intellij-plugin's Issues

Listen to browser notifications

The "timer up" notification is being displayed based on what feels like a really hacky solution. Right now, the code constantly responds to the webpage title changing, and assesses the state of the app. If it's the first time we've changed from "Mob Timer" to "4:59 - mobtimer", we know the timer has started. Consequently, when the title switches from "0:00 - mobtime" to "mobtime", we can assume the timer has ended, and send the notification here. There are many many downfalls to this logic, the biggest complaint being if the functionality of the app ever changes and the titles are updated differently, this stands to break. This could be fixed by listening for the actual notifications being sent by the app and passing them along to the IDE.

AC:

  • Using some sort of listener to handle the actual browser notifications being sent, relay these notifications to the user through the IDE notification system

Notes:

  • The code listens to the title through a CefDisplayHandler, which requires an onTitleChange handler. I wasn't able to find a handler within the Java-wrapped chromium framework that listens for notification events. If this exists somewhere, it would be perfect for what we need to do.

Add ability to switch mobtime instance

Currently, when the IDE is opened and the plugin loads, it shows the homepage for https://mobti.me. The user can enter a URL here, which will then direct them to that mobtimer. (i.e. the user types "abc123" and the mobtimer at https://mobti.me/abc123 will be displayed). We want to allow the user to switch to a different timer as they wish.

AC:

  • Add a textbox at the top to allow the user to enter a different mobtime URL.
    • The text pulled from this should be appended to the URL: "https://mobti.me/{text-from-textbox}"
    • This allows the user to choose another mobtime instance but doesn't allow them to navigate away from the mobtime app
    • Should this be collapsable? Might look prettier
  • Add a button to handle the timer change
    • Redirect the chromium browser to the new mobtime link

Tests Tests Tests

Junit is installed and there is a test file in the project. However, they don't do anything. We need to make them do something.
There are a few decent links on this topic from the Intellij documentation (java documentation usually sucks though):

AC:

  • Be able to run some tests
  • Backfill some tests
  • Profit

Style the "timer up!" notification

There is plenty of opportunity to make this thing shine. The popup factory accepts html content so we can likely get a bit creative here. The current balloon notification is very easily missed when mobbing, so we can make it a bit more flashy (nothing too over-the-top though :) )

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.