@meaningfully/ui 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/App.svelte +9 -4
- package/dist/components/ApiKeyPage.svelte +1 -1
- package/dist/components/ApiKeyPage.svelte.d.ts +1 -1
- package/dist/components/ApiKeyStatus.svelte +2 -2
- package/dist/components/ExistingDatabases.svelte +1 -1
- package/dist/components/HelpPage.svelte +2 -2
- package/dist/components/SearchPage.svelte +1 -1
- package/dist/components/SearchPage.svelte.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
# meaningfully-ui
|
|
2
2
|
|
|
3
|
-
This is a library of UI components for [meaningfully](https://www.github.com/jeremybmerrill/meaningfully), which is an app (or collection of apps!) for semantic search over spreadsheets. See the main repo URL for more discussion.
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
This is a library of UI components for [meaningfully](https://www.github.com/jeremybmerrill/meaningfully), which is an app (or collection of apps!) for semantic search over spreadsheets. See the main repo URL for more discussion.
|
package/dist/App.svelte
CHANGED
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
basePath: string;
|
|
15
15
|
}
|
|
16
16
|
let { api, basePath }: Props = $props();
|
|
17
|
-
|
|
18
|
-
let
|
|
17
|
+
|
|
18
|
+
let basepath = $state(basePath || '');
|
|
19
|
+
console.log("basepath App", basepath);
|
|
20
|
+
let url = $state('');
|
|
19
21
|
// Ensure $state returns Settings | null
|
|
20
22
|
let settings = $state<Settings | null>(null);
|
|
21
23
|
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
|
|
44
46
|
<!-- <img alt="logo" class="logo" src={electronLogo} /> -->
|
|
45
47
|
|
|
46
|
-
<Router url={url} >
|
|
48
|
+
<Router url={url} basepath={basepath}>
|
|
47
49
|
<Link to="/">
|
|
48
50
|
<h1 class="text-2xl font-bold">
|
|
49
51
|
Meaningfully
|
|
@@ -68,7 +70,9 @@
|
|
|
68
70
|
<Route path="search/:id" let:params>
|
|
69
71
|
<SearchPage validApiKeysSet={validApiKeysSet} documentSetId={Number(params.id)} api={api} />
|
|
70
72
|
</Route>
|
|
71
|
-
<Route path="help"
|
|
73
|
+
<Route path="help">
|
|
74
|
+
<HelpPage />
|
|
75
|
+
</Route>
|
|
72
76
|
<Route path="settings">
|
|
73
77
|
{#if settings}
|
|
74
78
|
<ApiKeyPage settings={settings} settingsUpdated={() => getSettings() } api={api} />
|
|
@@ -80,6 +84,7 @@
|
|
|
80
84
|
<Link to="" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">Home</Link>
|
|
81
85
|
<Link to="help" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">Help</Link>
|
|
82
86
|
<Link to="settings" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">Settings / API Keys</Link>
|
|
87
|
+
<a href="https://github.com/jeremybmerrill/meaningfully" target="_blank" class="nav-link underline text-blue-600 hover:text-blue-800 visited:text-purple-600">GitHub</a>
|
|
83
88
|
<span class="nav-link creator">Built with ✨ by Jeremy</span>
|
|
84
89
|
<span class="nav-link">© 2025</span>
|
|
85
90
|
</nav>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
{#if !validApiKeysSet }
|
|
12
12
|
<div class="alert alert-warning" data-testid="api-key-status">
|
|
13
|
-
<p>No OpenAI API key is set. Please <Link to="
|
|
13
|
+
<p>No OpenAI API key is set. Please <Link to="settings" class="text-blue text-decoration-line"><span class="text-blue text-decoration-line">add one</span></Link> (or details for another provider) in order to use Meaningfully.</p>
|
|
14
14
|
</div>
|
|
15
15
|
{/if}
|
|
16
16
|
|
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
cursor: pointer;
|
|
36
36
|
font-weight: bold;
|
|
37
37
|
}
|
|
38
|
-
</style>
|
|
38
|
+
</style>
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
</p>
|
|
25
25
|
</section>
|
|
26
26
|
<section>
|
|
27
|
-
<h2> a CSV</h2>
|
|
27
|
+
<h2>Upload a CSV</h2>
|
|
28
28
|
<p>
|
|
29
29
|
You can select a CSV from your computer to "upload" it to Meaningfully. Then, select one column
|
|
30
30
|
from the CSV to search semantically, and any number of other columns to be shown alongside it in results.
|
|
31
31
|
</p>
|
|
32
32
|
<p>
|
|
33
33
|
Once you upload the CSV, each entry in the chosen column will be embedded, with the results stored on your
|
|
34
|
-
computer. If you choose a remote embedding API
|
|
34
|
+
computer. If you choose a remote embedding API (like OpenAI's text-embedding-small or text-embedding-large)
|
|
35
35
|
then the entries in your column will be sent
|
|
36
36
|
to that service; if you choose a local one, then the data will not leave your computer.
|
|
37
37
|
</p>
|