Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 2680ace

Browse files
committed
last adjustments for 2.0.0
1 parent 8cab999 commit 2680ace

File tree

6 files changed

+36
-11
lines changed

6 files changed

+36
-11
lines changed

docs/docs/changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 2.0.0
2+
### Shiny new things
3+
- New style for navBar & "new row" button [ISSUE#206](https://github.com/RafaelGB/obsidian-db-folder/issues/206). Now the name of your ddbb is displayed in the navBar. To change it, just edit it into the settings.
4+
### Improved
5+
- Strategy of the filtering modifications. See more in this discussion [DISCUSSION#225](https://github.com/RafaelGB/obsidian-db-folder/discussions/225)
6+
7+
### Visual
8+
- row template selector dark mode support [ISSUE#177](https://github.com/RafaelGB/obsidian-db-folder/issues/177)
9+
- Improve the empty template width [ISSUE#175](https://github.com/RafaelGB/obsidian-db-folder/issues/175)
10+
- Empty calendar cells will not show placeholder message. Just when are selected. [ISSUE#159](https://github.com/RafaelGB/obsidian-db-folder/issues/159)
11+
### No longer broken
12+
- Controling the duplicated columns using the file template option to create them. [ISSUE#224](https://github.com/RafaelGB/obsidian-db-folder/issues/224)
113
# 2.0.0-beta.4
214
### Improved
315
- Resizing do not move the column. It has its own slider

manifest-beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "2.0.0-beta.4",
4+
"version": "2.0.0",
55
"minAppVersion": "0.15.4",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"id": "dbfolder",
33
"name": "DB Folder",
4-
"version": "1.8.2",
5-
"minAppVersion": "0.14.8",
4+
"version": "2.0.0",
5+
"minAppVersion": "0.15.4",
66
"description": "Folder with the capability to store and retrieve data from a folder like database",
77
"author": "RafaelGB",
88
"authorUrl": "https://github.com/RafaelGB/obsidian-bd-folder",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-dbfolder",
3-
"version": "1.8.2",
3+
"version": "2.0.0",
44
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
55
"main": "main.js",
66
"scripts": {
@@ -63,7 +63,7 @@
6363
"react-dom": "18.2.0",
6464
"react-csv": "2.2.2",
6565
"react-popper": "2.3.0",
66-
"@tanstack/react-table": "8.3.6",
66+
"@tanstack/react-table": "8.5.1",
6767
"@tanstack/match-sorter-utils": "8.1.1",
6868
"react-select": "5.4.0",
6969
"react-color": "2.19.3",

src/components/Table.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,18 @@ export function Table(tableData: TableDataType) {
440440
<Select
441441
styles={CustomTemplateSelectorStyles}
442442
options={rowTemplatesOptions}
443-
value={{
444-
label: rowTemplateState,
445-
value: rowTemplateState,
446-
}}
443+
value={
444+
rowTemplateState
445+
? {
446+
label: rowTemplateState,
447+
value: rowTemplateState,
448+
}
449+
: null
450+
}
447451
isClearable={true}
448452
isMulti={false}
449453
onChange={handleChangeRowTemplate}
450-
placeholder={<div>Without template. Select one to use...</div>}
454+
placeholder={"Without template. Select one to use..."}
451455
menuPortalTarget={document.body}
452456
menuShouldBlockScroll={true}
453457
isSearchable

src/components/styles/RowTemplateStyles.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
import { GroupBase, StylesConfig } from "react-select";
22

33
const CustomTemplateSelectorStyles: StylesConfig<any, true, GroupBase<any>> = {
4+
singleValue: (styles) => ({
5+
...styles,
6+
color: 'var(--text-normal)',
7+
}),
8+
49
option: (styles, { data, isDisabled, isFocused, isSelected }) => {
510
return {
611
...styles,
12+
color: 'var(--text-normal)',
13+
backgroundColor: 'var(--background-primary)',
714
fontSize: '12px',
815
textAlign: 'left',
916
width: 'auto',
1017
}
1118
},
12-
placeholder: (styles) => {
19+
control: (styles) => {
1320
return {
1421
...styles,
22+
color: 'var(--text-normal)',
23+
backgroundColor: 'var(--background-primary)',
1524
fontSize: '12px',
1625
textAlign: 'left',
1726
minWidth: '17rem',

0 commit comments

Comments
 (0)