The commit fixes a bug where the dateLikeString was not being formatted
correctly if it only contained 3 or 4 digits. The fix adds a check for
this case and formats the string accordingly.
Additionally, the commit addresses an issue where the time was not being
set correctly if the "gotTime" variable was false. The fix adds a check
for each iteration of the loop to ensure that the time is only set if
the corresponding "gotTime" value is false.
* Switch credential storage from keytar to electrons key storage
* feat: Migrate credentials from keytar
* feat: add function to cleanup old keytar credentials
* refactor: Remove CredentialStore
* feat: Remove old keytar credentials on migration
MovePickerPopover uses a newly added 'onExpand' callback from 'Menu' to
use it as AutoSuggest. When a user presses 'Tab' or 'ArrowRight' on a
highlighted folder, its name is plugged into the search field. This way
it is much easier to correctly complete long folder hierarchies.
Co-authored-by: Dzmitry Kanunnikau <dzmitry@kanunnikau.online>
* Apply resizer
TODO: check how to undo AND see if title/alt attribute implementation is possible (maybe a pop-up with fields for these AND width and height 🤷♂️)
* Stop composer ONLY styles
The composer is adding styles to inline images, this means a draft can look completely different to the received mail. Removed the `vertical-align` and reset the `margin` to match the email view
* image ratio retention & small fix
- Added image ratio retention (<kbd>shift</kbd> = freeform)
- Fixed resizing being stopped when reducing the image size reduces the height of the email
- Had to stop the container from reducing (whilst resizing) as reducing the image inside a reducing element was VERY janky 🤮
* recipient warnings and errors split into a separate step for drafts
* checking and updating recipient warning blacklist through localstorage
* add option to reset emails that ignore warning in preferences
Quicken the load on long threads:
- ignore blockquote links
- cache results by message id for current session only (helpful when there's a component state change)
_Prettier/lint code changes_
* Updated mailspring.appdata.xml.in and PT-BR translation
The mailspring.appdata.xml.in file is used by Flatpak to automatically build the containerized version, available in Flathub, and that file wasn't tracking Mailspring's version, showing then an older version on Flathub (main Flatpak store). Also, the Brazilian Portuguese translation is around 80% checked and corrected (also standardized a lot of different words that were the same thing, improving usability).
* Update pt-BR.json
All of the pt-BR.json was checked and verified. I've applied the necessary corrections, and tried my best to fully standardize the entire translation, because same things were being translated to different things in Portuguese.
* Some UX improvements (plus .gitignore tweak)
Made a few UX improvements:
- The send later delay can be skipped by clicking the new `Send now instead` button (localization required)
- If there is a range selection in the subject line then a context menu pops up on right click (for those that are allergic to keyboard shortcuts 😂)
- Message participant tweaks:
- you can now open the context menu on the name or email, not just the email
- you don't need to expand the participants to open the context menu
- name is shown over the email for `Email "Name else Email"` context menu item
- added `Copy "Email"` to context menu when nothing is selected/highlighted and just `Copy` when something is
- **for devs:** pretty console messages now consider your device theme and use an appropriate colour
* Prettier adjustments
* Revert `.gitignore` change
* Fix & actual prettier-ing
- Fix email context menu (now email and name can be alt-clicked)
- Sorted auto format (sorry didn't realise it was off)
* Use localised date/time format
Use a localised date format rather than forcing the Americanised format. This does loose the ordinal in `fullTimeString(Date)`
* Use weekday(Mon-Sun), for recent emails
- Changed recent emails to:
- display weekday and time (e.g Mon, 10:15)
- the recent emails to be 5 days, rather than 2
- Removed dead code
- Removed unnecessary import
* Remove unnecessary log
* Add key to prevent console error
Added a key to prevent a `Each child in an array or iterator should have a unique "key" prop` error in the console
* Add a key to "more" span
Co-authored-by: Ben Gotow <ben@foundry376.com>