Coder Social home page Coder Social logo

mikkcz / pontoon-addon Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 6.0 19.15 MB

Tools for Pontoon and its integration into the browser.

Home Page: https://github.com/MikkCZ/pontoon-addon/wiki

License: BSD 3-Clause "New" or "Revised" License

JavaScript 0.24% Shell 0.48% Makefile 0.51% TypeScript 98.56% EJS 0.21%
browser-extension chrome firefox localization-workflow pontoon react typescript webextension

pontoon-addon's People

Contributors

bhavuk2002 avatar dependabot[bot] avatar flodolo avatar mikkcz avatar snyk-bot avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pontoon-addon's Issues

Search selected text in Pontoon

If I select a text on a page, I would like to be able to find it quickly in Pontoon. Bug 1305281 should add a global search, so best to wait for it.

An advanced option is to automatically identify the project the current site belongs to, and search there. The search itself this way is possible, the issues is how to identify the right project, probably hardcode the URLs for now.

Quick navigation to various Pontoon pages

This may be a great help to quickly navigate to most used Pontoon pages.

Can include:

  • homepage
  • team page (need to determine the preferred team, or define it in settings)
  • team bugs
  • machinery
  • projects translations view (need to find out, how to get the list of them)
    ...

Add project info section to address bar and/or the toolbar button popup

Similar to team info component in the toolbar button popup, create a project info into the page action popup.

  • name of the project (and team)
  • completion status and list of strings by status
  • links to open project dashboard, translation view, and bug report

Nonessential ideas:

  • last activity (needs API)
  • resources links (needs API)
  • deadline (available via GQL)
  • contact person (available via GQL)

Place the same content below the list of notifications, add two tabs Team and Project, where Team is selected by default and Project is always there, and visually highlighted when the current tab contains a known web project.

Find more space in the toolbar button popup

I am thinking of to make a prototype adding tabs with additional information, like projects activity, projects deadlines, completion, links to l10n resources etc. The tabs may look like on the Pontoon team page, where you can switch between projects, contributors, bugs and more.

Update notification data immediately after loading any Pontoon page

The unread notifications are actually places also in the <header>. Getting new notifications from any opened Pontoon tab shouldn't be a big problem.

Scenarios:

  • newly loaded tab with Pontoon contains new notifications -> update toolbar button and popup
  • notifications are marked as read from the popup -> update all opened Pontoon tabs notification bell
  • notifications are marked as read in Pontoon -> update toolbar button and popup

Port and publish for Fennec

#42 is for non-WebExtensions browsers. Let's track this separate, also because the UI would need to be adjusted for mobile.

Show the notifications in popup

As a use I want to be able to see the list of notifications without visiting Pontoon, click them to open the project, or mark as read.

Use Pontoon API to get teams information

Via the Pontoon API we should fetch team data for all teams, instead of parsing the HTML. Having data for all teams will also help to avoid the issue when wrong data are displayed after changing locale team in the add-on options.

Show team information in the popup

This may be a good addition to the notifications list. The first idea is to display a small overview of what's on the team page (percentage, number of strings) and the list of incomplete project similar to what's currently being shown on the team page.

Need to determine the preferred team, or define it in settings.

Determine preferred team

Add options page with the setting for locale code. Can be just a text input, select with all languages or somehow get this information from Pontoon. Not sure if WebExtensions can access the browser UI locale or preferred languages. If so, these can be used to guess the default.

Blocks #3 and #4.

The team switches to first entry and back to the chosen option during reload

from @mathjazz

The "Load from Pontoon" functionality works fine. The only annoyance
is that for a very brief period of time (maybe 100 ms) the value gets
set to the first item on the list ("ach") and only then to what
Pontoon returns (in my case "sl").

The feature has been added in #38. I should probably change the <select> updating procedure and set the desired team as part of it, not afterwards.

The toolbar button badge is red in new windows

STR:

  1. Have Pontoon Tools button in the toolbar.
  2. If there are 0 notifications, the badge is gray.
  3. With 0 notifications, open new windows (Ctrl+N).
  4. The badge in the new windows is read, even if there are no notifications.

I guess there is some default color for the badge, and the color from the first window is not applied. I need to reset the color when a new window is opened, or it may be a bug in Firefox.

Pick the right locale component to report a bug

There is a feature that allows you to report l10n bug from the context menu of highlighted text. At this moment, the product is "Mozilla Localization", but the component (locale team) is not set.

First I need to find a source of mapping form the locale code to the right component (note: some teams probably do not have any). Second a question is, whether the component should be according to the team preference, or maybe better detected from the current page locale (that may be a bit harder to find out).

Remove page action show/hide option

In Firefox 58 (23. 1. 2018) the page action icons cannot be completely hidden, but only (de)activated. Also every icon can be moved to the page actions menu, so the self-made option won't be needed anymore.

Page action menu to open project corresponding to current website

This will require a mapping from domain to Pontoon project, but will allow to add a page action menu to quickly open Pontoon on the right site, when you are i.e. on addons.mozilla.org and want to update a string there, you just see.

  • add page action menu
  • add mapping for all project

Ability to report l10n bugs on websites

Context menu for selected text on a page should offer a quick option to report a bug in the Mozilla Localizations product, something like Transvision offers.

The screen is flickering when opening the popup on Mac

@jrychly and @MekliCZ reported some issues about flickering screen on Mac, when clicking the toolbar button and opening the popup. Can you please elaborate and ideally attach a recording? What version of Firefox do you use? Can you reproduce it on any other platform too or with any other extension?

Remove notifications one by one

As a user I would like to remove notifications as read one by one. At this moment, Pontoon does not support this (bug 1413912), but the add-on can hold the state for each individual notification and mark all notifications as read in Pontoon after all are marked as read in the popup.

Notifications for sent messages are not displayed correctly

Francesco Lodolo has sent a message in Focus for iOS
1 day, 15 hours ago
A new batch of screenshots is available https://drive.google.com/drive/u/0/folders/0BwM0URyvbEeSU251WWtwUjhDalE

was displayed only as

Francesco Lodolo has sent a message in
1 day, 15 hours ago

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.