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

8.2.0 release candidate #262

Open
wants to merge 43 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2ed4295
wip moblile learn-more fix
tobiasnteireho Dec 6, 2023
cfc8ffe
fix bad char
tobiasnteireho Dec 6, 2023
f101529
test fire
tobiasnteireho Dec 6, 2023
dcfbe38
test fire
tobiasnteireho Dec 6, 2023
233ba12
fix typo
tobiasnteireho Dec 6, 2023
c3fb1bc
fix ref
tobiasnteireho Dec 6, 2023
62b0a1a
event test
tobiasnteireho Dec 6, 2023
b07d245
eventify
tobiasnteireho Dec 6, 2023
11affc8
fix vm ref
tobiasnteireho Dec 6, 2023
5d70ace
fix apstate ref
tobiasnteireho Dec 6, 2023
5f3912c
fix aui-action
tobiasnteireho Dec 11, 2023
8e72e75
add note to maybe refactor
tobiasnteireho Dec 11, 2023
b18c0e1
update package.json for version number
tobiasnteireho Dec 11, 2023
3465268
make learn more act more linky
tobiasnteireho Dec 11, 2023
1505460
remove unused ref
tobiasnteireho Dec 11, 2023
3def79f
wip add hebrew
tobiasnteireho Dec 14, 2023
3d34379
Add new english strings
tobiasnteireho Dec 14, 2023
f9d1065
fix locale
tobiasnteireho Dec 14, 2023
2ef8a79
add extra hebrew strings
tobiasnteireho Feb 7, 2024
dbd1b78
mobile learn-more fix
tobiasnteireho Feb 8, 2024
7e7df48
8.2.0-0 pre
tobiasnteireho Feb 8, 2024
1a4f9cf
8.2.0-1
tobiasnteireho Feb 8, 2024
a356a27
Update footerVersion
tobiasnteireho Feb 8, 2024
690b64e
wip date bounds enforcement
tobiasnteireho Feb 12, 2024
9a3ce25
check max
tobiasnteireho Feb 13, 2024
deb6ae9
debug
tobiasnteireho Feb 13, 2024
9bb801a
normalize min and max
tobiasnteireho Feb 13, 2024
c2b0b65
use denormalize max and min
tobiasnteireho Feb 14, 2024
2170b5a
parse min and max only in comparison
tobiasnteireho Feb 14, 2024
a018970
cleanup
tobiasnteireho Feb 14, 2024
984cc29
update prerel ver
tobiasnteireho Feb 14, 2024
67d03b2
add more comments
tobiasnteireho Feb 15, 2024
eed84ea
fix failing tests by not always assuming bounds for dates exist.
tobiasnteireho Feb 16, 2024
13eba30
Merge pull request #263 from CCALI/255-date-min-max
tobiasnteireho Feb 26, 2024
495331e
pre-release commit
tobiasnteireho Feb 26, 2024
13a84d6
8.2.0-10
tobiasnteireho Feb 26, 2024
8858513
Update footerVersion
tobiasnteireho Feb 26, 2024
f7d7821
8.2.0-11
tobiasnteireho Mar 28, 2024
0b27957
Update footerVersion
tobiasnteireho Mar 28, 2024
22a9a7d
update preview version
tobiasnteireho Mar 28, 2024
d563fd3
8.2.0-12
tobiasnteireho Mar 28, 2024
2aab2b6
8.2.0-13
tobiasnteireho Mar 28, 2024
3aa4034
Update footerVersion
tobiasnteireho Mar 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
errRepURL: ''
}));
</script>
<script src="node_modules/steal/steal.production.js?v=1677170402416" cache-key="v" cache-version="1677170402416" main="@caliorg/a2jviewer/app"></script>
<script src="node_modules/steal/steal.production.js?v=1708983367123" cache-key="v" cache-version="1708983367123" main="@caliorg/a2jviewer/app"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
errRepURL: ''
}));
</script>
<script src="node_modules/steal/steal.production.js?v=1697489872534" cache-key="v" cache-version="1697489872534" main="@caliorg/a2jviewer/app"></script>
<script src="node_modules/steal/steal.production.js?v=1711646947685" cache-key="v" cache-version="1711646947685" main="@caliorg/a2jviewer/app"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caliorg/a2jviewer",
"version": "8.1.6",
"version": "8.2.0-13",
"description": "A2J Viewer standalone and preview app.",
"main": "a2jviewer/app",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/footer/footerVersion.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

