Skip to content

Commit b833e5a

Browse files
✨ 🎨 Review tabs UI, Add top 5️⃣ projects and hide synchro buttons (#48)
1 parent a42be97 commit b833e5a

9 files changed

Lines changed: 317 additions & 267 deletions

File tree

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,40 @@
4242

4343
## 🐛 Bug Fixes
4444
- [`ccd40d1`](https://github.com/zenika-open-source/opensource-statistics/commit/ccd40d1) Fix/semantic release release note (#32) (Issues: [`#32`](https://github.com/zenika-open-source/opensource-statistics/issues/32))
45+
46+
# v1.0.0 (2026-04-01)
47+
48+
## ✨ New Features
49+
- [`7882900`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/7882900) Add Quarkus app
50+
- [`ae46f09`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/ae46f09) Organize ressources and schedules
51+
- [`d2aa0b6`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/d2aa0b6) Add Github lib
52+
- [`5646e63`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/5646e63) Add GitHub extension and start to call API
53+
- [`76bdd09`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/76bdd09) Replace library by http client call
54+
- [`850b13d`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/850b13d) Add GitHub endpoint to get information about user and projects (perso and forked)
55+
- [`4e3cd97`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/4e3cd97) Github members endpoint : add page
56+
- [`69c636d`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/69c636d) Add endpoints to get all contribution number for one login on the current Year or a specific year user/{login}/contributions/year/current user/{login}/contributions/year/{year}
57+
- [`55f9024`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/55f9024) Add endpoint to get all contributions for all members of the Zenika Open Source members. + refactor some packages + init test for GitHubServices but in progress (there is a bug)
58+
- [`b061202`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/b061202) Add some tests
59+
- [`4658d0f`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/4658d0f) Add some tests
60+
- [`7eaa19c`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/7eaa19c) Fix bug and get all members of Zenika Open Source organization
61+
- [`55f6db8`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/55f6db8) Start PR : add extension and start creating Firestore Adapter
62+
- [`2359711`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/2359711) Review endpoint and start dev on workflow part (connecting to GCP)
63+
- [`b32c53c`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/b32c53c) Implement the saving of data for a member
64+
- [`b8dd35a`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/b8dd35a) Implements saving stats for all Zenika members
65+
- [`56d5824`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/56d5824) Add Stats ressources
66+
- [`291f033`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/291f033) Integrate Javelit to build dashboard + configure semantic release (#28) (Issues: [`#28`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/28))
67+
- [`de24724`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/de24724) ⬆️ Update Java 25 (#30) (Issues: [`#30`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/30))
68+
- [`1b8fed6`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/1b8fed6) Fix users recuperation to not remove all users before gett… (#34) (Issues: [`#34`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/34))
69+
- [`ffa140a`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/ffa140a) Add contributions elements and some stats (#36) (Issues: [`#36`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/36))
70+
- [`fa1a143`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/fa1a143) 🔧 Configure Cloud Run deployment (#37) (Issues: [`#37`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/37))
71+
- [`d89b283`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/d89b283) Integrate GitLab 🦊 (#38) (Issues: [`#38`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/38))
72+
- [`cecece7`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/cecece7) Add Organization projects (#41) (Issues: [`#41`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/41))
73+
- [`e281c37`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/e281c37) 44 update information for only news person (#45) (Issues: [`#45`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/45))
74+
75+
## 🐛 Bug Fixes
76+
- [`34e4c79`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/34e4c79) Fix gitpod configuration
77+
- [`26604c5`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/26604c5) Fix enum usage
78+
- [`ad37816`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/ad37816) Remove deploy command on semantic release (#31) (Issues: [`#31`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/31))
79+
- [`ccd40d1`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/ccd40d1) Fix/semantic release release note (#32) (Issues: [`#32`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/32))
80+
- [`d9f69f4`](https://github.com/jeanphi-baconnais/opensource-statistics/commit/d9f69f4) Fix Docker configuration + add doc + remove gitpod configuration (#33) (Issues: [`#33`](https://github.com/jeanphi-baconnais/opensource-statistics/issues/33))
81+

src/main/java/zenika/oss/stats/beans/Project.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public class Project {
1414
private Long watchers_count;
1515
private Long forks;
1616
private String source;
17+
private String created_at;
1718

1819
public String getId() {
1920
return id;
@@ -95,6 +96,14 @@ public void setSource(String source) {
9596
this.source = source;
9697
}
9798

99+
public String getCreated_at() {
100+
return created_at;
101+
}
102+
103+
public void setCreated_at(String created_at) {
104+
this.created_at = created_at;
105+
}
106+
98107
// Modern aliases if needed
99108
@com.fasterxml.jackson.annotation.JsonIgnore
100109
public String getFullName() {

src/main/java/zenika/oss/stats/mapper/ZenikaProjectMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static Project mapFirestoreZenikaProjectToProject(QueryDocumentSnapshot q
1919
project.setFork(Boolean.TRUE.equals(queryDocumentSnapshot.getBoolean("fork")));
2020
project.setArchived(Boolean.TRUE.equals(queryDocumentSnapshot.getBoolean("archived")));
2121
project.setVisibility(queryDocumentSnapshot.getString("visibility"));
22+
project.setCreated_at(queryDocumentSnapshot.getString("created_at"));
2223

2324
return project;
2425
}
@@ -48,5 +49,6 @@ private static void copyProperties(Project source, Project target) {
4849
target.setFork(source.isFork());
4950
target.setArchived(source.isArchived());
5051
target.setVisibility(source.getVisibility());
52+
target.setCreated_at(source.getCreated_at());
5153
}
5254
}

src/main/java/zenika/oss/stats/ui/tabs/ContributionsTab.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import zenika.oss.stats.services.FirestoreServices;
1313
import zenika.oss.stats.services.GitHubServices;
1414
import zenika.oss.stats.services.GitLabServices;
15+
import org.eclipse.microprofile.config.inject.ConfigProperty;
1516

1617
import org.icepear.echarts.Bar;
1718
import org.icepear.echarts.charts.bar.BarSeries;
@@ -39,6 +40,9 @@ public class ContributionsTab {
3940
@Inject
4041
FirestoreServices firestoreServices;
4142

43+
@ConfigProperty(name = "oss.stats.sync.buttons.enabled", defaultValue = "false")
44+
boolean syncButtonsEnabled;
45+
4246
public void render(JtContainer contributionsTab) {
4347

4448
Jt.subheader("User Contributions History").use(contributionsTab);
@@ -52,11 +56,12 @@ public void render(JtContainer contributionsTab) {
5256
.value(Year.now().getValue())
5357
.use(controlRow.col(0));
5458

55-
if (Jt.button("🔄 Sync Contributions").use(controlRow.col(1))) {
56-
try {
57-
int year = yearValue;
58-
int currentYear = Year.now().getValue();
59-
boolean isCurrentYear = (year == currentYear);
59+
if (syncButtonsEnabled) {
60+
if (Jt.button("🔄 Sync Contributions").use(controlRow.col(1))) {
61+
try {
62+
int year = yearValue;
63+
int currentYear = Year.now().getValue();
64+
boolean isCurrentYear = (year == currentYear);
6065

6166
if (isCurrentYear) {
6267
firestoreServices.deleteStatsBySourceForYear(year, "GitHub");
@@ -137,6 +142,7 @@ public void render(JtContainer contributionsTab) {
137142
Log.error("Error syncing contributions", e);
138143
}
139144
}
145+
}
140146

141147
Jt.subheader("Monthly Contributions in " + yearValue).use(contributionsTab);
142148

0 commit comments

Comments
 (0)