iorrah / transfersmart

TransferSmart: a smart path to usable currency conversion
https://iorrah.github.io/transfersmart/
MIT License
2 stars 0 forks source link

Better UX and healthier codebase #2

Closed iorrah closed 6 years ago

iorrah commented 6 years ago

During the work on this branch, usability enhancements have taken place and several aspects of the codebase have been improved. Find below further details about these modifications:

Rate Details

A new component has been added to the Conversion section in order to provide real time information to users in regarding to the exchange rates. In order to also represent the rates' respective relevance, the date that the rate has been calculated has been added as well;

Formatter API

In order to allows us to scale the creation of formatting functionalities (e.g. date, number or string formatting), a modular structure has been created and can be accessed by importing the respective API using the following syntax:

import formatter from '../utils/formatter';

const stringDate = '2017-10-30';
formatter.date.dmY(stringDate); // 30/10/2017

In case we only need to import specific modules, we can do so by using the module file path as per below:

import capitalize from '../utils/formatter/string/capitalize';

const project = 'transferSmart';
capitalize(project); // TransferSmart

Codebase enhancements