Skip to content

Commit

Permalink
Merge pull request #1949 from KhalisFoundation/dev
Browse files Browse the repository at this point in the history
Beta release 9.2.1
  • Loading branch information
Gauravjeetsingh committed May 21, 2024
2 parents 70976d5 + c966329 commit f58df50
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data.db
*.provisionprofile
npm-debug.log*
.idea/
.DS_Store/
www/.DS_Store
.DS_Store
**/.DS_Store
www/js/
.env
17 changes: 8 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
## New Updates

### 9.2.1 - ਊਨਾ Release _May 20, 2024_
### 9.2.1 - ਊਨਾ Release _May 21, 2024_

#### New Features
- Add a dropdown to change the content order of viewer
- Choose the order of the lines that sangat see on screen using quickview dropdowns.
![](./assets/img/help_images/content-order.gif)
- Add a new Multi-Pane workspace to open multiiple shabads at once
- New Multi-Pane workspace allows you to open multiple Shabads on one screen to display from.
![](./assets/img/help_images/multipane-preview.gif)
- Add the ability to reset the font sizes.
- You now have the ability to reset the font sizes.

#### Misc. bug fix and other improvements
- Change the support link.
- Update the colors of Floral theme in Bani Overlay.
- Update of the support link.
- Improve the colors of Floral theme in Bani Overlay.
- Preserve formatting (line breaks) in announcement.
- Update Bani Overlay styles as per standard broadcast standards.
- Code refactors and Style improvements.
- Improvements to Bani Overlay margins to adhere to standard broadcast standards.
- Code refactors and style improvements.

**We would love to hear from you if there a feature that you have been waiting for. Send us your feedback at [sttm.co/feedback](https://www.sttm.co/feedback).**

</br>

### 9.2.0 - ਊਨਾ Release _January 30, 2024_
Expand Down
29 changes: 12 additions & 17 deletions analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,18 @@ require('dotenv').config();

class Analytics {
trackEvent({ category, action, label, value }) {
if (process.env.NODE_ENV !== 'development') {
// TODO: need to add variable that stops statistics collection
isOnline().then((online) => {
// TODO: for offline users, come up with a way of storing and send when online.
if (online) {
trackEvent(action, {
category,
label,
value,
});
}
});
} else {
console.log(
`Tracking Event suppressed for development ec: ${category}, ea: ${action}, el: ${label}, ev: ${value}`,
);
}
// TODO: need to add variable that stops statistics collection
isOnline().then((online) => {
// TODO: for offline users, come up with a way of storing and send when online.
if (online) {
console.log('action', action, 'options', { category, label, value });
trackEvent(action, {
category,
label,
value,
});
}
});
}
}

Expand Down
Binary file modified www/assets/img/help_images/content-order.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified www/assets/img/help_images/multipane-preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified www/assets/img/icons/monitor-slash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified www/assets/img/icons/monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion www/assets/img/icons/reset-transparent.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified www/assets/img/icons/user-logout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified www/assets/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion www/main/addons/announcement/components/Annoucement.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ const Announcement = ({ isGurmukhi }) => {
const HandleKeyboardToggle = () => {
setKeyboardOpenStatus(!keyboardOpenStatus);

analytics.trackEvent('display', 'announcement-slide', 'announcement-in-gurmukhi', isGurmukhi);
analytics.trackEvent({
category: 'display',
action: 'announcement-slide',
label: 'announcement-in-gurmukhi',
value: isGurmukhi,
});
};

const addMiscSlide = (givenText) => {
Expand Down
14 changes: 12 additions & 2 deletions www/main/addons/announcement/components/DhanGuru.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ export const DhanGuru = ({ isGurmukhi }) => {
}
if (typeof e === 'object') {
addMiscSlide(e.target.value);
analytics.trackEvent('display', 'dhanguru-slide', e.target.value);
analytics.trackEvent({
category: 'display',
action: 'dhanguru-slide',
label: 'Dhan guru slide',
value: e.target.value,
});
} else {
addMiscSlide(e);
analytics.trackEvent('display', 'dhanguru-slide', e);
analytics.trackEvent({
category: 'display',
action: 'dhanguru-slide',
label: 'Dhan guru slide',
value: e,
});
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ const getBaniControllerItems = ({
code,
});
setMiscSlideText(syncString);
analytics.trackEvent('controller', 'codePresented', true);
analytics.trackEvent({
category: 'controller',
action: 'codePresented',
label: 'present code',
value: true,
});
analytics.trackEvent({
category: 'controller',
action: 'codePresented',
Expand Down
23 changes: 17 additions & 6 deletions www/main/navigator/shabad/ArrowIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const ArrowIcon = ({ paneId }) => {
...pane1,
content: i18n.t('MULTI_PANE.SHABAD'),
activeShabad: currentShabad,
baniType: 'shabad',
versesRead: [],
activeVerse: null,
});
break;
case 2:
Expand All @@ -63,6 +66,9 @@ const ArrowIcon = ({ paneId }) => {
...pane2,
content: i18n.t('MULTI_PANE.SHABAD'),
activeShabad: currentShabad,
baniType: 'shabad',
versesRead: [],
activeVerse: null,
});
break;
case 3:
Expand All @@ -74,6 +80,9 @@ const ArrowIcon = ({ paneId }) => {
...pane3,
content: i18n.t('MULTI_PANE.SHABAD'),
activeShabad: currentShabad,
baniType: 'shabad',
versesRead: [],
activeVerse: null,
});
break;
default:
Expand All @@ -89,13 +98,14 @@ const ArrowIcon = ({ paneId }) => {
if (activeVerseId !== null) {
setActiveVerseId(null);
}
if (initialVerseId !== null) {
setInitialVerseId(null);
}
if (homeVerse !== 0) {
setHomeVerse(0);
}
}

if (initialVerseId !== null) {
setInitialVerseId(null);
}
};

const navigateVerseRight = () => {
Expand All @@ -106,13 +116,14 @@ const ArrowIcon = ({ paneId }) => {
if (activeVerseId !== null) {
setActiveVerseId(null);
}
if (initialVerseId !== null) {
setInitialVerseId(null);
}
if (homeVerse !== 0) {
setHomeVerse(0);
}
}

if (initialVerseId !== null) {
setInitialVerseId(null);
}
};

if (currentWorkspace === i18n.t('WORKSPACES.MULTI_PANE')) {
Expand Down
4 changes: 2 additions & 2 deletions www/main/navigator/shabad/utils/save-to-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const saveToHistory = (
const firstVerse = verses[0];
let verseId;
if (initialVerse === null) {
verseId = firstVerse.verseId;
verseId = firstVerse.ID;
} else {
verseId = initialVerse;
}
Expand All @@ -20,7 +20,7 @@ export const saveToHistory = (
const clickedVerse = verses.filter((verseObj) => verseObj.ID === initialVerse);
verse = clickedVerse.length && clickedVerse[0].Gurmukhi;
} else {
verse = firstVerse.verse;
verse = firstVerse.Gurmukhi;
}
} else if (verseType === 'bani') {
verse = firstVerse.baniName;
Expand Down
1 change: 0 additions & 1 deletion www/main/workspace-bar/components/WorkspaceBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const WorkspaceBar = () => {
if (currentWorkspace !== workspace) {
setCurrentWorkspace(workspace);
}
analytics.trackEvent('changed workspace', workspace);
analytics.trackEvent({
category: 'workspace',
action: 'changed',
Expand Down

0 comments on commit f58df50

Please sign in to comment.