Move metadata configuration features from Pro to Basic

Configuring how the metadata should be saved really seems like more of a
basic feature as it allows you test GitJournal's compatibility with your
favorite desktop client or for static website generation.
This commit is contained in:
Vishesh Handa
2020-10-05 11:47:09 +02:00
parent 1a74955e99
commit cca83ffd4a
3 changed files with 66 additions and 77 deletions

View File

@ -3,6 +3,7 @@
improvements: improvements:
- text: "Allow SSH Keys to be loaded from the FS - #74" - text: "Allow SSH Keys to be loaded from the FS - #74"
image: ssh_key_file.jpeg image: ssh_key_file.jpeg
- text: "Move metadata configuration features from Pro to Basic"
bugs: bugs:
- text: "Dark Theme: Render checkboxes in a lighter color" - text: "Dark Theme: Render checkboxes in a lighter color"
- text: "Fix Relative Parent links not working - #256" - text: "Fix Relative Parent links not working - #256"

View File

@ -127,7 +127,7 @@ class Feature {
DateTime(2020, 01, 05), DateTime(2020, 01, 05),
tr("feature.yamlModifiedKey"), tr("feature.yamlModifiedKey"),
"", "",
true, false,
); );
static final noteSorting = Feature( static final noteSorting = Feature(
@ -287,7 +287,7 @@ class Feature {
DateTime(2020, 07, 30), DateTime(2020, 07, 30),
tr("feature.metaDataTitle"), tr("feature.metaDataTitle"),
"", "",
true, false,
); );
static final yamlCreatedKey = Feature( static final yamlCreatedKey = Feature(
@ -295,7 +295,7 @@ class Feature {
DateTime(2020, 08, 02), DateTime(2020, 08, 02),
tr("feature.yamlCreatedKey"), tr("feature.yamlCreatedKey"),
"", "",
true, false,
); );
static final yamlTagsKey = Feature( static final yamlTagsKey = Feature(
@ -303,7 +303,7 @@ class Feature {
DateTime(2020, 08, 06), DateTime(2020, 08, 06),
tr("feature.yamlTagsKey"), tr("feature.yamlTagsKey"),
"", "",
true, false,
); );
static final customMetaData = Feature( static final customMetaData = Feature(

View File

@ -88,9 +88,7 @@ class _NoteMetadataSettingsScreenState
}); });
}, },
), ),
ProOverlay( ListPreference(
feature: Feature.yamlModifiedKey,
child: ListPreference(
title: tr("settings.noteMetaData.modified"), title: tr("settings.noteMetaData.modified"),
options: [ options: [
"modified", "modified",
@ -107,10 +105,7 @@ class _NoteMetadataSettingsScreenState
}, },
enabled: settings.yamlHeaderEnabled, enabled: settings.yamlHeaderEnabled,
), ),
), ListPreference(
ProOverlay(
feature: Feature.yamlCreatedKey,
child: ListPreference(
title: tr("settings.noteMetaData.created"), title: tr("settings.noteMetaData.created"),
options: [ options: [
"created", "created",
@ -125,10 +120,7 @@ class _NoteMetadataSettingsScreenState
}, },
enabled: settings.yamlHeaderEnabled, enabled: settings.yamlHeaderEnabled,
), ),
), ListPreference(
ProOverlay(
feature: Feature.yamlTagsKey,
child: ListPreference(
title: tr("settings.noteMetaData.tags"), title: tr("settings.noteMetaData.tags"),
options: [ options: [
"tags", "tags",
@ -143,10 +135,7 @@ class _NoteMetadataSettingsScreenState
}, },
enabled: settings.yamlHeaderEnabled, enabled: settings.yamlHeaderEnabled,
), ),
), ListPreference(
ProOverlay(
feature: Feature.metaDataTitle,
child: ListPreference(
title: tr("settings.noteMetaData.titleMetaData.title"), title: tr("settings.noteMetaData.titleMetaData.title"),
options: [ options: [
tr("settings.noteMetaData.titleMetaData.fromH1"), tr("settings.noteMetaData.titleMetaData.fromH1"),
@ -164,7 +153,6 @@ class _NoteMetadataSettingsScreenState
}); });
}, },
), ),
),
ProOverlay( ProOverlay(
feature: Feature.customMetaData, feature: Feature.customMetaData,
child: CustomMetDataTile( child: CustomMetDataTile(