Add todo list

This commit is contained in:
2026-10-05 14:08:44 +03:00
parent 0f84055ec2
commit af5416dad2
5 changed files with 74 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
# TODO
## Product identity
- [ ] Rename the program to **ep-mail** across the app UI, package metadata, desktop builds, and documentation.
- [ ] Replace the current sun/asterisk branding with Eternity Project emblems or logos. Confirm which official asset to use before implementation.
## Mail security
- [ ] Add support for encrypting and decrypting mail with private/public keys or a suitable standard. Decide on the encryption format, key storage and exchange flow, and compatibility requirements before implementation.
## Appearance and settings
- [ ] Make **EP Wasteland** the default theme for new users.
- [ ] Move theme selection into Settings and save the selection so the chosen theme is applied every time the program starts.
- [ ] Move the display name field from general Settings into Account Settings.
## Account settings
- [ ] Move CalDAV and CardDAV server configuration into Account Settings, removing the server settings controls from the Calendar and Contacts views.
- [ ] Keep general Settings focused on appearance and other app-wide preferences rather than the display name.
+1 -1
View File
@@ -14,4 +14,4 @@ function renderCalendar(){}
function showEvent(){}
function renderContacts(){}
function showContact(){}
$$('.folder').forEach(b=>b.onclick=()=>{activeFolder=b.dataset.folder;$$('.folder').forEach(x=>x.classList.toggle('active',x===b));$('#sidebar-title').textContent=activeFolder;$('#crumb-current').textContent=activeFolder;renderList()});$$('.rail-button[data-view]').forEach(b=>b.onclick=()=>{switchView(b.dataset.view);if(b.dataset.view==='calendar')renderCalendar();if(b.dataset.view==='contacts')renderContacts()});function applyTheme(theme,showToast=false){const themes=['daylight','wasteland','ep-wasteland'];const selected=themes.includes(theme)?theme:'daylight';const info={daylight:{name:'Eternity Daylight',icon:'☼'},wasteland:{name:'Wasteland',icon:'☾'},'ep-wasteland':{name:'EP Wasteland',icon:'◈'}}[selected];document.body.classList.remove('wasteland','ep-wasteland');if(selected!=='daylight')document.body.classList.add(selected);const button=$('#theme-toggle');button.querySelector('span').textContent=info.icon;button.title=`Theme: ${info.name} (click to switch)`;button.setAttribute('aria-label',`Theme: ${info.name}. Click to switch themes.`);localStorage.setItem('daybreak-theme',selected);if(showToast)toast(`${info.name} theme`)}$('#theme-toggle').onclick=()=>{const themes=['daylight','wasteland','ep-wasteland'];const current=localStorage.getItem('daybreak-theme')||'daylight';applyTheme(themes[(themes.indexOf(current)+1)%themes.length],true)};applyTheme(localStorage.getItem('daybreak-theme')||'daylight');$('#search').oninput=e=>{query=e.target.value;renderList()};$('#search').addEventListener('keydown',e=>{if(e.key==='Escape'){e.target.value='';query='';renderList()}});$('#compose').onclick=()=>showCompose();$('#refresh').onclick=()=>{toast('You’re all up to date');renderList()};$('#select-all').onclick=()=>{const visible=messages.filter(m=>!m.archived&&!m.deleted);const all=visible.every(m=>selectedIds.has(m.id));visible.forEach(m=>all?selectedIds.delete(m.id):selectedIds.add(m.id));renderList()};$('#archive-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.archived=true);selectedIds.clear();renderList();toast('Selected messages archived')};$('#delete-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.deleted=true);selectedIds.clear();renderList();toast('Selected messages moved to Trash')};$('#sidebar-menu').onclick=()=>toast('More mailbox options');$$('.settings-button,.help-button,.tiny-plus,.text-button').forEach(b=>b.onclick=()=>toast('You’re all caught up'));document.addEventListener('keydown',e=>{if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==='k'){e.preventDefault();$('#search').focus()}if(e.key==='Escape')$('#modal-root').innerHTML=''});$('#today-label').textContent=new Intl.DateTimeFormat('en-US',{weekday:'long',month:'long',day:'numeric'}).format(new Date()).toUpperCase();$('#reader-pane').innerHTML=emptyReader();renderList();openMessage(activeMessage);
$$('.folder').forEach(b=>b.onclick=()=>{activeFolder=b.dataset.folder;$$('.folder').forEach(x=>x.classList.toggle('active',x===b));$('#sidebar-title').textContent=activeFolder;$('#crumb-current').textContent=activeFolder;renderList()});$$('.rail-button[data-view]').forEach(b=>b.onclick=()=>{switchView(b.dataset.view);if(b.dataset.view==='calendar')renderCalendar();if(b.dataset.view==='contacts')renderContacts()});function applyTheme(theme,showToast=false){const themes=['daylight','wasteland','ep-wasteland','ep-daylight'];const selected=themes.includes(theme)?theme:'daylight';const info={daylight:{name:'Eternity Daylight',icon:'☼'},wasteland:{name:'Wasteland',icon:'☾'},'ep-wasteland':{name:'EP Wasteland',icon:'◈'},'ep-daylight':{name:'EP Daylight',icon:'☀'}}[selected];document.body.classList.remove('wasteland','ep-wasteland','ep-daylight');if(selected!=='daylight')document.body.classList.add(selected);const button=$('#theme-toggle');button.querySelector('span').textContent=info.icon;button.title=`Theme: ${info.name} (click to switch)`;button.setAttribute('aria-label',`Theme: ${info.name}. Click to switch themes.`);document.querySelector('meta[name=theme-color]')?.setAttribute('content',selected==='ep-wasteland'?'#161210':selected==='ep-daylight'?'#f1f1e9':selected==='wasteland'?'#eee8db':'#f4f5f1');localStorage.setItem('daybreak-theme',selected);if(showToast)toast(`${info.name} theme`)}$('#theme-toggle').onclick=()=>{const themes=['daylight','wasteland','ep-wasteland','ep-daylight'];const current=localStorage.getItem('daybreak-theme')||'daylight';applyTheme(themes[(themes.indexOf(current)+1)%themes.length],true)};applyTheme(localStorage.getItem('daybreak-theme')||'daylight');$('#search').oninput=e=>{query=e.target.value;renderList()};$('#search').addEventListener('keydown',e=>{if(e.key==='Escape'){e.target.value='';query='';renderList()}});$('#compose').onclick=()=>showCompose();$('#refresh').onclick=()=>{toast('You’re all up to date');renderList()};$('#select-all').onclick=()=>{const visible=messages.filter(m=>!m.archived&&!m.deleted);const all=visible.every(m=>selectedIds.has(m.id));visible.forEach(m=>all?selectedIds.delete(m.id):selectedIds.add(m.id));renderList()};$('#archive-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.archived=true);selectedIds.clear();renderList();toast('Selected messages archived')};$('#delete-selected').onclick=()=>{messages.filter(m=>selectedIds.has(m.id)).forEach(m=>m.deleted=true);selectedIds.clear();renderList();toast('Selected messages moved to Trash')};$('#sidebar-menu').onclick=()=>toast('More mailbox options');$$('.settings-button,.help-button,.tiny-plus,.text-button').forEach(b=>b.onclick=()=>toast('You’re all caught up'));document.addEventListener('keydown',e=>{if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()==='k'){e.preventDefault();$('#search').focus()}if(e.key==='Escape')$('#modal-root').innerHTML=''});$('#today-label').textContent=new Intl.DateTimeFormat('en-US',{weekday:'long',month:'long',day:'numeric'}).format(new Date()).toUpperCase();$('#reader-pane').innerHTML=emptyReader();renderList();openMessage(activeMessage);
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "daybreak-mail",
"version": "0.1.5",
"version": "0.1.7",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "daybreak-mail",
"version": "0.1.5",
"version": "0.1.7",
"dependencies": {
"ical.js": "^2.2.1",
"imapflow": "2.2.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "daybreak-mail",
"version": "0.1.5",
"version": "0.1.7",
"private": true,
"description": "Daybreak Mail desktop client prototype",
"author": "Daybreak Studio",
+49
View File
@@ -65,3 +65,52 @@ body.ep-wasteland .event-chip.gold,body.ep-wasteland .event-chip.blue{background
body.ep-wasteland .tag,body.ep-wasteland .tag.green{background:#343b22;color:#a2bd5b}
body.ep-wasteland .row-check{border-color:#8f8170}
body.ep-wasteland .row-check:checked{accent-color:#8fae3d}
/* EP Daylight follows the Eternity Project Gitea theme palette. */
body.ep-daylight{color-scheme:light;--bg:#f1f1e9;--panel:#fbfbf6;--line:#b9c5bc;--text:#263a3d;--muted:#70827b;--subtle:#e9eee4;--accent:#526a2c;--accent-soft:#e9eee4;--shadow:0 2px 10px #11212b12;background:var(--bg);color:var(--text)}
body.ep-daylight .rail,body.ep-daylight .sidebar-head,body.ep-daylight .topbar,body.ep-daylight .modal-head{background:#e8e9df;border-color:#b9c5bc}
body.ep-daylight .brand-mark,body.ep-daylight .compose-button,body.ep-daylight .send-button,body.ep-daylight .reply-button.primary{background:#526a2c;border-color:#526a2c;color:#f1f1e9}
body.ep-daylight .brand-mark{box-shadow:0 3px 8px #11212b20}
body.ep-daylight .compose-button:hover{background:#435722;border-color:#435722}
body.ep-daylight .sidebar,body.ep-daylight .list-pane,body.ep-daylight .reader-pane,body.ep-daylight .page-view{background:#fbfbf6;color:#263a3d}
body.ep-daylight .sidebar{border-color:#b9c5bc}
body.ep-daylight .account-card,body.ep-daylight .search-wrap,body.ep-daylight .toolbar,body.ep-daylight .calendar-card,body.ep-daylight .contact-search,body.ep-daylight .contact-card,body.ep-daylight .upcoming-row,body.ep-daylight .compose-modal{background:#fbfbf6;border-color:#b9c5bc;color:#263a3d}
body.ep-daylight .rail-button,body.ep-daylight .icon-button,body.ep-daylight .folder,body.ep-daylight .label-link,body.ep-daylight .settings-button,body.ep-daylight .nav-glyph,body.ep-daylight .help-button{color:#59706b}
body.ep-daylight .rail-button:hover,body.ep-daylight .icon-button:hover,body.ep-daylight .folder:hover,body.ep-daylight .label-link:hover,body.ep-daylight .reply-button:hover,body.ep-daylight .outline-button:hover{background:#e9eee4;color:#263a3d}
body.ep-daylight .rail-button.active,body.ep-daylight .folder.active{background:#e9eee4;color:#526a2c}
body.ep-daylight .account-avatar,body.ep-daylight .contact-avatar{background:#e9eee4;color:#526a2c}
body.ep-daylight .avatar{background:#b9c5bc;color:#11212b}
body.ep-daylight .sidebar-head h1,body.ep-daylight .breadcrumbs strong,body.ep-daylight .list-heading h2,body.ep-daylight .page-heading h2,body.ep-daylight .upcoming h3,body.ep-daylight .sender-details strong,body.ep-daylight .reader-subject,body.ep-daylight .reader-empty h3,body.ep-daylight .contact-card>div:nth-child(2) strong,body.ep-daylight .upcoming-row div strong{color:#11212b}
body.ep-daylight .eyebrow,body.ep-daylight .breadcrumbs,body.ep-daylight .date-line,body.ep-daylight .page-subtitle,body.ep-daylight .section-label,body.ep-daylight .account-info span,body.ep-daylight .storage small,body.ep-daylight .pagination,body.ep-daylight .time,body.ep-daylight .sender-details span,body.ep-daylight .message-date,body.ep-daylight .contact-card>div:nth-child(2) span,body.ep-daylight .contact-card>div:nth-child(2) small,body.ep-daylight .upcoming-row small{color:#59706b}
body.ep-daylight .online-dot,body.ep-daylight .storage-bar i{background:#8fae3d}
body.ep-daylight .folder.active .nav-glyph,body.ep-daylight .count,body.ep-daylight .text-button,body.ep-daylight .contact-email,body.ep-daylight .account-current{color:#526a2c}
body.ep-daylight .count{background:#e9eee4}
body.ep-daylight .sidebar-divider,body.ep-daylight .storage,body.ep-daylight .reader-header,body.ep-daylight .reply-bar,body.ep-daylight .message,body.ep-daylight .list-foot,body.ep-daylight .account-row,body.ep-daylight .calendar-week,body.ep-daylight .cal-cell{border-color:#b9c5bc}
body.ep-daylight .storage-bar,body.ep-daylight .toolbar-divider{background:#b9c5bc}
body.ep-daylight .message{background:#fbfbf6}
body.ep-daylight .message:hover,body.ep-daylight .message.selected{background:#e9eee4}
body.ep-daylight .message.selected{box-shadow:inset 2px 0 #8fae3d}
body.ep-daylight .sender,body.ep-daylight .subject,body.ep-daylight .message.unread .sender,body.ep-daylight .message.unread .subject{color:#11212b}
body.ep-daylight .snippet,body.ep-daylight .list-foot,body.ep-daylight .reader-body{color:#59706b}
body.ep-daylight .star{color:#70827b}
body.ep-daylight .star.on{color:#526a2c}
body.ep-daylight .reader-empty{color:#59706b}
body.ep-daylight .empty-icon,body.ep-daylight .event-date,body.ep-daylight .cal-cell.today .cal-number{background:#e9eee4;color:#526a2c}
body.ep-daylight .attachment,body.ep-daylight .file-icon{background:#fbfbf6;border-color:#b9c5bc;color:#526a2c}
body.ep-daylight .attachment-info strong{color:#263a3d}
body.ep-daylight .attachment-info small{color:#59706b}
body.ep-daylight .reply-button,body.ep-daylight .outline-button{background:#fbfbf6;border-color:#b9c5bc;color:#263a3d}
body.ep-daylight .tag,body.ep-daylight .tag.green,body.ep-daylight .event-chip{background:#e9eee4;color:#526a2c}
body.ep-daylight .event-chip.gold,body.ep-daylight .event-chip.blue,body.ep-daylight .gold-date{background:#e8e9df;color:#59706b}
body.ep-daylight .cal-cell{color:#263a3d}
body.ep-daylight .cal-cell:hover,body.ep-daylight .cal-cell.outside{background:#e9eee4}
body.ep-daylight .cal-cell.outside{color:#70827b}
body.ep-daylight .cal-number{color:#263a3d}
body.ep-daylight .modal-overlay{background:#11212b55}
body.ep-daylight .compose-fields,body.ep-daylight .compose-footer{background:#fbfbf6}
body.ep-daylight .compose-line,body.ep-daylight .compose-body{border-color:#b9c5bc;color:#59706b}
body.ep-daylight .compose-line input,body.ep-daylight .compose-subject,body.ep-daylight .compose-body,body.ep-daylight .contact-search input{background:transparent;color:#11212b}
body.ep-daylight .compose-line input::placeholder,body.ep-daylight .compose-body::placeholder{color:#70827b}
body.ep-daylight .modal-close,body.ep-daylight .discard{color:#59706b}
body.ep-daylight .toast{background:#11212b;color:#f1f1e9}
body.ep-daylight .row-check:checked{accent-color:#526a2c}