Skip to content

Commit

Permalink
Startup screen (#98)
Browse files Browse the repository at this point in the history
* Autocomplete FE, WIP

Signed-off-by: AlexMikhalev <[email protected]>

* Reverted URL to String - URL::url isn't threadsafe

Signed-off-by: AlexMikhalev <[email protected]>

* Reverted URL to String - URL::url isn't threadsafe

Signed-off-by: AlexMikhalev <[email protected]>

* Removed ULid based ID

Signed-off-by: AlexMikhalev <[email protected]>

* fixing automata tests

Signed-off-by: AlexMikhalev <[email protected]>

* tests are green except load_url - format wrong

Signed-off-by: Alexander Mikhalev <[email protected]>

* make sure tests run in whole workspace

Signed-off-by: Alexander Mikhalev <[email protected]>

* Correct scorer applied for title search

Signed-off-by: Alexander Mikhalev <[email protected]>

* Small KG config refactor

Signed-off-by: Alex Mikhalev <[email protected]>

* fixed updating rolegraph after rebuilding thesaurus, not only on first load. WIP many tests broken.

Signed-off-by: Alex Mikhalev <[email protected]>

* fixed updating rolegraph after rebuilding thesaurus, not only on first load. WIP many tests broken.

Signed-off-by: Alex Mikhalev <[email protected]>

* fixing tests

Signed-off-by: AlexMikhalev <[email protected]>

* fixing tests

Signed-off-by: AlexMikhalev <[email protected]>

* fixing tests

Signed-off-by: AlexMikhalev <[email protected]>

* Fixed logseq KG parser including tests

Signed-off-by: Alex Mikhalev <[email protected]>

* Fixed logseq KG parser including tests

Signed-off-by: Alex Mikhalev <[email protected]>

* Sample Logseq KG

Signed-off-by: Alex Mikhalev <[email protected]>

* Normalize query string

Signed-off-by: Alex Mikhalev <[email protected]>

* filtering ripgrep by markdown type

Signed-off-by: AlexMikhalev <[email protected]>

* filtering ripgrep by markdown type

Signed-off-by: AlexMikhalev <[email protected]>

* Interim fixes for graph

Signed-off-by: Alex Mikhalev <[email protected]>

* Small update

Signed-off-by: Alex Mikhalev <[email protected]>

* First autocomplete working

Signed-off-by: Alex Mikhalev <[email protected]>

* Autocomplete with reset

Signed-off-by: Alex Mikhalev <[email protected]>

* Cargo formatted

Signed-off-by: Alex Mikhalev <[email protected]>

* Fixing tests

Signed-off-by: Alex Mikhalev <[email protected]>

* Fixed autocomplete

Signed-off-by: Alex Mikhalev <[email protected]>

* feat: autosuggestions complete #95 #58

Signed-off-by: Alex Mikhalev <[email protected]>

* Autocomplete ready

Signed-off-by: Alex Mikhalev <[email protected]>

* Autocomplete ready

Signed-off-by: Alex Mikhalev <[email protected]>

* Added space

* Startup screen - WIP, doesn't work yet

Signed-off-by: Alex Mikhalev <[email protected]>

* Working startup screen - but file picker returns c:\fakepath. Abandoned until tauri 2

Signed-off-by: Alex Mikhalev <[email protected]>

* Working startup screen - but file picker returns c:\fakepath. Abandoned until tauri 2

Signed-off-by: Alex Mikhalev <[email protected]>

* Front end working

Signed-off-by: Alex Mikhalev <[email protected]>

* Commentted button in favour of input text field

Signed-off-by: Alex Mikhalev <[email protected]>

* splashscreen

Signed-off-by: Alex Mikhalev <[email protected]>

* Splashscreen working

Signed-off-by: Alexander Mikhalev <[email protected]>

* Splashscreen working

Signed-off-by: Alexander Mikhalev <[email protected]>

* Working copy

Signed-off-by: Alexander Mikhalev <[email protected]>

---------

Signed-off-by: AlexMikhalev <[email protected]>
Signed-off-by: Alexander Mikhalev <[email protected]>
Signed-off-by: Alexander Mikhalev <[email protected]>
Signed-off-by: Alex Mikhalev <[email protected]>
Co-authored-by: Alexander Mikhalev <[email protected]>
  • Loading branch information
AlexMikhalev and Alexander Mikhalev authored Sep 26, 2024
1 parent 043af05 commit e5e7341
Show file tree
Hide file tree
Showing 32 changed files with 1,335 additions and 106 deletions.
116 changes: 99 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
10 changes: 5 additions & 5 deletions crates/terraphim_service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,25 @@ impl<'a> TerraphimService {
Ok(thesaurus) => {
println!("Thesaurus loaded: {:#?}", thesaurus);
log::info!("Rolegraph loaded: for role name {:?}", role_name);
return Ok(thesaurus);
Ok(thesaurus)
}
Err(e) => {
log::error!("Failed to load thesaurus: {:?}", e);
return load_thesaurus_from_automata_path(
load_thesaurus_from_automata_path(
&self.config_state,
role_name,
&mut rolegraphs,
)
.await;
.await
}
}
} else {
return load_thesaurus_from_automata_path(
load_thesaurus_from_automata_path(
&self.config_state,
role_name,
&mut rolegraphs,
)
.await;
.await
}
}

Expand Down
4 changes: 4 additions & 0 deletions crates/terraphim_settings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ log = "0.4.14"
test-log = "0.2.14"
thiserror = "1.0.56"
twelf = { version = "0.13", features = ["json", "toml", "env", "clap"] }
serde = { version = "1.0.182", features = ["derive"] }

[dev-dependencies]
tempfile="3.2.0"
2 changes: 1 addition & 1 deletion crates/terraphim_settings/default/settings.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server_hostname = "127.0.0.1:8000"
api_endpoint="http://localhost:8000/api"

initialized = "${TERRAPHIM_INITIALIZED:-false}"
[profiles.sled]
type = "sled"
datadir= "/tmp/sled"
1 change: 1 addition & 0 deletions crates/terraphim_settings/default/settings_full.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
server_hostname = "127.0.0.1:8000"
api_endpoint="http://localhost:8000/api"
initialized = "${TERRAPHIM_INITIALIZED:-false}"

[profiles.s3]
type = "s3"
Expand Down
2 changes: 1 addition & 1 deletion crates/terraphim_settings/default/settings_local.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server_hostname = "${TERRAPHIM_SERVER_HOSTNAME:-127.0.0.1:8000}"

api_endpoint = "${TERRAPHIM_SERVER_API_ENDPOINT:-http://localhost:8000/api}"
initialized = "${TERRAPHIM_INITIALIZED:-false}"

[profiles.sled]
type = "sled"
Expand Down
Loading

0 comments on commit e5e7341

Please sign in to comment.