Compare commits

...

23 Commits

Author SHA1 Message Date
8a938257b7 fix: ubah orderBy notifikasi ke createdAt desc agar pagination urut tanggal terbaru 2026-06-08 14:42:22 +08:00
026e07ac78 fix: decode URI component pada nama file upload di endpoint mobile 2026-06-08 11:22:28 +08:00
928acf2c03 bump: version 0.1.19 + migration 2026-05-30 14:44:16 +08:00
a14f07b928 Merge pull request 'amalia/28-mei-26' (#54) from amalia/28-mei-26 into join
Reviewed-on: #54
2026-05-28 17:24:09 +08:00
1e02747e22 feat: tambahkan village-report endpoint dengan perbandingan periode sebelumnya
- Endpoint /village-report kini menghitung activity_count periode saat ini
  dan prev_activity_count periode sebelumnya dalam satu query (doubleRange)
- Tambahkan kalkulasi trend persentase perubahan antar periode
- Sertakan data perbekel, active_users, inactive_users, lastActivity, dan daysSince
- Tambahkan endpoint /export-logs dan /export-users untuk ekspor CSV
2026-05-28 15:39:47 +08:00
a0bffd53cb feat: tambah endpoint export-logs dan export-users untuk CSV download 2026-05-28 15:06:23 +08:00
8dca3e440f feat: tambah endpoint peak-hours untuk distribusi aktivitas per jam 2026-05-28 14:47:11 +08:00
1df1d10c91 feat: tambah endpoint inactive-users dan lengkapi field response-nya 2026-05-28 14:32:49 +08:00
e5891f0da3 feat: tambah idVillage ke response log-all-villages 2026-05-28 14:18:03 +08:00
619cc9a403 feat: tambah endpoint stale-villages untuk deteksi desa tidak aktif 2026-05-28 14:14:35 +08:00
3272ecaef3 feat: tambah field lastActivity ke endpoint monitoring /user 2026-05-28 14:09:42 +08:00
3b5126d8ee Merge pull request 'amalia/25-mei-26' (#53) from amalia/25-mei-26 into join
Reviewed-on: #53
2026-05-25 17:32:47 +08:00
552957282b bump: version 0.1.18 + migration 2026-05-25 15:36:30 +08:00
22555079f3 feat: graph-log-villages support dateFrom/dateTo + recent-village-logs endpoint 2026-05-25 15:08:30 +08:00
6cf6486172 feat: tambah endpoint GET /api-keys/:id untuk ambil full key 2026-05-25 12:00:53 +08:00
35e51028db Merge pull request 'amalia/22-mei-26' (#52) from amalia/22-mei-26 into join
Reviewed-on: #52
2026-05-22 17:41:21 +08:00
37ea4e37e7 bump: version 0.1.17 + migration 2026-05-22 14:46:33 +08:00
e270db3bfa feat: add range param to daily-activity and comparison-activity endpoints
Both endpoints now accept ?range=7|30|90 (default 7).
comparison-activity result now follows SQL ORDER BY instead of being
remapped through villages array.
2026-05-22 14:16:36 +08:00
32dac32532 feat: add village and date range filter on /log-all-villages endpoint 2026-05-22 11:37:42 +08:00
d369a71eb6 feat: add filter and orderBy support on /user monitoring endpoint 2026-05-22 11:17:42 +08:00
7334831d61 Merge pull request 'bump: version 0.1.16 + migration' (#51) from amalia/21-mei-26 into join
Reviewed-on: #51
2026-05-21 17:25:52 +08:00
c0a4d584af bump: version 0.1.16 + migration 2026-05-21 11:07:23 +08:00
9ac105e7bc Merge pull request 'amalia/20-mei-26' (#50) from amalia/20-mei-26 into join
Reviewed-on: #50
2026-05-20 17:22:20 +08:00
12 changed files with 660 additions and 236 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "sistem-desa-mandiri",
"version": "0.1.15",
"version": "0.1.19",
"private": true,
"scripts": {
"dev": "next dev --experimental-https",

View File

@@ -0,0 +1 @@
-- This is an empty migration.

View File

@@ -0,0 +1 @@
-- This is an empty migration.

View File

@@ -0,0 +1 @@
-- This is an empty migration.

View File

@@ -0,0 +1 @@
-- This is an empty migration.

View File

@@ -27,9 +27,6 @@ export async function GET(request: Request) {
idUserTo: userMobile.id
},
orderBy: [
{
isRead: 'asc'
},
{
createdAt: 'desc'
}

View File

@@ -164,7 +164,7 @@ export async function POST(request: Request, context: { params: { id: string } }
if (String(pair[0]).substring(0, 4) == "file") {
const file = body.get(pair[0]) as File
const fExt = file.name.split(".").pop()
const fName = file.name.replace("." + fExt, "")
const fName = decodeURIComponent(file.name.replace("." + fExt, ""))
const upload = await funUploadFile({ file: file, dirId: DIR.project })
if (upload.success) {

View File

@@ -84,7 +84,7 @@ export async function POST(request: Request, context: { params: { id: string } }
const file = body.get(key) as File;
const fExt = file.name.split(".").pop();
const fName = file.name.replace("." + fExt, "");
const fName = decodeURIComponent(file.name.replace("." + fExt, ""));
const upload = await funUploadFile({ file, dirId: DIR.project });
if (!upload.success) continue;

View File

@@ -114,7 +114,7 @@ export async function POST(request: Request, context: { params: { id: string } }
if (String(pair[0]).substring(0, 4) == "file") {
const file = body.get(pair[0]) as File
const fExt = file.name.split(".").pop()
const fName = file.name.replace("." + fExt, "")
const fName = decodeURIComponent(file.name.replace("." + fExt, ""))
const upload = await funUploadFile({ file: file, dirId: DIR.task })

View File

@@ -213,7 +213,7 @@ export async function POST(request: Request) {
if (String(pair[0]).substring(0, 4) == "file") {
const file = body.get(pair[0]) as File
const fExt = file.name.split(".").pop()
const fName = file.name.replace("." + fExt, "")
const fName = decodeURIComponent(file.name.replace("." + fExt, ""))
const upload = await funUploadFile({ file: file, dirId: DIR.task })
if (upload.success) {

View File

@@ -87,7 +87,7 @@ export async function POST(request: Request, context: { params: { id: string } }
const file = body.get(key) as File;
const fExt = file.name.split(".").pop();
const fName = file.name.replace("." + fExt, "");
const fName = decodeURIComponent(file.name.replace("." + fExt, ""));
const upload = await funUploadFile({ file, dirId: DIR.task });
if (!upload.success) continue;

File diff suppressed because it is too large Load Diff