Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
add for tests (#57)
Browse files Browse the repository at this point in the history
* remove dupe sections from readme

* Add TOC

* add documentation to README for server settings
fix naming error (url >> host)

* render message body as courier to support ascii layout

* asciify the message body

* fix problem displaying `Nothing here yet` (see issue #33)

* add ascii invoice used for testing

* add all testnets

* add/ update tests
Add mocks for inboxComponent

* add networks for spec

* Add versioning from package.json (to be semantic versioning)

* skip strange behaviour in test for now

* add coveralls status

* add coveralls

* add coveralls config

* refactor addresses endpoint into its own service

* remove unneeded import

* add protocols service

* add setNetworkList
remove getPublicNetworks method

* fix testing errors
closes #44

* add more coverage

* add some more unit tests

* add tests and document method

* add tests for address pipe
add method documentation

* require args for pipe

* add gitter badge

* add coverage: pipe tests

* remove changeActiveItem method

* inbox tests

* add test to inbox component;
refactor and review inbox component

* add tests
refactor getMails() and move methods to services
  • Loading branch information
tboeckmann committed Jul 22, 2019
1 parent f090cd7 commit ea3f862
Show file tree
Hide file tree
Showing 12 changed files with 1,209 additions and 93 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmailchain%2Fmailchain-web.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmailchain%2Fmailchain-web?ref=badge_shield)
[![Build Status](https://travis-ci.com/mailchain/mailchain-web.svg?branch=master)](https://travis-ci.com/mailchain/mailchain-web)
[![Coverage Status](https://coveralls.io/repos/github/mailchain/mailchain-web/badge.svg?branch=master)](https://coveralls.io/github/mailchain/mailchain-web?branch=master)
[![Join the chat at https://gitter.im/Mailchain/mailchain-web](https://badges.gitter.im/Mailchain/mailchain.svg)](https://gitter.im/Mailchain/mailchain-web?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)


<!-- @import "[TOC]" {cmd="toc" depthFrom=1 depthTo=6 orderedList=false} -->

Expand Down
2 changes: 1 addition & 1 deletion src/app/inbox/inbox-messages/inbox-messages.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class InboxMessagesComponent implements OnInit, OnChanges {
* Get the inbox messages, filtered by 'currently selected account' > 'searchtext'.
* Dedupe message array - workaround for dupe messages @TODO: waiting on dupe bugfix in mailchain
*/
getCurrentAccountInboxMessages(){
getCurrentAccountInboxMessages(){
var inboxMessagesFilteredByAddress = this.addressPipe.transform(
this.inboxMessages,
this.currentAccount
Expand Down
10 changes: 5 additions & 5 deletions src/app/inbox/inbox.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,18 @@ <h1 class="page-title">Mailchain</h1>
<ul class="list-group list-group-flush">
<li *ngFor="let address of fromAddressesKeys"
[class]="addressIsActive(address) ? 'list-group-item account-item active' : 'list-group-item account-item'"
[id]="address+'-folder-inbox'">
>
<div class="row">
<div class="col-2 p-0 my-auto">
<a class="nav-link" (click)="changeAccount(address); changeActiveItem(address+'-folder-inbox');">
<a class="nav-link" (click)="changeAccount(address)">
<img class="rounded-circle addressFolderIcon" src="{{accountIdenticons[address]}}" alt="">
</a>
</div>
<div class="col-9 p-0 my-auto">
<a class="nav-link" (click)="changeAccount(address); changeActiveItem(address+'-folder-inbox');">{{address}}</a>
<a class="nav-link" (click)="changeAccount(address)">{{address}}</a>
</div>
<div class="col-1 p-0 my-auto">
<a class="nav-link" (click)="changeAccount(address); changeActiveItem(address+'-folder-inbox');">
<a class="nav-link" (click)="changeAccount(address)">
<span *ngIf="messagesLoaded"
[class]="fromAddresses[address]['messageCount']['inbox'] > 0 ? 'badge badge-pill badge-secondary float-right' : 'badge badge-pill badge-light float-right text-muted'">
{{fromAddresses[address]['messageCount']['inbox']}}
Expand Down Expand Up @@ -143,7 +143,7 @@ <h5>Current Port: <span>{{currentPort}}</span></h5>
<h5></h5>
</div>
</div>
<form #serverSettingsForm="ngForm" id="serverSettingsForm" (ngSubmit)="serverSettingsFormSubmit(serverSettingsForm);modalWindowSettings.hide()" autocomplete="off">
<form #serverSettingsForm="ngForm" id="serverSettingsForm" (ngSubmit)="serverSettingsFormSubmit();modalWindowSettings.hide()" autocomplete="off">

<div class="modal-body">
<div class="form-group">
Expand Down

0 comments on commit ea3f862

Please sign in to comment.