Commit Graph

106 Commits

Author SHA1 Message Date
72a562a38e fix: remove dbg! macro (#2355) 2024-08-14 12:37:28 +01:00
b764ee327d chore: update to rust 1.80 (#2344) 2024-08-07 21:07:34 +01:00
58c904996d fix(mail): enable correct tls features for postmark client (#2347) 2024-08-06 15:00:34 +01:00
2811e5631b fix(mail): incorrect alias and error logs (#2346) 2024-08-06 14:31:41 +01:00
90e7d28173 test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite (#2337)
* test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite

This make it possible to control the timeout of SQLite operations in
test. And ATUIN_TEST_LOCAL_TIMEOUT defaults to the default local_timeout,
which is actually used in the client. Instead of a small timeout (0.1),
this change makes the test less likely to fail and better imitate the
default behavior.

SQLite operation timeout was first introduced from #1590, including
connection and store timeout. The env ATUIN_TEST_SQLITE_STORE_TIMEOUT
which added by #1703 only specify the store timeout. This commit doesn't
deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT, but control it by setting its
default to the new env ATUIN_TEST_LOCAL_TIMEOUT.

* test!: replace ATUIN_TEST_SQLITE_STORE_TIMEOUT with ATUIN_TEST_LOCAL_TIMEOUT

This deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT for simplicity as the new
env ATUIN_TEST_LOCAL_TIMEOUT can control both connection and store
timeout of SQLite in test. Details see 4d88611.

Revert: #1703.
2024-08-05 14:22:40 +01:00
f94a284df4 fix(theme): Restore original colours (#2339)
* fix(theme): restore ratatui colors

* chore: fix up rustfmt

* typo: correct spelling in comment
2024-08-05 14:12:18 +01:00
fe9832997a chore(deps): bump env_logger from 0.11.3 to 0.11.5 (#2341)
Bumps [env_logger](https://github.com/rust-cli/env_logger) from 0.11.3 to 0.11.5.
- [Release notes](https://github.com/rust-cli/env_logger/releases)
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.11.3...v0.11.5)

---
updated-dependencies:
- dependency-name: env_logger
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 14:11:15 +01:00
ac6802e43c chore(deps): update to sqlx 0.8 (#2343) 2024-08-05 14:11:01 +01:00
db2d6c3d83 fix: windows build error (#2321)
* fix: windows build

* refactor: cargo fmt

refactor: cargo fmt
2024-07-29 15:10:49 +01:00
8cb5983a53 fix: atuin-daemon optional dependency (#2306) 2024-07-29 11:55:56 +01:00
3cf52990e4 chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00
17ed668aac fix(themes): Restore default theme, refactor (#2294)
* fix(theme): let the base colour remain unchanged

* fix(theme): split out default

* fix(theme): make base theme 'default' not an empty string

* wip(theme): return styles, not colors

* wip(theme): tidy up module structure a little

* wip(theme): removed unhandled references to foreground_color

* chore: fix cargo fmt

* feat(theme): allow crossterm-deserializable colors
2024-07-23 12:03:00 +01:00
62f3807dcb fix(history): logic for store_failed=false (#2284)
* chore: ignore .envrc

* fix(history): Check passed exit param instead of not-yet set h.exit
2024-07-17 15:22:53 +01:00
06c8ebd310 feat(tui): Fixed preview height option (#2286)
* Added "fixed" to preview strategy

Uses max_preview_height as a fixed value to prevent the list from
"jumping".

* Added test for new setting
2024-07-17 15:19:11 +01:00
0e7f9b29d2 chore(release): prepare for release v18.4.0-beta.2 (#2287)
* feat(gui): add runbook list, ability to create and delete, sql storage (#2282)

* wip

* saving works :))

* functioning delete button

* persist selection properly

* update contributors

* update changelog
2024-07-16 15:19:33 +01:00
75fa887bfb chore(deps): bump clap_complete from 4.5.7 to 4.5.8 (#2273)
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.5.7 to 4.5.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.7...clap_complete-v4.5.8)

---
updated-dependencies:
- dependency-name: clap_complete
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 10:46:46 +01:00
6592b87aad chore(deps): bump tracing-tree from 0.3.1 to 0.4.0 (#2259)
Bumps [tracing-tree](https://github.com/davidbarsky/tracing-tree) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/davidbarsky/tracing-tree/releases)
- [Commits](https://github.com/davidbarsky/tracing-tree/commits/v0.4.0)

---
updated-dependencies:
- dependency-name: tracing-tree
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 10:20:40 +01:00
61c6e5e46a feat(tui): Customizable Themes (#2236)
* wip: add theme

* feat(theme): basic theming approach

* feat(theme): adds theming support

* fix: split out palette without compact inspector

* fix(theme): tidy up implementation

* fix(theme): correct yaml to toml

* fix(theme): typo in comments

* chore: cheer up clippy

* fix(themes): ensure tests cannot hit real loading directory

* chore: rustfmt

* chore: rebase

* feat(themes): add rgb hexcode support

* fix(theme): add tests

* fix(theme): use builtin log levels and correct debug test

* feat(theme): adds the ability to derive from a non-base theme

* fix(theme): warn if the in-file name of a theme does not match the filename

* chore: tidy for rustfmt and clippy

* chore: tidy for rustfmt and clippy
2024-07-15 10:18:46 +01:00
8f5af526d3 chore: enable record sync by default (#2255)
I'm now pretty confident in the automatic migration. Let's cut people over so they have a better experience
2024-07-11 17:02:59 +01:00
33925e3302 chore(deps): Replace cli-clipboard with arboard (#2067) 2024-07-10 16:20:30 +00:00
35bbaea0e4 chore(deps): update prost-types (#2251) 2024-07-10 16:52:48 +01:00
8d9f677c4e feat(gui): use fancy new side nav (#2243)
* feat(gui): use fancy new side nav

* compact only sidebar, no expand-collapse

* custom drag region, remove titlebar

* add user popup

* wire up login/logout/register, move user button to bottom and add menu

* link help and feedback to forum
2024-07-10 15:56:33 +01:00
353981e794 chore(deps): update to tonic 0.12, prost 0.13 (#2250)
Resolve #2248
2024-07-10 15:46:51 +01:00
e45979c9af fix(tui): Press ctrl-a twice should jump to beginning of line (#2246) 2024-07-10 08:49:58 +01:00
f56a66add9 feat(bash/blesh): hook into BLE_ONLOAD to resolve loading order issue (#2234) 2024-07-05 14:32:47 +01:00
a67cfc82fe fix: ambiguous column name (#2232) 2024-07-03 08:24:05 +01:00
5fe8ae05e5 fix: idx cache inconsistency (#2231) 2024-07-03 08:10:12 +01:00
c3723aaf27 feat: monitor idx cache consistency before switching (#2229) 2024-07-02 14:47:41 +01:00
255a7bccb6 feat: allow advertising a fake version to clients (#2228)
* feat: allow advertising a fake version to clients

The server usually runs unstable Atuin, and is well monitored. But let's
not advertised the unstable version to clients, as they will notify
users there is an update available.

* fix test build
2024-07-02 14:13:45 +01:00
884d97d55e fix: add idx cache unique index (#2226) 2024-07-02 11:36:22 +01:00
0def653484 perf: write to the idx cache (#2225) 2024-07-02 11:14:37 +01:00
8b17690359 perf: create idx cache table (#2140)
* perf: add idx cache

* Update crates/atuin-server-postgres/migrations/20240614104159_idx-cache.sql

* indentation

* remove trigger - for each row is too much, should be once per transaction
2024-07-01 13:49:46 +01:00
2f68b6e36b chore(deps): bump postmark from 0.10.0 to 0.10.1 (#2217)
Bumps [postmark](https://github.com/pastjean/postmark-rs) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/pastjean/postmark-rs/releases)
- [Changelog](https://github.com/pastjean/postmark-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pastjean/postmark-rs/compare/v0.10.0...v0.10.1)

---
updated-dependencies:
- dependency-name: postmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-01 12:57:13 +01:00
1b0dad0b98 feat: Add npm, Netlify and Pulumi tokens to secret patterns (#2210) 2024-07-01 12:07:52 +01:00
1201caee5c perf(search): benchmark smart sort (#2202) 2024-06-26 12:40:17 +01:00
fd3aca7cb3 feat: add several other GitHub access token patterns (#2200)
- OAuth access tokens
- refresh token
- app installation token
- PAT v2

Additionally, added support for having >1 value for testing, for cases
where the pattern for a secret has alternative formats (GitHub PAT v2
does this)
2024-06-25 21:24:31 +01:00
a223fcb718 feat: Add GitLab PAT to secret patterns (#2196) 2024-06-25 14:32:45 +01:00
c8b3e418a1 chore(release): prepare for release v18.4.0-beta.1 (#2195)
* chore(release): prepare for release v18.4.0-beta.1

* remove full release test
2024-06-25 12:35:12 +01:00
05d1d9b136 chore(deps): update ratatui to 0.27 (#2193) 2024-06-25 09:43:42 +01:00
9e36f63c6e fix: ensure we cleanup all tables when deleting (#2191) 2024-06-24 16:46:19 +01:00
67d64ec4b3 feat: add user account verification (#2190)
* add verified column to users table

* add database functions to check if verified, or to verify

* getting there

* verification check

* use base64 urlsafe no pad

* add verification client

* clippy

* correct docs

* fix integration tests
2024-06-24 14:54:54 +01:00
8956142cc5 fix: Some --help comments didn't show properly (#2176)
* FIX: Some --help comments didn't show properly (#3)

* FIX: Some --help comments didn't show properly

* FIX: Some --help comments didn't show properly

* FIX: Some --help comments didn't show properly

* FIX: Some --help comments didn't show properly

* Update crates/atuin/src/command/client.rs

grammatical sentence

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>

* Update crates/atuin/src/command/client.rs

---------

Co-authored-by: Ellie Huxtable <ellie@elliehuxtable.com>
2024-06-24 07:23:29 +00:00
5238d71e66 chore(deps): bump url from 2.5.1 to 2.5.2 (#2182)
Bumps [url](https://github.com/servo/rust-url) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/servo/rust-url/releases)
- [Commits](https://github.com/servo/rust-url/compare/v2.5.1...v2.5.2)

---
updated-dependencies:
- dependency-name: url
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24 08:04:47 +01:00
b06b7b509a feat(history): filter out various environment variables containing potential secrets (#2174) 2024-06-20 16:50:29 +01:00
9b82bba53f feat(daemon): follow XDG_RUNTIME_DIR if set (#2171)
If XDG_RUNTIME_DIR is set, put the socket file there.

If not, default to storing it in our data dir. We cannot default to a
path such as /run/user/$UID/ because it does not exist on all systems.
Any system running systemd will set this var by default, and ensure that
the directory it points to is correctly setup.
2024-06-20 10:28:00 +01:00
5f66fb6a03 fix(gui): add support for checking if the cli is installed on windows (#2162)
* fix(windows): add support for checking if the cli is installed on windows

* refactor: remove debugging info

* refactor: cargo fmt
2024-06-19 11:55:03 +01:00
33ef734116 Fix scroll_exits default in config.toml (#2166) 2024-06-19 11:38:39 +01:00
7984f9ef0c feat(tui): configurable prefix character (#2157)
* feat(tui): configurable prefix character

* string not char because toml/json lol
2024-06-18 10:24:43 +01:00
88633b8994 feat(gui): automatically install and setup the cli/shell (#2139)
* feat(gui): automatically install and setup the cli/shell

* add shell config and toasts
2024-06-17 15:36:38 +01:00
f06408f4f7 chore(deps): bump memchr from 2.7.2 to 2.7.4 (#2151)
Bumps [memchr](https://github.com/BurntSushi/memchr) from 2.7.2 to 2.7.4.
- [Commits](https://github.com/BurntSushi/memchr/compare/2.7.2...2.7.4)

---
updated-dependencies:
- dependency-name: memchr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-17 09:12:37 +01:00