Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/v0.5 #23

Merged
merged 73 commits into from
Nov 12, 2019
Merged

release/v0.5 #23

merged 73 commits into from
Nov 12, 2019

Conversation

eddielee394
Copy link
Owner

No description provided.

- add initial dep's:  reactotron, react-native-dotenv, apisauce
- add global appConfig;
- add reactotron service;
- add env configs;
- add babelrc;
- add reactotron support;
- add api service class;
- add api configs;
- refactor api & app configs;
- add iexcloud api endpoints and configurations
- refactor reactotron class;
- refactor Api service to class;
- add dep react-devtools support;
- update prettier config;
- add iexcloud service for better api abstraction;
- remove explicit url declarations from Api class;
- add response data validations to api class;
- add initial readme;
- update config to disable yellowbox warnings;
- update iexcloud url endpoint for getQuote;
- add additional validation params for Api.getQuote method;
- update docblocs;
- add lodash, victory-native, rn router flux, rn navigation, rn toast, native-base & ui kitten libs;
- add eva-design theme configs & eva icons;
- add initial RNRF functionality;
- add Bottom nav components;
- add additional dummy screens;
add watchlist functionality (WIP);
- add initial Watchlist container & components;
add chart functionality (WIP);
- add initial Stock container & stock chart component;
- update babel, gitignore & prettier;
- update env file with env.example & remove .env from worktree;
- add custom dark theme;
- remove ignite & eva-design dependencies;
- refactor root navigation for better maintainability;
- remove ui-kitten bottom nav;
- integrate rnrf dynamic tabbed navigation;
- remove ui kitten dependencies from components;
- remove ui kitten dependencies from screens;
- add dummy screens for navigation testing;
- add a pretty cool duck;
- add dummy watchlist data;
- update root navigation;
- remove react-toast-native;
- add inapp browser display support;
- add splash lightbox screens;
- add sociallinks component;
- update theme variables;
- update docblocks;
- add response validation to api.getLogo method;
- update api methods;
- update iexcloud service;
- add errorHandler service with toast notifications;
- add support for moment;
- add date formatting utils;
- add chart display functionality;
- add chart display by range functionality;
- update theme to support charts;
- cleanup app.js;
- refactor screens directory architecture;
- update welcome screen and add navigation button;
- add update intervals to quote data;
- add quote data to stock view;
- update styling;
- add hack to cope with RN warning when due to native timeout conflicts;
- add loading screen;
- add friction and tension props to SwipeableList component;
- fix issue where watchlists & watchlist symbols weren't being deleted properly;
- fix issue where reactotron was causing crashes in release versions on hardware devices;
- update code formatting & cleanup imports;
- update android release configs;
- add watchlist charts;
- fix container scroll on watchlist symbol list;
- fix issue with watchlist symbols not deleting;
- add abilility to add to watchlist from search;
- update watchlists to toggle addSymbol to watchlist;
- code cleanup;
- updated readme;
- update readme;
- add stock news tab functionality;
- add scrollable tabsBar component with top view offset;
- add stock news actions & reducer logic;
- add new api methods for fetching news data;
- add new iexcloud service method for fetching news data;
- add react prop.types support;
- add dummy tabs for stock fundamentals & profile;
- code cleanup;
@eddielee394 eddielee394 added this to In progress in beta release via automation Nov 4, 2019
@eddielee394 eddielee394 moved this from In progress to Ready For Review in beta release Nov 4, 2019
Copy link

@MicheleCimminoLD MicheleCimminoLD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to read 1/3 of the whole code

@@ -0,0 +1,7 @@
module.exports = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually configure it using husky with a pre-commit hook

import { StatusBar } from 'react-native';
import { RootNavigator } from './navigation/RootNavigator';

const App = () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const App = () => ()

() is shortcut for return

app/assets/images/index.js Show resolved Hide resolved
app/components/Search/SearchContainer.js Outdated Show resolved Hide resolved
app/components/Search/SearchContainer.js Outdated Show resolved Hide resolved
app/components/Stock/StockChart.js Outdated Show resolved Hide resolved
app/components/Stock/StockQuote.js Outdated Show resolved Hide resolved
app/components/Stock/StockQuote.js Outdated Show resolved Hide resolved
app/components/Stock/store/actions/chart.actions.js Outdated Show resolved Hide resolved
app/components/Stock/tabs/StockNews.js Outdated Show resolved Hide resolved
beta release automation moved this from Ready For Review to In progress Nov 6, 2019
- update lodash imports to use named functions instead of entire lib;
- update inline functions to use handlers for Autocomplete props;
- update some functions to destructure arguments;
- refactor useSelector to only use watchlist symbols instead of entire watchlist state;
- remove inline styles & refactor styles names for semantic accuracy;
- fix StockQuote styles;
- refactor _renderQuoteChangeIcon function to a variable declaration;
- add loading spinner until latestPrice is rendered #10;
- refactor range constants;
- refactor Stock components & implement obj destructuring;
- fix issue with chart dates not displaying on X axis properly;
- update all lodash imports to use named imports;
renderTextInput={_renderInput}
defaultValue={query}
hideResults={handleHideResults}
onChangeText={handleSearch}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debounce the onChnageInput event.If,for example the user type fast abbv,he is instered to see just the result starts with abbv and with this we avoid to make to useless http request.Use debounce from lodash

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already identified as a future enhancement in an existing issue #8

const { symbol, companyName } = result;

return (
<ListItem key={symbol} onPress={() => handleSelectItem(symbol)}>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keys should be stable, predictable, and unique.you can't set like key something which is randomly generated.is not 100% that is unique everytime.If keys are not unique, can have an impact on performance.

Copy link
Owner Author

@eddielee394 eddielee394 Nov 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the symbol property is always unique. No two results returned from search would ever have the same symbol. The alternative is to use the array index but that would be very unstable as the array index would change any time state.results is updated - which I think would happen anytime the query changes.

- fix sticky tab style issues;
- fix redundant autosearch hide item logic;
@eddielee394 eddielee394 merged commit 8369ec3 into master Nov 12, 2019
beta release automation moved this from In progress to Done Nov 12, 2019
@eddielee394 eddielee394 deleted the release/v0.5 branch November 12, 2019 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
beta release
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants