[PR #3405] [MERGED] feat: add "Last Online" column to client list and modal (Closes #3402) #5409

Closed
opened 2026-10-31 20:46:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3405
Author: @aliglzr
Created: 8/31/2025
Status: ✅ Merged
Merged: 8/31/2025
Merged by: @MHSanaei

Base: main ← Head: enhancement/3402-client-last-online


📝 Commits (4)

  • 3f1438b feat: persist client last online and expose API
  • 77fa6f8 feat(ui): show client last online in table and info modal
  • b0991bc i18n: add “Last Online” across locales
  • 6ee2364 chore: format timestamps as HH:mm:ss

📊 Changes

21 files changed (+71 additions, -7 deletions)

View changed files

📝 web/assets/js/util/date-util.js (+1 -1)
📝 web/controller/api.go (+1 -0)
📝 web/controller/inbound.go (+5 -0)
📝 web/html/component/aClientTable.html (+11 -6)
📝 web/html/inbounds.html (+18 -0)
📝 web/html/modals/inbound_info_modal.html (+6 -0)
📝 web/service/inbound.go (+15 -0)
📝 web/translation/translate.ar_EG.toml (+1 -0)
📝 web/translation/translate.en_US.toml (+1 -0)
📝 web/translation/translate.es_ES.toml (+1 -0)
📝 web/translation/translate.fa_IR.toml (+1 -0)
📝 web/translation/translate.id_ID.toml (+1 -0)
📝 web/translation/translate.ja_JP.toml (+1 -0)
📝 web/translation/translate.pt_BR.toml (+1 -0)
📝 web/translation/translate.ru_RU.toml (+1 -0)
📝 web/translation/translate.tr_TR.toml (+1 -0)
📝 web/translation/translate.uk_UA.toml (+1 -0)
📝 web/translation/translate.vi_VN.toml (+1 -0)
📝 web/translation/translate.zh_CN.toml (+1 -0)
📝 web/translation/translate.zh_TW.toml (+1 -0)

...and 1 more files

📄 Description

What is the pull request?

This pull request implements the "Last Online" feature for clients, as requested in issue #3402.
It introduces backend support to store and retrieve the last online timestamp for each client and updates the frontend UI to display this information in the client list and inbound info modal.
Additionally, it adds proper date formatting and translations for the new label in all supported languages.

Closes #3402

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

Client Table with "Last Online" Column
image
image

Inbound Info Modal showing Last Online
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3405 **Author:** [@aliglzr](https://github.com/aliglzr) **Created:** 8/31/2025 **Status:** ✅ Merged **Merged:** 8/31/2025 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `enhancement/3402-client-last-online` --- ### 📝 Commits (4) - [`3f1438b`](https://github.com/MHSanaei/3x-ui/commit/3f1438bea1c16fec64af29fa9796f6151cf469cb) feat: persist client last online and expose API - [`77fa6f8`](https://github.com/MHSanaei/3x-ui/commit/77fa6f86083968403b7bb025c6826ad117785669) feat(ui): show client last online in table and info modal - [`b0991bc`](https://github.com/MHSanaei/3x-ui/commit/b0991bc3b0b7e88f967b7d2a9c76c2fc6439d723) i18n: add “Last Online” across locales - [`6ee2364`](https://github.com/MHSanaei/3x-ui/commit/6ee236475321bf92ee7ecd12ad41222862adce76) chore: format timestamps as HH:mm:ss ### 📊 Changes **21 files changed** (+71 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `web/assets/js/util/date-util.js` (+1 -1) 📝 `web/controller/api.go` (+1 -0) 📝 `web/controller/inbound.go` (+5 -0) 📝 `web/html/component/aClientTable.html` (+11 -6) 📝 `web/html/inbounds.html` (+18 -0) 📝 `web/html/modals/inbound_info_modal.html` (+6 -0) 📝 `web/service/inbound.go` (+15 -0) 📝 `web/translation/translate.ar_EG.toml` (+1 -0) 📝 `web/translation/translate.en_US.toml` (+1 -0) 📝 `web/translation/translate.es_ES.toml` (+1 -0) 📝 `web/translation/translate.fa_IR.toml` (+1 -0) 📝 `web/translation/translate.id_ID.toml` (+1 -0) 📝 `web/translation/translate.ja_JP.toml` (+1 -0) 📝 `web/translation/translate.pt_BR.toml` (+1 -0) 📝 `web/translation/translate.ru_RU.toml` (+1 -0) 📝 `web/translation/translate.tr_TR.toml` (+1 -0) 📝 `web/translation/translate.uk_UA.toml` (+1 -0) 📝 `web/translation/translate.vi_VN.toml` (+1 -0) 📝 `web/translation/translate.zh_CN.toml` (+1 -0) 📝 `web/translation/translate.zh_TW.toml` (+1 -0) _...and 1 more files_ </details> ### 📄 Description ## What is the pull request? This pull request implements the **"Last Online"** feature for clients, as requested in issue #3402. It introduces backend support to store and retrieve the last online timestamp for each client and updates the frontend UI to display this information in the client list and inbound info modal. Additionally, it adds proper date formatting and translations for the new label in all supported languages. Closes #3402 ## Which part of the application is affected by the change? - [x] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] Refactoring - [ ] Other ## Screenshots **Client Table with "Last Online" Column** <img width="653" height="550" alt="image" src="https://github.com/user-attachments/assets/f88a0be4-47c9-4cab-b636-45d34c96f4bc" /> <img width="639" height="517" alt="image" src="https://github.com/user-attachments/assets/671b325e-fe83-44ef-a3f1-053231b3ca74" /> **Inbound Info Modal showing Last Online** <img width="640" height="350" alt="image" src="https://github.com/user-attachments/assets/6ea79df8-9bb1-482a-aaa1-7b0cb681303d" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:46:47 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5409
No description provided.