Skip to content

Commit

Permalink
last adjustments for 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Jul 27, 2022
1 parent 8cab999 commit 2680ace
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 11 deletions.
12 changes: 12 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# 2.0.0
### Shiny new things
- 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.
### Improved
- Strategy of the filtering modifications. See more in this discussion [DISCUSSION#225](https://github.com/RafaelGB/obsidian-db-folder/discussions/225)

### Visual
- row template selector dark mode support [ISSUE#177](https://github.com/RafaelGB/obsidian-db-folder/issues/177)
- Improve the empty template width [ISSUE#175](https://github.com/RafaelGB/obsidian-db-folder/issues/175)
- Empty calendar cells will not show placeholder message. Just when are selected. [ISSUE#159](https://github.com/RafaelGB/obsidian-db-folder/issues/159)
### No longer broken
- Controling the duplicated columns using the file template option to create them. [ISSUE#224](https://github.com/RafaelGB/obsidian-db-folder/issues/224)
# 2.0.0-beta.4
### Improved
- Resizing do not move the column. It has its own slider
Expand Down
2 changes: 1 addition & 1 deletion manifest-beta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "2.0.0-beta.4",
"version": "2.0.0",
"minAppVersion": "0.15.4",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "dbfolder",
"name": "DB Folder",
"version": "1.8.2",
"minAppVersion": "0.14.8",
"version": "2.0.0",
"minAppVersion": "0.15.4",
"description": "Folder with the capability to store and retrieve data from a folder like database",
"author": "RafaelGB",
"authorUrl": "https://github.com/RafaelGB/obsidian-bd-folder",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-dbfolder",
"version": "1.8.2",
"version": "2.0.0",
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
"main": "main.js",
"scripts": {
Expand Down Expand Up @@ -63,7 +63,7 @@
"react-dom": "18.2.0",
"react-csv": "2.2.2",
"react-popper": "2.3.0",
"@tanstack/react-table": "8.3.6",
"@tanstack/react-table": "8.5.1",
"@tanstack/match-sorter-utils": "8.1.1",
"react-select": "5.4.0",
"react-color": "2.19.3",
Expand Down
14 changes: 9 additions & 5 deletions src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -440,14 +440,18 @@ export function Table(tableData: TableDataType) {
<Select
styles={CustomTemplateSelectorStyles}
options={rowTemplatesOptions}
value={{
label: rowTemplateState,
value: rowTemplateState,
}}
value={
rowTemplateState
? {
label: rowTemplateState,
value: rowTemplateState,
}
: null
}
isClearable={true}
isMulti={false}
onChange={handleChangeRowTemplate}
placeholder={<div>Without template. Select one to use...</div>}
placeholder={"Without template. Select one to use..."}
menuPortalTarget={document.body}
menuShouldBlockScroll={true}
isSearchable
Expand Down
11 changes: 10 additions & 1 deletion src/components/styles/RowTemplateStyles.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
import { GroupBase, StylesConfig } from "react-select";

const CustomTemplateSelectorStyles: StylesConfig<any, true, GroupBase<any>> = {
singleValue: (styles) => ({
...styles,
color: 'var(--text-normal)',
}),

option: (styles, { data, isDisabled, isFocused, isSelected }) => {
return {
...styles,
color: 'var(--text-normal)',
backgroundColor: 'var(--background-primary)',
fontSize: '12px',
textAlign: 'left',
width: 'auto',
}
},
placeholder: (styles) => {
control: (styles) => {
return {
...styles,
color: 'var(--text-normal)',
backgroundColor: 'var(--background-primary)',
fontSize: '12px',
textAlign: 'left',
minWidth: '17rem',
Expand Down

0 comments on commit 2680ace

Please sign in to comment.