Commit Graph

75 Commits

Author SHA1 Message Date
jolavillette
2501adcae7 webui v155: marking a mail read must not take it out of the trash
markReadLocally() clears the whole 0xf0 nibble, but RS_MSG_TRASH is 0x20 and
lives inside it (rsmail.h). Opening a message from the Trash therefore cleared
its trash flag as well, and the row showed as an ordinary read mail until the
next load. Only the two unread bits are cleared now.

The badge itself is read from the navigation view, so unreadCount() ran a full
pass over the inbox on every redraw -- once for the rail and twice more for the
bottom bar, which asks for the value twice per item. The count is kept instead,
recomputed when the inbox changes: after a load, and after a message is marked
read.
2026-08-27 13:31:04 +02:00
defnax
97a4dd5578 Fixed to use counters badges only for new chats 2026-08-27 13:06:22 +02:00
defnax
979b5ff902 Added tooltips feature for mail composer 2026-08-12 19:11:33 +02:00
jolavillette
2186feea58 Merge master into improvements_v2
Brings the branch up to date with master so #121 can be merged again.

Eight files needed a decision. The branch predates 41111cb ("restore WebUI
styles in SCSS sources"), which recovered into the SCSS a number of rules
that until then existed only in the compiled styles.css, so most conflicts
are that recovery meeting the changes made here. Where both sides describe
the same element the branch's version is kept; where master's rule is a
positioning context the branch has no equivalent for, master's is kept:

  * _chat.scss - master's attach-modal, emoji-picker, rightbar context menu
    and create-lobby-button rules are kept alongside the compact-message
    styles added here. Taking either side whole would have dropped about
    450 lines. .chat-own-profile-card, .chat-hub-rightbar and
    .chat-hub-rightbar .user keep `position: relative`, because
    .chat-create-lobby-btn and .rightbar-context-menu are still declared
    `position: absolute` further down and would otherwise escape to the
    initial containing block. For .user-tooltip the branch's `position:
    fixed` rework wins, and master's `.chat-hub-rightbar .user-tooltip
    { left: -275px }` offset is dropped since it would fight a fixed
    element.
  * _people.scss - master's restored .friends-list-container context menu
    is kept; the pane rules it also restored are shadowed by the branch's
    own !important versions and were dropped as dead code.
  * boards_util.js - the revived updateContent() and the in-flight dedup in
    updateDisplayBoards() are kept. Master's side of the first two hunks
    was comment reformatting only.
  * board_view.js - the rewrite here is kept whole. Master's only change
    since the fork point was `let reader` -> `const reader`, in code the
    rewrite replaced.
  * chat.js - the modals moved out one nesting level here; that structure
    is kept.
  * chat_state.js - `require('people/people_util')` is not restored. It is
    unused, which is why 35c5c17 removed it.
  * build.sh - master's version. The change here concatenated raw .scss
    onto the generated CSS; see the following commits.
  * styles.css - regenerated, see the following commits.
2026-08-08 17:10:48 +02:00
Sumit Kumar Soni
35c5c17309 build: modernize WebUI build and lint tooling 2026-08-02 20:46:00 +05:30
defnax
04d42dc38f Added comments viewer & composer for boards
Added Navbar for webui on phones
for Boards and Channels:
* Validate API responses before processing.
* Keep rendering/navigation functional if a response is incomplete.
* Log a clear warning instead of throwing an uncaught error.
* Use independent sorted arrays, avoiding mutation of the master list.
2026-07-28 23:58:26 +02:00
defnax
d4680161e7 Fixed to show drafts 2026-07-27 20:10:53 +02:00
defnax
f144a85a73 improved mail view on phones
Fixed css issues
2026-07-26 23:06:56 +02:00
defnax
df977c089e Added attach file, image & emoji support to mail composer 2026-07-25 23:40:21 +02:00
defnax
1ecb2dce7c Added tooltips for mails
Move buttons on people page to the left side
2026-07-24 21:36:41 +02:00
defnax
059a28ab14 Fixed sorting in mails & show identity icon when no avatar available 2026-07-20 21:07:06 +02:00
defnax
fe63ef872b Fixed to not allow endless parcipants, added restriction like qt gui 2026-07-20 20:49:07 +02:00
defnax
94f0ad985d fix forward mail with correct id 2026-07-20 20:29:17 +02:00
defnax
a03676c94a Improved mails page
Fixed some issues on mails reply, replay all,forward
Added sort function
Added show per page mails
2026-07-09 15:47:12 +02:00
defnax
4742a87040 Added identicon display 2026-07-06 15:46:55 +02:00
defnax
c1eb3a767c Improved Network page 2026-07-05 18:49:22 +02:00
jolavillette
d861873bfe Merge master into ImproveWebui: resolve rsMsgs to rsChats/rsMail refactor while preserving UI improvements 2026-03-08 06:02:56 +01:00
jolavillette
5438bba025 implement distant chat 2026-02-19 10:51:57 +01:00
jolavillette
15b0d169fe V1: makes chat usable, fetch history, add logout and reload buttons, add version number 2026-02-16 21:14:20 +01:00
Cyril Soler
af70702793 rsMsgs -> (rsMail | rsChats) 2025-12-28 20:13:28 +01:00
zelfroster
b7c24138bd feat: attach message headers to the reply composer 2023-07-24 06:11:06 +05:30
zelfroster
027c34c7a4 feat: reply mail now working, and popup closing after mail send 2023-07-18 11:21:23 +05:30
zelfroster
8622630049 feat: reply working now, but still needs minor fixes, and removed buttonLogin().click() error on login using Enter key 2023-07-17 21:05:17 +05:30
zelfroster
b2006f3d95 fix: now the messages will always be in order and won't change order 2023-07-16 11:53:31 +05:30
zelfroster
773a5bc024 chore: optimize js to toggle toList 2023-07-15 16:29:48 +05:30
zelfroster
eef7a4c515 fix: remove iframe and use a div with contenteditable attribute instead, this commit contains a whole lot of changes 2023-07-15 15:57:47 +05:30
zelfroster
94ed218c61 fix: fix subject issue 2023-07-04 13:05:11 +05:30
zelfroster
b029ca7bfe feat: compose mail working with a nice ui 2023-07-04 12:55:50 +05:30
zelfroster
7fe03147c0 feat: mail compose working (improved) 2023-07-03 12:20:46 +05:30
zelfroster
f674f86433 fix: add item to To list 2023-06-30 19:03:31 +05:30
zelfroster
a64e47a882 chore: mithril.js not re-rendering even after calling m.redraw() 2023-06-30 17:55:39 +05:30
zelfroster
793bd229d8 fix: changed overflow:scroll to auto as chromium browsers show scrollbars even when content is not overflowing, some minor fixes along with it 2023-06-21 06:13:05 +05:30
zelfroster
471b552dc1 fix: fixed mail section layout and mail view layout, made ui usable 2023-06-20 23:08:56 +05:30
zelfroster
fbf77b2ab4 chore: separate size utility function and make the attachment a table layout 2023-04-26 19:12:13 +05:30
zelfroster
57ba4ddb63 chore: rename variables 2023-04-26 19:10:17 +05:30
zelfroster
705a4df51d feat: show from, date, size in the attachment section 2023-04-20 20:31:58 +05:30
zelfroster
e4dbf0fec4 feat: created dual view system to view all mail and attachments separately 2023-04-19 17:04:56 +05:30
zelfroster
4a29ae0733 feat: created attachment section in mail view 2023-04-18 14:52:27 +05:30
zelfroster
2af133dfe7 refactor: migrate entire css code to scss 2023-04-05 01:06:38 +05:30
csoler
bd7c508bc6
Merge pull request #67 from zelfroster/create-attachment-section
feat: create attachment section
2023-03-27 21:18:59 +02:00
zelfroster
fd6e96cdd4 feat: show sender avatar in mail view and user avatar in people section 2023-03-25 18:58:05 +05:30
zelfroster
b55787cfc2 feat: create attachment section 2023-03-18 01:02:36 +05:30
zelfroster
12e09b3c26 fix: for more than 1 recipient, recipient name was getting added on next line 2023-03-17 06:22:33 +05:30
zelfroster
b2ff19b14c fix: When mail contains no Author/from, the date will be added to the wrong field 2023-03-17 06:03:51 +05:30
Sukhamjot Singh
2488f972e5 fixed to from cc 2022-12-18 16:30:44 +05:30
Sukhamjot Singh
e8414f61f4 fixed concurrency issue in compose, design pending 2022-12-17 21:19:08 +05:30
Sukhamjot Singh
7c3fb862ab fixed sidebar and added numbers 2022-12-17 15:46:37 +05:30
Sukhamjot Singh
13d5cc0c0f accommodate API changes 2022-12-16 21:37:57 +05:30
Sukhamjot Singh
9d19627006 compose, delete, bugs 2022-09-21 18:05:05 +05:30
Sukhamjot Singh
cddca62662 Comment changes, added posts. 2022-06-13 23:04:14 +05:30