Skip to content

Commit

Permalink
Add release note
Browse files Browse the repository at this point in the history
  • Loading branch information
barshathakuri committed Dec 19, 2024
1 parent 61d12fb commit 7684e10
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 14 deletions.
45 changes: 32 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,35 @@

## 1.0.0

- 889066b: Add subscription modal, authentication and hcapcha.

- Add login
- Add Register
- Add Historical alert

### Patch Changes

- Updated dependencies and add patch [889066b]
- @ifrc-go/ui@1.2.1.patch


- 0d0ae7b: Bug fixes
## New Features
- Project Setup: Initialized the project with foundational configurations for both frontend and backend.
- Home Page:
- Added a Map Tab to visually display alerts on an interactive map.
- Added a Table Tab to present alerts in a tabular format for easier analysis.
- Added filters to Map and Table.

- Sources Page: Created a dedicated page to list and display all alert sources.
- Resources Page: Introduced a resources page containing external links for additional information.

#### Subscriptions
- Create and Subscribe Alerts:
- Added a modal for users to create and subscribe to alerts directly from the platform.
- Subscription Management:
- Added a Subscriptions Page to display all active subscriptions.
- Introduced a Subscription Detail Page to view detailed alerts associated with each subscription.

#### User Authentication
- Login Page: Implemented a login system for user authentication.
- Register Page: Added a registration feature for new users.
- hCaptcha Integration: Enhanced security by integrating hCaptcha to effectively prevent spam and unauthorized activities, ensuring a safer and more reliable user experience.

#### Historical Alerts
- Added a Historical Alerts Page to list and manage past alerts, providing a comprehensive history for users.

#### Enhancements
- Google Analytics: Integrated Google Analytics to monitor website traffic and user behavior.
- API Documentation: Updated API documentation to reflect the latest features and endpoints.
- README Update: Improved README files for both frontend and backend to aid developers in setup and contribution.

#### Bug Fixes
- Resolved a redirection issue where users were unable to navigate from email links to the website seamlessly.
2 changes: 1 addition & 1 deletion backend
Submodule backend updated 0 files
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"version": "1.0.0",
"type": "module",
"private": true,
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/IFRCGo/alert-hub-web-app.git",
"directory": "app"
},
"scripts": {
"start": "vite",
"build": "vite build",
Expand Down
4 changes: 4 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const {
APP_COMMIT_HASH,
APP_VERSION,
APP_HCAPTCHA_SITEKEY,
APP_PACKAGE_NAME,
APP_REPOSITORY_URL,
} = import.meta.env;

export const appTitle = APP_TITLE; // not used
Expand All @@ -15,3 +17,5 @@ export const mapboxToken = APP_MAPBOX_ACCESS_TOKEN;
export const hCaptchaKey = APP_HCAPTCHA_SITEKEY;
export const appCommitHash = APP_COMMIT_HASH;
export const appVersion = APP_VERSION;
export const appPackageName = APP_PACKAGE_NAME;
export const appRepositoryUrl = APP_REPOSITORY_URL;
2 changes: 2 additions & 0 deletions src/declarations/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ interface ImportMetaEnv extends ImportMetaEnvAugmented {
// The custom environment variables that are passed through the vite
APP_COMMIT_HASH: string;
APP_VERSION: string;
APP_PACKAGE_NAME: string;
APP_REPOSITORY_URL: string;
}

interface ImportMeta {
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { compression } from 'vite-plugin-compression2';
import checker from 'vite-plugin-checker';
import { ValidateEnv as validateEnv } from '@julr/vite-plugin-validate-env';
import { VitePluginRadar } from 'vite-plugin-radar';
import pkg from './package.json';

import alertHubPackage from './package.json';
import envConfig from './env';
Expand All @@ -22,6 +23,8 @@ export default defineConfig(({ mode }) => {
define: {
'import.meta.APP_COMMIT_HASH': JSON.stringify(commitHash),
'import.meta.env.APP_VERSION': JSON.stringify(alertHubPackage.version),
'import.meta.env.APP_PACKAGE_NAME': JSON.stringify(env.npm_package_name),
'import.meta.env.APP_REPOSITORY_URL': JSON.stringify(pkg.repository.url.match(/https:\/\/github\.com\/[^ ]+/)?.[0].replace(/\.git$/, '')),
},
plugins: [
isProd ? checker({
Expand Down

0 comments on commit 7684e10

Please sign in to comment.