Skip to content

Commit 267c528

Browse files
committed
feat: build v15.20.2 with app improvements
- Application functionality improvements and fixes - Built debug APK v15.20.2
1 parent 4372939 commit 267c528

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "com.notask.app"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
10-
versionCode 1520006
11-
versionName "15.20.1"
10+
versionCode 1520007
11+
versionName "15.20.2"
1212
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1313
aaptOptions {
1414
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"type": "module",
33
"name": "my-notes-and-tasks-modern",
4-
"version": "15.20.1",
4+
"version": "15.20.2",
55
"private": true,
66
"license": "Licensed CC BY-ND 4.0. No derivatives allowed.",
77
"scripts": {

src/hooks/useTree.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,7 @@ export const useTree = (currentUser) => {
930930

931931
const renameItem = useCallback(
932932
async (itemId, newLabel) => {
933+
const startTime = performance.now();
933934
const trimmedLabel = newLabel?.trim();
934935
if (!trimmedLabel || !itemId)
935936
return { success: false, error: "Invalid ID or name." };
@@ -944,10 +945,14 @@ export const useTree = (currentUser) => {
944945
}
945946

946947
try {
948+
console.log('[TIMING] Starting rename API request');
949+
const beforeFetch = performance.now();
947950
const updatedItemFromServer = await authFetch(`/items/${itemId}`, {
948951
method: "PATCH",
949952
body: JSON.stringify({ label: trimmedLabel }),
950953
});
954+
const fetchTime = performance.now() - beforeFetch;
955+
console.log(`[TIMING] API request completed in ${fetchTime.toFixed(2)}ms`);
951956

952957
const mapRecursiveRename = (items, id, serverUpdates) =>
953958
items.map((i) =>
@@ -960,15 +965,22 @@ export const useTree = (currentUser) => {
960965
}
961966
: i
962967
);
968+
const beforeTreeUpdate = performance.now();
963969
const newTreeState = mapRecursiveRename(
964970
tree,
965971
itemId,
966972
updatedItemFromServer
967973
);
968974
setTreeWithUndo(newTreeState);
975+
const treeUpdateTime = performance.now() - beforeTreeUpdate;
976+
const totalTime = performance.now() - startTime;
977+
console.log(`[TIMING] Local tree update completed in ${treeUpdateTime.toFixed(2)}ms`);
978+
console.log(`[TIMING] ========== TOTAL FRONTEND RENAME TIME: ${totalTime.toFixed(2)}ms ==========`);
969979
return { success: true, item: updatedItemFromServer };
970980
} catch (error) {
981+
const errorTime = performance.now() - startTime;
971982
console.error("renameItem API error:", error);
983+
console.error(`[TIMING] Request failed after ${errorTime.toFixed(2)}ms`);
972984

973985
// If we get a "not found" error, the client tree might be out of sync
974986
// Refresh the tree to get the latest server state

0 commit comments

Comments
 (0)