Skip to content

Commit

Permalink
Merge pull request #3608 from LiteFarmOrg/update-links-and-version-nu…
Browse files Browse the repository at this point in the history
…mber

update webpage links and version number
  • Loading branch information
kathyavini authored Dec 12, 2024
2 parents bf166c8 + f32b869 commit f046846
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/api/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 packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litefarm-api",
"version": "3.6.8",
"version": "3.7.0",
"description": "LiteFarm API server",
"main": "./api/src/server.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if (process.env.SENTRY_DSN && environment !== 'development') {
// Automatically instrument Node.js libraries and frameworks
...Sentry.autoDiscoverNodePerformanceMonitoringIntegrations(),
],
release: '3.6.8',
release: '3.7.0',
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litefarm-webapp",
"version": "3.6.8",
"version": "3.7.0",
"description": "LiteFarm Web application",
"type": "module",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import type { Pathname } from 'history';
import Badge from '../Badge';
import React from 'react';
import styles from './styles.module.scss';
import { BETA_BADGE_LINK } from '../../util/constants';

// Key value pair for path and its header
interface PathHeaderKVP {
Expand Down Expand Up @@ -46,7 +47,10 @@ export function useSectionHeader(path: Pathname): string | React.ReactElement |
<Badge
title={t('BADGE.BETA.TITLE')}
content={
<Trans i18nKey={'BADGE.BETA.ANIMALS_CONTENT'} components={{ a: <a href="#" /> }} />
<Trans
i18nKey={'BADGE.BETA.ANIMALS_CONTENT'}
components={{ a: <a href={BETA_BADGE_LINK} target="_blank" rel="noreferrer" /> }}
/>
}
id="animalsBeta"
classes={{ iconButton: styles.badge }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Trans } from 'react-i18next';
import Badge from '../../../components/Badge';
import { ReactComponent as SendIcon } from '../../../assets/images/send-icon.svg';
import styles from './styles.module.scss';
import { BETA_BADGE_LINK } from '../../../util/constants';

export default function AnimalsBetaSpotlight({ children, setFeedbackSurveyOpen }) {
const { t } = useTranslation();
Expand Down Expand Up @@ -49,7 +50,7 @@ export default function AnimalsBetaSpotlight({ children, setFeedbackSurveyOpen }
<Trans
key={'animals_beta_step_1_content'}
i18nKey={'BADGE.BETA.ANIMALS_CONTENT'}
components={{ a: <a href="#" /> }}
components={{ a: <a href={BETA_BADGE_LINK} target="_blank" rel="noreferrer" /> }}
/>,
],
selector: '#animalsBeta',
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ if (import.meta.env.VITE_SENTRY_DSN) {
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
integrations: [new Integrations.BrowserTracing()],
release: '3.6.8',
release: '3.7.0',
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
Expand Down
7 changes: 5 additions & 2 deletions packages/webapp/src/util/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ export const DO_CDN_URL = `https://${
export const SUPPORT_EMAIL = '[email protected]';

// Changing this forces logout and updates the new release card
export const APP_VERSION = '3.6.5';
export const APP_VERSION = '3.7.0';
export const VERSION_RELEASE_NOTES_LINK =
'https://www.litefarm.org/post/exciting-improvements-enhanced-soil-amendment-task-management-in-litefarm';
'https://www.litefarm.org/post/start-2025-right-manage-crops-and-animals-seamlessly-with-litefarm';

export const CONSENT_VERSION = '6.0';

export const BETA_BADGE_LINK =
'https://www.litefarm.org/post/beta-features-on-litefarm-your-feedback-matters';

0 comments on commit f046846

Please sign in to comment.