const version = {
number: '8.1.6',
date: '2023-10-16'
number: '8.2.0-13',
date: '2024-03-28'
}

export default version
31 changes: 31 additions & 0 deletions src/mobile/pages/fields/field/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,38 @@ export const FieldVM = DefineMap.extend('FieldVM', {
} else if (field.type === 'datemdy') {
// format date to (mm/dd/yyyy) from acceptable inputs
value = this.normalizeDateInput($el.val())

// date bounds are in 6 or 8 digit texts
// need to change to same format as value
// it would be sensible to keep bounds in this
// format but we need to support it to properly
// support older released guides without adding
// more complex code

if (field.hasOwnProperty('max')) {
let maxDate =
field.max.substr(0, 2) + '/' +
field.max.substr(2, 2) + '/' +
field.max.substr(4)

if (Date.parse(value) > Date.parse(maxDate)) {
value = maxDate
}
}

if (field.hasOwnProperty('min')) {
let minDate =
field.min.substr(0, 2) + '/' +
field.min.substr(2, 2) + '/' +
field.min.substr(4)

if (Date.parse(value) < Date.parse(minDate)) {
value = minDate
}
}

// render formatted date for end user

$el.val(value)
} else {
value = $el.val()
Expand Down
31 changes: 31 additions & 0 deletions src/mobile/pages/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,37 @@ export default Component.extend({
}
},

'a.learn-more click': function fireLearnMoreModal () {
// this is almost a line for line duplicate
// of src/desktop/steps.js
// should probably refactor
const vm = this.viewModel
const pages = this.viewModel.interview.pages
const pageName = this.viewModel.currentPage.name
// vm.appState.page

if (pages && pageName) {
const page = pages.find(pageName)

// piwik tracking of learn-more clicks
if (window._paq) {
analytics.trackCustomEvent('Learn-More', 'from: ' + pageName, page.learn)
}

vm.appState.modalContent = {
// name undefined prevents stache warnings
title: page.learn,
text: page.help,
imageURL: (page.helpImageURL || '').trim(),
altText: page.helpAltText,
mediaLabel: page.helpMediaLabel,
audioURL: (page.helpAudioURL || '').trim(),
videoURL: (page.helpVideoURL || '').trim(),
helpReader: page.helpReader
}
}
},

'button.open-preview click': function (el, ev) {
ev.preventDefault()

Expand Down
10 changes: 9 additions & 1 deletion src/mobile/pages/pages.stache
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@
</div><!-- bubble-content -->

<p class="text-center modal-button">
<a class="learn-more" aria-label="{{{ parseText(currentPage.learn) }}}">{{{ parseText(currentPage.learn) }}}</a>
<a tabindex="0"
href="#"
on:click="fireLearnMoreModal()"
on:keydown="keydownFireClickHandler(scope.event, ../../../desktop/steps/fireLearnMoreModal)"
class="learn-more"
aria-label="{{{ parseText(currentPage.learn) }}}"
aui-action="help">
{{{ parseText(currentPage.learn) }}}
</a>
</p>

{{#for(button of currentPage.buttons)}}
Expand Down
79 changes: 79 additions & 0 deletions src/mobile/util/tlang.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function (lang, makestr) {
Dutch
English
French
Hebrew
Hmong
Korean
Mon Khmer
Expand Down Expand Up @@ -161,6 +162,9 @@ export default function (lang, makestr) {
Ordinals_12: 'twelfth',
Ordinals_13: '13th',
RepeatAnd: 'and',
Show_Navigation: 'Show Navigation',
Navigation_Panel: 'Navigation Panel',
Open: 'Open',

// Authoring system, non-translated elements.
// Tab names
Expand Down Expand Up @@ -1297,5 +1301,80 @@ export default function (lang, makestr) {
RepeatAnd: 'และ'
}

Languages.regional.he = {
locale: 'he',
Language: 'עברית',
LanguageEN: 'Hebrew',
AskYesNo_Yes: 'כן',
AskYesNo_No: 'לא',
Close: 'סגור',
Comment: 'הערה',
GoBack: 'חזרה',
GoNext: 'הבא',
LearnMore: 'קריאה נוספת',
MyProgress: 'ההתקדמות שלי',
ProvideFeedbackOrComment: 'משוב על עמוד זה',
SaveAndExit: 'שמור וצא',
ResumeExit: 'התחלה מחדש',
SendFeedback: 'שלח משוב',
SoundIsOff: 'צליל מושתק',
SoundIsOn: 'צליל פועל',
SoundPlay: 'הפעל',
SoundStop: 'עצור',
WhatDoYouMean: 'מה הכוונה?',
Continue: 'המשך',
Exit: 'יציאה ללא שמירה',
Male: 'זכר',
Female: 'נקבה',
ChooseListNumber: 'בחירה: ',
ChooseListText: 'בחר מרשימה זו: ',
CheckBoxNOTALabel: 'אף אחד מהתשובות',
ZoomNormal: 'גודל רגיל',
ZoomFull: 'מסך מלא',
TextEnlarge: 'הגדל תיבת טקסט',
TextShrink: 'הקטן תיבת טקסט',
TextSizeLetter: 'א',
UploadAnswers: 'יוצא, נא להמתין...',
CalcClear: 'נקה',
CalcEnter: 'הכנס',
MonthNamesShort: "ינו', פבר', מרץ, אפר', מאי, יוני, יולי, אוג', ספט', אוק', נוב', דצמ'",
MonthNamesLong: 'ינואר, פברואר, מרץ, אפריל, מאי, יוני, יולי, ספטמבר, אוקטובר, נובמבר, דצמבר',
FieldPrompts_ResponseRequired: 'חובה למלא תשובה בקווים הריקים ליד התיוג האדום לפני שממשיכים.',
FieldPrompts_SelectionRequired: 'חובה לבצע בחירה לפני שממשיכים.',
FieldPrompts_text: 'חובה להקליד תשובה במקומות הממורקרים לפני שממשיכים.',
FieldPrompts_textlong: 'חובה להקליד תשובה במקומות הממורקרים לפני שממשיכים.',
FieldPrompts_textpick: 'חובה לבחור מתוך המקום הממורקר לפני שממשיכים.',
FieldPrompts_number: 'חובה הלקליד מספר במקום הממורקר לפני שממשיכים.',
FieldPrompts_numberdollar: 'חובה להכניס סימן דולר במקום הממורקר לפני שממשיכים.',
FieldPrompts_numberssn: "חובה להכניס מס' תעודת זהות במקום הממורקר לפני שממשיכים.",
FieldPrompts_numberphone: "חובה להקליד מס' טלפון במקום הממורקר לפני שממשיכים.",
FieldPrompts_numberzip: 'חובה להקליד מיקוד במקום הממורקר לפני שממשיכים.',
FieldPrompts_numberpick: 'חובה לבחור מספר מתוך המקום הממורקר לפני שממשיכים.',
FieldPrompts_datemdy: 'חובה להקליד חודש, יום ושנה במקום הממורקר לפני שממשיכים.',
FieldPrompts_gender: 'בחרו אוואטר שייצג אותך.',
FieldPrompts_radio: 'חובה לבחור תגובה מתוך הבחירה הממורקרת לפני שממשיכים.',
FieldPrompts_checkbox: 'חובה לבחור אפשרות אחת או כמה לפני שממשיכים.',
FieldPrompts_checkboxNOTA: 'בחרו בבקשה אפשרות אחת או יותר או "אף אחת מהתשובות" לפני שממשיכים.',
Ordinals_1: 'ראשון',
Ordinals_2: 'שני',
Ordinals_3: 'שלישי',
Ordinals_4: 'רביעי',
Ordinals_5: 'חמישי',
Ordinals_6: 'שישי',
Ordinals_7: 'שביעי',
Ordinals_8: 'שמיני',
Ordinals_9: 'תשיעי',
Ordinals_10: 'עשירי',
Ordinals_11: 'אחד עשר',
Ordinals_12: 'שנים עשר',
Ordinals_13: 'שלושה עשר',
RepeatAnd: 'וגם',
Required: 'חובה',
Show_Navigation: 'הראה ניווט',
Navigation_Panel: 'לוח ניווט',
Open: 'לִפְתוֹחַ'

}

return Languages
}
Loading