Skip to content

Commit

Permalink
Bump version to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flo committed May 29, 2018
1 parent c80511d commit e9c9ce2
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 23 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ More specific instructions can be found in the corresponding folders.
* Grep for `TODO!`s: `rg TODO!` and resolve them
* Find stray log statements: `rg "^([^/\n]*(console.log|Log\.[de])|[^-]*Debug.log)"` and possibly remove them
* Increment versions in `build.gradle`, `web/src/Data/Settings.elm` and `web_extension/manifest.json`
+ Only increment Android if the Android shell code changed, otherwise, don't do anything about Android.
* Go through the readmes of `web, android, web_extension`
* Push changes to github
* Upload the generated builds on github releases
Expand Down
11 changes: 9 additions & 2 deletions web/src/Background.elm
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,19 @@ update msg model =
let
newSiteEntry =
if model.newSiteEntry.siteName == "" || Just model.newSiteEntry.siteName == model.currentSite then
-- Pre fill the site name in the add new account dialogue if it was previously empty
-- or if it contained the previous site
Data.PasswordMeta.setSiteName site model.newSiteEntry
else
model.newSiteEntry

newModel =
{ model | currentSite = Just site, newSiteEntry = newSiteEntry }
in
{ model | currentSite = Just site, newSiteEntry = newSiteEntry }
|> withCmds [ Ports.accountsForSite (Data.Sync.getAccountsForSite site model.syncData) ]
if Data.Settings.isDeactivatedFor site model.syncData.shared.settings then
newModel |> noCmd
else
newModel |> withCmds [ Ports.accountsForSite (Data.Sync.getAccountsForSite site model.syncData) ]

AddSiteEntry { isSignUp, entry } ->
-- TODO: type can be either SignUp | LogIn | UpdateCredentials
Expand Down
24 changes: 8 additions & 16 deletions web/src/Data/Settings.elm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module Data.Settings
, get
, set
, deactivateForSite
, isDeactivatedFor
, setDoneWithTutorial
)

Expand All @@ -32,20 +33,6 @@ import Crdt.TimestampedVersionRegister as TimestampedVersionRegister exposing (T
import Crdt.ORSet as ORSet exposing (ORSet)


{- TODO: update news + sync if read tutorial
save last seen update news for version number:
start at v 0.0.0.
If the current version number is bigger than our last seen,
show all news with v >= currentV
save news in a Dict Version Content
save read news and sync, so we only have to read once
-}


type alias SharedSettings =
{ allowLevel1 : Maybe (TimestampedVersionRegister Bool)
, timeUntilAutoLock : Maybe (TimestampedVersionRegister Time)
Expand All @@ -66,12 +53,12 @@ type alias Settings =

currentVersion =
-- TODO!: change if a new version is released
"0.3.0"
"0.4.0"


allVersions =
-- TODO!: update this on big releases, e.g. if you want to include some text
Set.fromList [ "0.3" ]
Set.fromList [ "0.3.0", "0.4.0" ]


get : SharedSettings -> Settings
Expand Down Expand Up @@ -99,6 +86,11 @@ deactivateForSite site opt =
{ opt | deactivateForSite = ORSet.add site opt.deactivateForSite }


isDeactivatedFor : String -> SharedSettings -> Bool
isDeactivatedFor site settings =
Set.member site (ORSet.get settings.deactivateForSite)


removeFromIgnored : String -> SharedSettings -> SharedSettings
removeFromIgnored site opt =
{ opt | deactivateForSite = ORSet.remove site opt.deactivateForSite }
Expand Down
1 change: 0 additions & 1 deletion web/src/Data/TaskList.elm
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ getProgress groupId sharesInBoxes dict =

getTasks : (GroupId -> List Share) -> (GroupId -> Int) -> List ( Box, Set GroupId ) -> Request.State -> Dict GroupId (List Device) -> Dict GroupId (Set String) -> Dict GroupId String -> TaskList -> List Task
getTasks getShares getSharesInBoxes boxesNeedingShares request groupsNotFullyDistributed progress postFixDict tasks =
-- TODO!: Create new task for "create new keys for box -> open box + unlock group"
let
getGroup groupId =
( groupId, Helper.dictGetWithDefault "" groupId postFixDict )
Expand Down
31 changes: 30 additions & 1 deletion web/src/Views/ReleaseLog.elm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ allNews : Dict String ( Element Msg, Element Msg )
allNews =
-- TODO!: on new big release, write log
Dict.fromList
[ ( "0.3", ( s0_3, n0_3 ) )
[ ( "0.3.0", ( s0_3, n0_3 ) )
, ( "0.4.0", ( s0_4, n0_4 ) )
]


Expand Down Expand Up @@ -47,6 +48,34 @@ n0_3 =
]


s0_4 =
Elements.p "New feature: Key boxes"


n0_4 =
column [ spacing (Styles.paddingScale 3), height shrink ]
[ Elements.h3 "Note"
, Elements.p """The last upgrade notes didn't show up correctly, that's why it showed up this time.
If you haven't read and followed the instructions of the 0.3.0 release yet, you should do so now.
If you already did so, you don't have to do anything."""
, Elements.button (Just <| NavigateTo (ReleaseLog "0.3.0")) "Read 0.3.0 notes"
, Elements.p ""
, Elements.h3 "New Feature"
, Elements.h4 "Key Boxes"
, Elements.paragraph []
[ Elements.text """A key box is a password protected box that holds keys. It allows you to unlock
a password group even if you don't carry enough devices with you.
A key box can be created from the 'Devices' tab."""
]
, Elements.p ""
, Elements.h3 "Improvements"
, Elements.list
[ Elements.p "You can now move passwords to a group that doesn't exist yet."
, Elements.p "Various improvements to the browser extension"
]
]


sortedLog : List String
sortedLog =
Dict.keys allNews
Expand Down
1 change: 0 additions & 1 deletion web_extension/content_scripts/pageUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ const closePopup = () => {
};

const closePopupFor = (time) => {
// TODO!
closePopup();
disablePopup();
setTimeout(() => { enablePopup(); }, time);
Expand Down
4 changes: 2 additions & 2 deletions web_extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "NoKey",
"description": "A distributed password manager without a master passwords",
"version": "0.3",
"version": "0.4.0",
"author": "Florian Zinggeler",

"applications": {
Expand Down Expand Up @@ -54,7 +54,7 @@
}
],

"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self';",
"content_security_policy": "script-src 'self'; object-src 'self';",
"content_security_policy_RELEASE": "script-src 'self'; object-src 'self';",
"content_security_policy_DEBUG": "script-src 'self' 'unsafe-eval'; object-src 'self';"
}

0 comments on commit e9c9ce2

Please sign in to comment.