Compare commits

...

5 Commits

Author SHA1 Message Date
dependabot-preview[bot]
b886e3d8f6 Bump html-webpack-plugin from 4.4.1 to 4.5.0
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) from 4.4.1 to 4.5.0.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases)
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v4.4.1...v4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-02 01:11:34 +00:00
Manuel Bouza
261db3f9db Remove batchingForReactDom 2020-09-11 09:31:18 +02:00
Manuel Bouza
0b53743298 Pump version 2020-09-11 09:31:18 +02:00
Manuel Bouza
5b63b77102 Upgrade packages 2020-09-10 14:51:58 +02:00
Nicola Piccinini
7589e04207 Select first the project with tracked hours (#217) 2020-09-10 14:08:30 +02:00
8 changed files with 645 additions and 623 deletions

View File

@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.5.2] - 2020-09-10
### Fixed
- Remember last tracked project and task on card
## [1.5.1] - 2020-08-04
### Added

View File

@@ -6,8 +6,8 @@
- run `yarn start:chrome` or `yarn start:firefox` (`yarn start` is an alias for `yarn start:chrome`)
- load extension into browser:
- Chrome: visit `chrome://extensions` and load unpacked extension from `build/chrome`
- Firefox: visit `about:debugging` and load temporary Add-on from `build/firefox`
- reload browser extension after change
- Firefox: visit `about:debugging` and load temporary Add-on from `build/firefox/manifest.json`
- the browser should automatically pick up your changes but from time to time it may be useful to reload the extension
## Production Build

View File

@@ -1,7 +1,7 @@
{
"name": "moco-browser-extensions",
"description": "Browser plugin for MOCO",
"version": "1.5.1",
"version": "1.5.2",
"license": "MIT",
"scripts": {
"start": "yarn start:chrome",
@@ -53,7 +53,7 @@
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.0",
"file-loader": "^6.0.0",
"html-webpack-plugin": "^4.3.0",
"html-webpack-plugin": "^4.5.0",
"jest": "^26.0.1",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.14.1",

View File

@@ -25,6 +25,7 @@ import UnknownError from "components/Errors/UnknownError"
import Header from "./shared/Header"
import { head } from "lodash"
import TimeInputParser from "utils/TimeInputParser"
import {get} from "lodash/fp";
@observer
class App extends Component {
@@ -68,11 +69,12 @@ class App extends Component {
@computed get project() {
const { service, projects, lastProjectId } = this.props
return (
findProjectByValue(this.changeset.assignment_id)(projects) ||
findProjectByIdentifier(service?.projectId)(projects) ||
findProjectByValue(Number(lastProjectId))(projects) ||
head(projects)
findProjectByIdentifier(service?.projectId)(projects) ||
head(projects.flatMap(get("options")))
)
}

View File

@@ -1,4 +1,3 @@
import "mobx-react-lite/batchingForReactDom"
import React, { createRef } from "react"
import ReactDOM from "react-dom"
import { Transition, animated, config } from "react-spring/renderprops"

View File

@@ -1,4 +1,3 @@
import "mobx-react-lite/batchingForReactDom"
import React from "react"
import ReactDOM from "react-dom"
import Options from "./components/Options"

View File

@@ -1,4 +1,3 @@
import "mobx-react-lite/batchingForReactDom"
import React from "react"
import ReactDOM from "react-dom"
import App from "./components/App"

1245
yarn.lock

File diff suppressed because it is too large Load Diff