ortoni-report 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log:
2
2
 
3
+ ## v3.0.4
4
+
5
+ #### 🐛 Bug Fixes
6
+
7
+ - Chart not showing latest trends
8
+
3
9
  ## v3.0.3
4
10
 
5
11
  #### 📦 New Features
@@ -2025,7 +2025,7 @@ var DatabaseManager = class {
2025
2025
  };
2026
2026
  }
2027
2027
  }
2028
- async getTrends(limit = 30) {
2028
+ async getTrends(limit = 100) {
2029
2029
  if (!this.db) {
2030
2030
  console.error("OrtoniReport: Database not initialized");
2031
2031
  return [];
@@ -2040,12 +2040,12 @@ var DatabaseManager = class {
2040
2040
  FROM test_results tr
2041
2041
  JOIN test_runs trun ON tr.run_id = trun.id
2042
2042
  GROUP BY trun.run_date
2043
- ORDER BY trun.run_date ASC
2043
+ ORDER BY trun.run_date DESC
2044
2044
  LIMIT ?
2045
2045
  `,
2046
2046
  [limit]
2047
2047
  );
2048
- return rows.map((row) => ({
2048
+ return rows.reverse().map((row) => ({
2049
2049
  ...row,
2050
2050
  run_date: formatDateLocal(row.run_date),
2051
2051
  avg_duration: Math.round(row.avg_duration || 0)
@@ -1931,7 +1931,7 @@ var DatabaseManager = class {
1931
1931
  };
1932
1932
  }
1933
1933
  }
1934
- async getTrends(limit = 30) {
1934
+ async getTrends(limit = 100) {
1935
1935
  if (!this.db) {
1936
1936
  console.error("OrtoniReport: Database not initialized");
1937
1937
  return [];
@@ -1946,12 +1946,12 @@ var DatabaseManager = class {
1946
1946
  FROM test_results tr
1947
1947
  JOIN test_runs trun ON tr.run_id = trun.id
1948
1948
  GROUP BY trun.run_date
1949
- ORDER BY trun.run_date ASC
1949
+ ORDER BY trun.run_date DESC
1950
1950
  LIMIT ?
1951
1951
  `,
1952
1952
  [limit]
1953
1953
  );
1954
- return rows.map((row) => ({
1954
+ return rows.reverse().map((row) => ({
1955
1955
  ...row,
1956
1956
  run_date: formatDateLocal(row.run_date),
1957
1957
  avg_duration: Math.round(row.avg_duration || 0)
@@ -1,7 +1,7 @@
1
1
  <head>
2
2
  <meta charset="UTF-8" />
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
4
- <meta name="description" content="Ortoni Report - V3.0.3" />
4
+ <meta name="description" content="Ortoni Report - V3.0.4" />
5
5
  <title>{{title}}</title>
6
6
  <link rel="icon" href="https://raw.githubusercontent.com/ortoniKC/ortoni-report/refs/heads/main/favicon.png"
7
7
  type="image/x-icon" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ortoni-report",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Playwright Report By LetCode with Koushik",
5
5
  "scripts": {
6
6
  "tsc": "tsc",