Compare commits
5 Commits
fix/projec
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8eb0dcd924 | ||
|
|
261db3f9db | ||
|
|
0b53743298 | ||
|
|
5b63b77102 | ||
|
|
7589e04207 |
@@ -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/),
|
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).
|
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
|
## [1.5.1] - 2020-08-04
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
- run `yarn start:chrome` or `yarn start:firefox` (`yarn start` is an alias for `yarn start:chrome`)
|
- run `yarn start:chrome` or `yarn start:firefox` (`yarn start` is an alias for `yarn start:chrome`)
|
||||||
- load extension into browser:
|
- load extension into browser:
|
||||||
- Chrome: visit `chrome://extensions` and load unpacked extension from `build/chrome`
|
- Chrome: visit `chrome://extensions` and load unpacked extension from `build/chrome`
|
||||||
- Firefox: visit `about:debugging` and load temporary Add-on from `build/firefox`
|
- Firefox: visit `about:debugging` and load temporary Add-on from `build/firefox/manifest.json`
|
||||||
- reload browser extension after change
|
- the browser should automatically pick up your changes but from time to time it may be useful to reload the extension
|
||||||
|
|
||||||
## Production Build
|
## Production Build
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "moco-browser-extensions",
|
"name": "moco-browser-extensions",
|
||||||
"description": "Browser plugin for MOCO",
|
"description": "Browser plugin for MOCO",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "yarn start:chrome",
|
"start": "yarn start:chrome",
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
"jest": "^26.0.1",
|
"jest": "^26.0.1",
|
||||||
"mini-css-extract-plugin": "^0.9.0",
|
"mini-css-extract-plugin": "^0.9.0",
|
||||||
"node-sass": "^4.14.1",
|
"node-sass": "^4.14.1",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.1.2",
|
||||||
"sass-loader": "^9.0.2",
|
"sass-loader": "^9.0.2",
|
||||||
"style-loader": "^1.2.1",
|
"style-loader": "^1.2.1",
|
||||||
"svg-inline-loader": "^0.8.2",
|
"svg-inline-loader": "^0.8.2",
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import UnknownError from "components/Errors/UnknownError"
|
|||||||
import Header from "./shared/Header"
|
import Header from "./shared/Header"
|
||||||
import { head } from "lodash"
|
import { head } from "lodash"
|
||||||
import TimeInputParser from "utils/TimeInputParser"
|
import TimeInputParser from "utils/TimeInputParser"
|
||||||
|
import {get} from "lodash/fp";
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
@@ -68,11 +69,12 @@ class App extends Component {
|
|||||||
|
|
||||||
@computed get project() {
|
@computed get project() {
|
||||||
const { service, projects, lastProjectId } = this.props
|
const { service, projects, lastProjectId } = this.props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
findProjectByValue(this.changeset.assignment_id)(projects) ||
|
findProjectByValue(this.changeset.assignment_id)(projects) ||
|
||||||
findProjectByIdentifier(service?.projectId)(projects) ||
|
|
||||||
findProjectByValue(Number(lastProjectId))(projects) ||
|
findProjectByValue(Number(lastProjectId))(projects) ||
|
||||||
head(projects)
|
findProjectByIdentifier(service?.projectId)(projects) ||
|
||||||
|
head(projects.flatMap(get("options")))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import "mobx-react-lite/batchingForReactDom"
|
|
||||||
import React, { createRef } from "react"
|
import React, { createRef } from "react"
|
||||||
import ReactDOM from "react-dom"
|
import ReactDOM from "react-dom"
|
||||||
import { Transition, animated, config } from "react-spring/renderprops"
|
import { Transition, animated, config } from "react-spring/renderprops"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import "mobx-react-lite/batchingForReactDom"
|
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import ReactDOM from "react-dom"
|
import ReactDOM from "react-dom"
|
||||||
import Options from "./components/Options"
|
import Options from "./components/Options"
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import "mobx-react-lite/batchingForReactDom"
|
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import ReactDOM from "react-dom"
|
import ReactDOM from "react-dom"
|
||||||
import App from "./components/App"
|
import App from "./components/App"
|
||||||
|
|||||||
Reference in New Issue
Block a user