Compare commits

...

8 Commits

Author SHA1 Message Date
Fabio Barbon
593b285a5f
Merge 486b322d3f into d403044f76 2026-02-03 16:20:43 +00:00
Fabio Barbon
486b322d3f
Merge branch 'crosspoint-reader:master' into calibre-web-kosync-support 2026-02-03 17:20:36 +01:00
Aaron Cunliffe
d403044f76
fix: Increase network SSID display length (#670)
Some checks are pending
CI / build (push) Waiting to run
## Rationale 

I have 2 wifi access points with almost identical names, just one has
`_EXT` at the end of it. With the current display limit of 13 characters
before adding ellipsis, I can't tell which is which.

Before device screenshot with masked SSIDs:
<img
src="https://github.com/user-attachments/assets/3c5cbbaa-b2f6-412f-b5a8-6278963bd0f2"
width="300">


## Summary

Adjusted displayed length from 13 characters to 30 in the Wifi selection
screen - I've left some space for potential proportional font changes in
the future

After image with masked SSIDs:
<img
src="https://github.com/user-attachments/assets/c5f0712b-bbd3-4eec-9820-4693fae90c9f"
width="300">

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**< NO >**_
2026-02-03 18:24:23 +03:00
Fabio Barbon
65d51b2760
Merge branch 'crosspoint-reader:master' into calibre-web-kosync-support 2026-02-01 14:30:05 +01:00
drbourbon
f0ee1f179f Add HTTP Basic Auth (RFC 7617) header to KOsync to supporto CWA embedded sync server 2026-01-28 14:36:51 +01:00
Fabio Barbon
b6f9c74a38
Merge branch 'crosspoint-reader:master' into master 2026-01-28 06:33:34 +01:00
Fabio Barbon
b9ce83799a
Merge branch 'crosspoint-reader:master' into master 2026-01-27 13:54:58 +01:00
drbourbon
7ce6e316a7 aggiunto basic auth per accedere con mio CWA 2026-01-27 13:54:27 +01:00
2 changed files with 6 additions and 2 deletions

View File

@ -19,6 +19,10 @@ void addAuthHeaders(HTTPClient& http) {
http.addHeader("Accept", "application/vnd.koreader.v1+json"); http.addHeader("Accept", "application/vnd.koreader.v1+json");
http.addHeader("x-auth-user", KOREADER_STORE.getUsername().c_str()); http.addHeader("x-auth-user", KOREADER_STORE.getUsername().c_str());
http.addHeader("x-auth-key", KOREADER_STORE.getMd5Password().c_str()); http.addHeader("x-auth-key", KOREADER_STORE.getMd5Password().c_str());
// HTTP Basic Auth (RFC 7617) header. This is needed to support koreader sync server embedded in Calibre Web Automated
// (https://github.com/crocodilestick/Calibre-Web-Automated/blob/main/cps/progress_syncing/protocols/kosync.py)
http.setAuthorization(KOREADER_STORE.getUsername().c_str(), KOREADER_STORE.getPassword().c_str());
} }
bool isHttpsUrl(const std::string& url) { return url.rfind("https://", 0) == 0; } bool isHttpsUrl(const std::string& url) { return url.rfind("https://", 0) == 0; }

View File

@ -546,8 +546,8 @@ void WifiSelectionActivity::renderNetworkList() const {
// Draw network name (truncate if too long) // Draw network name (truncate if too long)
std::string displayName = network.ssid; std::string displayName = network.ssid;
if (displayName.length() > 16) { if (displayName.length() > 33) {
displayName.replace(13, displayName.length() - 13, "..."); displayName.replace(30, displayName.length() - 30, "...");
} }
renderer.drawText(UI_10_FONT_ID, 20, networkY, displayName.c_str()); renderer.drawText(UI_10_FONT_ID, 20, networkY, displayName.c_str());