Skip to content

Commit

Permalink
Remove page descriptions where they are not needed #550 (#567)
Browse files Browse the repository at this point in the history
* remove page description_

* keep the linter happy

* take out the test for the removed element from test/frontend.js and see if it passes ci

Closes #550
  • Loading branch information
SebinSong authored and taoeffect committed May 11, 2019
1 parent fd0c8e6 commit 94e5f84
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 16 deletions.
1 change: 0 additions & 1 deletion .Gruntfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ module.exports = (grunt) => {
eslint: 'node ./node_modules/eslint/bin/eslint.js "**/*.{js,vue}"',
eslintgrunt: "./node_modules/.bin/eslint --ignore-pattern '!.*.js' .Gruntfile.babel.js Gruntfile.js",
stylelint: 'node ./node_modules/stylelint/bin/stylelint.js "frontend/**/*.{css,scss,vue}"',


flow: './node_modules/.bin/flow'
},
Expand Down
1 change: 0 additions & 1 deletion frontend/views/Contributions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<i18n tag="h1" class="title is-1 is-marginless">
Contributions
</i18n>
<i18n tag="p">See everyone’s contributions to the group and manage yours.</i18n>
</div>
<div>
<groups-min-income :group="currentGroupState" />
Expand Down
3 changes: 0 additions & 3 deletions frontend/views/GroupDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<h1 class="title is-1 is-marginless" data-test="groupName">
{{ currentGroupState.groupName }}
</h1>
<p data-test="sharedValues">
{{ currentGroupState.sharedValues }}
</p>
</div>

<dashboard-section title="Proposals">
Expand Down
1 change: 0 additions & 1 deletion frontend/views/PayGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<i18n tag="h1" class="title is-1 is-marginless">
Pay Group
</i18n>
<i18n tag="p">What’s this page about, so the user understands the context.</i18n>
</div>

<section class="section columns is-desktop is-multiline c-invoice">
Expand Down
6 changes: 3 additions & 3 deletions frontend/views/components/Settings/theme.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import Themes from '../../data/colors.json'
export default {
name: 'SelectorTheme',
data () {
return {
themes: Themes
Expand All @@ -50,8 +50,8 @@ export default {
computed: {
...mapGetters([
'colors'
]),
},
])
}
}
</script>

Expand Down
1 change: 0 additions & 1 deletion frontend/views/containers/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
</div>
</div>
<time-travel v-show="ephemeral.showTimeTravel" :toggleVisibility="toggleTimeTravel" />
</div>
</nav>
</template>
<style lang="scss" scoped>
Expand Down
5 changes: 3 additions & 2 deletions scripts/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ const pth = require('path')
let localeObject = {}
function parseJS (text) {
let functionEx = /\bL\(\s*['"](.*?)['"]\s*(?:,\s*['"](.*?)['"]\s*)?\)/mg
let matches
while (matches = functionEx.exec(text)) {
let matches = functionEx.exec(text)
while (matches) {
let text = matches[ 1 ]
let comment = matches[ 2 ]
localeObject[ text ] = { text: text, comment: comment || '' }
matches = functionEx.exec(text)
}
}
function parseHtml (text) {
Expand Down
4 changes: 2 additions & 2 deletions shared/declarations.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ declare module '../shared/sbp.js' { declare module.exports: Function }
declare module '../../shared/sbp.js' { declare module.exports: Function }
declare module '../../../shared/sbp.js' { declare module.exports: Function }
declare module '../shared/domains/okTurtles/data/index.js' { declare module.exports: Object }
declare module '../shared/GIMessage.js' { declare module.exports: Object }
declare module '../../shared/GIMessage.js' { declare module.exports: Object }
declare module '../shared/GIMessage.js' { declare module.exports: Object }
declare module '../../shared/GIMessage.js' { declare module.exports: Object }
declare module './server.js' { declare module.exports: any }
declare module './constants.js' { declare module.exports: Object }
declare module '../shared/constants.js' { declare module.exports: Object }
Expand Down
2 changes: 0 additions & 2 deletions test/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,12 @@ describe('Frontend', function () {

const created = await n.evaluate(() => ({
groupName: document.querySelector('[data-test="groupName"]').innerText,
sharedValues: document.querySelector('[data-test="sharedValues"]').innerText,
incomeProvided: document.querySelector('[data-test="minIncome"]').innerText,
changePercentage: document.querySelector('[data-test="changePercentage"]').innerText,
memberApprovalPercentage: document.querySelector('[data-test="approvePercentage"]').innerText,
memberRemovalPercentage: document.querySelector('[data-test="removePercentage"]').innerText
}))
should(created.groupName).equal(testName)
should(created.sharedValues).equal(testValues)
// BUG: TODO: this field should not include the currency
// TODO: the currency should be checked separately via data-test="incomeCurrency"
should(created.incomeProvided).equal('$' + testIncome)
Expand Down

0 comments on commit 94e5f84

Please sign in to comment.