Skip to content

Commit

Permalink
Add a tip on plaintext
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMorrow committed Nov 15, 2024
1 parent b2f3b51 commit 1d9c08e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<Card Type="Card.CardType.Filled" class="mx-6 mb-4">
<div>
This feature allows you to export your data in a plain text format such as CSV for use in other applications.
This feature allows you to export your data in a plaintext format such as CSV for use in other applications.
It is not intended for backup purposes. For backups, please use the backup feature.
LiftLog cannot restore data from plain text exports.
LiftLog cannot restore data from plaintext exports.
</div>
<AppButton OnClick="OpenDocumentation" Type="AppButtonType.Text">Read Documentation</AppButton>
</Card>
Expand All @@ -31,7 +31,7 @@

protected override void OnInitialized()
{
Dispatcher.Dispatch(new SetPageTitleAction("Plain Text Export"));
Dispatcher.Dispatch(new SetPageTitleAction("Plaintext Export"));
Dispatcher.Dispatch(new SetBackNavigationUrlAction("/settings/backup-and-restore"));
base.OnInitialized();
}
Expand Down
4 changes: 2 additions & 2 deletions LiftLog.Ui/Pages/Settings/BackupAndRestorePage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
</md-list-item>
<md-list-item type="button" class="text-left" multi-line-supporting-text @onclick="PlainTextExport">
<md-icon slot="start">description</md-icon>
<span slot="headline">Plain text export</span>
<span slot="supporting-text">Export your data in a plain text format such as CSV for use in other applications</span>
<span slot="headline">Plaintext export</span>
<span slot="supporting-text">Export your data in a plaintext format such as CSV for use in other applications</span>
</md-list-item>
</md-list>

Expand Down
3 changes: 3 additions & 0 deletions LiftLog.Ui/Shared/Smart/Tips/PlainTextExportTip.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="flex flex-col gap-2">
<span>LiftLog supports exporting your data as a CSV! Simply navigate to <span class="text-primary">Settings -> Export -> Plaintext Export</span></span>
</div>
5 changes: 4 additions & 1 deletion LiftLog.Ui/Shared/Smart/Tips/Tips.razor
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@
case 9:
<HoldingRepCounterTip/>
break;
case 10:
<PlainTextExportTip/>
break;
}
</Card>
}

@code
{
private static readonly int totalTips = 9;
private static readonly int totalTips = 10;

private void HandleNextClick()
{
Expand Down
2 changes: 1 addition & 1 deletion release_notes/whatsnew-en-AU
Original file line number Diff line number Diff line change
@@ -1 +1 @@
LiftLog can now export your data in plain text as a CSV!
LiftLog can now export your data in plaintext as a CSV!

0 comments on commit 1d9c08e

Please sign in to comment.