Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/mananjadhav/App into feat/e…
Browse files Browse the repository at this point in the history
…rror-page

# Conflicts:
#	src/styles/styles.js
  • Loading branch information
mananjadhav committed Jan 13, 2022
2 parents 964ee33 + 4123f1a commit ae0f10d
Show file tree
Hide file tree
Showing 54 changed files with 6,418 additions and 5,150 deletions.
2 changes: 1 addition & 1 deletion .github/actions/createOrUpdateStagingDeploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const {execSync} = __nccwpck_require__(3129);
* @returns {Object<{commit: String, subject: String}>}
*/
function getMergeLogsAsJSON(fromRef, toRef) {
const command = `git log --format='{"commit": "%H", "subject": "%s"},' ${fromRef}^...${toRef}`;
const command = `git log --format='{"commit": "%H", "subject": "%s"},' ${fromRef}...${toRef}`;
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
console.log('Running command: ', command);
const result = execSync(command).toString().trim();
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/getDeployPullRequestList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const {execSync} = __nccwpck_require__(3129);
* @returns {Object<{commit: String, subject: String}>}
*/
function getMergeLogsAsJSON(fromRef, toRef) {
const command = `git log --format='{"commit": "%H", "subject": "%s"},' ${fromRef}^...${toRef}`;
const command = `git log --format='{"commit": "%H", "subject": "%s"},' ${fromRef}...${toRef}`;
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
console.log('Running command: ', command);
const result = execSync(command).toString().trim();
Expand Down
2 changes: 1 addition & 1 deletion .github/libs/GitUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const {execSync} = require('child_process');
* @returns {Object<{commit: String, subject: String}>}
*/
function getMergeLogsAsJSON(fromRef, toRef) {
const command = `git log --format='{"commit": "%H", "subject": "%s"},' ${fromRef}^...${toRef}`;
const command = `git log --format='{"commit": "%H", "subject": "%s"},' ${fromRef}...${toRef}`;
console.log('Getting pull requests merged between the following refs:', fromRef, toRef);
console.log('Running command: ', command);
const result = execSync(command).toString().trim();
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
max_attempts: 5
command: npm ci

- run: npm run test
- name: Jest Unit Tests
run: npm run test
env:
CI: true

- name: Pull Request Tests
run: tests/unit/getPullRequestsMergedBetweenTest.sh
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ module.exports = {
'@storybook/addon-essentials',
'@storybook/addon-a11y',
],
staticDirs: [
'./public',
],
};
2 changes: 2 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<link rel="icon" type="image/png" href="logo.png" />
<link rel="stylesheet" type="text/css" href="index.css" />
6 changes: 6 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {addons} from '@storybook/addons';
import theme from './theme';

addons.setConfig({
theme,
});
20 changes: 20 additions & 0 deletions .storybook/public/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.search-field *, .sidebar-item, .search-result-item--label {
color: #fff !important;
}

.sidebar-subheading *, .search-result-item {
color: #fff;
}

a.sidebar-item > svg {
color: #03d47c;
}

.search-result-item--label span {
color: #ffffffaa !important;
}

#panel-tab-content :is(input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type) {
background: #ff7101;
color: #fff;
}
Binary file added .storybook/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions .storybook/public/logomark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions .storybook/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {create} from '@storybook/theming';
import colors from '../src/styles/colors';

export default create({
appBg: colors.dark,
barSelectedColor: colors.blue,
base: 'light',
brandTitle: 'Expensify UI Docs',
brandImage: 'logomark.svg',
colorPrimary: colors.dark,
colorSecondary: colors.orange,
fontBase: 'GTAmericaExp-Regular',
fontCode: 'monospace',
textInverseColor: colors.black,
});
15 changes: 12 additions & 3 deletions STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,21 @@ Use `lodashGet()` to safely access object properties and `||` to short circuit n
```
## JSDocs
- Avoid docs that don't add any additional information.
- Always document parameters and return values.
- Method descriptions are optional and should be added when it's not obvious what the purpose of the method is.
- Use uppercase when referring to JS primitive values (e.g. `Boolean` not `bool`, `Number` not `int`, etc)
- Optional parameters should be enclosed by `[]` e.g. `@param {String} [optionalText]`.
- Document object parameters with separate lines e.g. `@param {Object} parameters` followed by `@param {String} parameters.field`.
- If a parameter accepts more than one type use `*` to denote there is no single type.
- Use uppercase when referring to JS primitive values (e.g. `Boolean` not `bool`, `Number` not `int`, etc).
- When specifying a return value use `@returns` instead of `@return`. If there is no return value do not include one in the doc.
- Avoid descriptions that don't add any additional information. Method descriptions should only be added when it's behavior is unclear.
- Do not use block tags other than `@param` and `@returns` (e.g. `@memberof`, `@constructor`, etc).
- Do not document default parameters. They are already documented by adding them to a declared function's arguments.
- Do not use record types e.g. `{Object.<string, number>}`.
- Do not create `@typedef` to use in JSDocs.
- Do not use type unions e.g. `{(number|boolean)}`.

```javascript
// Bad
/**
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001012707
versionName "1.1.27-7"
versionCode 1001012905
versionName "1.1.29-5"
}
splits {
abi {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected String getMainComponentName() {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.onCreate(null);
if (getResources().getBoolean(R.bool.portrait_only)) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}
Expand Down
2 changes: 2 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ buildscript {
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
Expand All @@ -28,6 +29,7 @@ buildscript {

allprojects {
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven {
Expand Down
Loading

0 comments on commit ae0f10d

Please sign in to comment.