Skip to content

Commit

Permalink
0.5.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FireCubeStudios committed Jan 28, 2025
1 parent 2bc1971 commit aa5e056
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 23 deletions.
16 changes: 16 additions & 0 deletions DarkSky.Core/Classes/SavedFeedPreference.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace DarkSky.Core.Classes
{
/*
* Represents the user's saved feeds, lists and timeline from SavedFeedsPrefV2
* Retrieved from this API https://docs.bsky.app/docs/api/app-bsky-actor-get-preferences
*/
public class SavedFeedPreference
{
public string Name { get; set; }

}
}
1 change: 1 addition & 0 deletions DarkSky.Core/ViewModels/HomeFeedViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ private async void Setup(Session session)
if ((bool)item.Pinned && item.TypeValue == "feed")
{
var f = (await atProtoService.ATProtocolClient.Feed.GetFeedGeneratorAsync(new ATUri(item.Value))).AsT0;

Feeds.Add(new CursorNavigationItem(f.View.DisplayName, new FeedCursorSource(item.Value)));
}
else if ((bool)item.Pinned && item.TypeValue == "list")
Expand Down
2 changes: 1 addition & 1 deletion DarkSky/DarkSky.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<LangVersion>9.0</LangVersion>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<AppxPackageSigningEnabled>False</AppxPackageSigningEnabled>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
Expand Down
2 changes: 1 addition & 1 deletion DarkSky/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<icons:FluentIconElement Symbol="Chat24" />
</muxc:NavigationViewItem.Icon>
</muxc:NavigationViewItem>
<muxc:NavigationViewItem Content="Feeds">
<muxc:NavigationViewItem Content="Feeds" Visibility="Collapsed">
<muxc:NavigationViewItem.Icon>
<icons:FluentIconElement Symbol="BroadActivityFeed24" />
</muxc:NavigationViewItem.Icon>
Expand Down
2 changes: 1 addition & 1 deletion DarkSky/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="2505FireCubeStudios.Darksky"
Publisher="CN=3C7C8FC9-7104-4B33-8730-EE1E929D5D3B"
Version="0.4.16.0" />
Version="0.5.17.0" />

<mp:PhoneIdentity PhoneProductId="6916ad9d-61d4-4569-a8b0-d65d9cdfb407" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down
32 changes: 13 additions & 19 deletions DarkSky/Views/FeedsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
xmlns:local="using:DarkSky.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:toolkit="using:Microsoft.Toolkit.Uwp.UI.Controls"
xmlns:toolkit="using:Microsoft.Toolkit.Uwp.UI.Controls" xmlns:classes="using:DarkSky.Core.Classes"
muxc:BackdropMaterial.ApplyToRootOrPageBackground="True"
NavigationCacheMode="Enabled"
mc:Ignorable="d">
<Grid>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="36" />
<RowDefinition Height="50"/>
<RowDefinition Height="50" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid
Grid.Row="0"
Height="49"
Padding="16,8,12,8">
Padding="16,8,12,8"
BorderThickness="0, 0, 0, 1" BorderBrush="{ThemeResource MicaBorderBrush}">
<StackPanel
VerticalAlignment="Center"
Orientation="Horizontal"
Expand All @@ -34,7 +34,7 @@
<TextBlock
VerticalAlignment="Bottom"
Opacity="0.7"
Text="View your saved feeds and discover new ones!" />
Text="Manage your saved feeds and lists." />
</StackPanel>
<Button
HorizontalAlignment="Right"
Expand All @@ -44,20 +44,14 @@
<icons:FluentSymbolIcon Symbol="Add20" />
</Button>
</Grid>
<Grid Grid.Row="1" BorderThickness="0, 0, 0, 1" BorderBrush="{ThemeResource MicaBorderBrush}">
<muxc:NavigationView
Grid.Row="2"
Grid.Column="0"
Grid.ColumnSpan="2"
Height="48"
IsBackButtonVisible="Collapsed"
IsSettingsVisible="False"
PaneDisplayMode="Top">
<muxc:NavigationView.MenuItems>
<muxc:NavigationViewItem Content="My feeds"/>
<muxc:NavigationViewItem Content="Suggested feeds"/>
</muxc:NavigationView.MenuItems>
</muxc:NavigationView>
<Grid Grid.Row="1">
<ListView>
<ListView.ItemTemplate>
<DataTemplate x:DataType="classes:SavedFeedPreference">
<Grid></Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</Grid>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion DarkSky/Views/SettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
FontSize="20"
FontWeight="SemiBold"
Opacity="0.7">
v0.4.16
v0.5.17
</TextBlock>
</StackPanel>
<TextBlock
Expand Down

0 comments on commit aa5e056

Please sign in to comment.