Skip to content
Merged
6 changes: 5 additions & 1 deletion WSIST/WSIST.Web/Components/Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<p class="empty-state-icon">📋</p>
<p class="empty-state-title">@localizer["Home_NoUpcomingTitle"]</p>
<p class="empty-state-sub">@localizer["Home_NoUpcomingSub"]</p>
<button class="button-primary button-accent" style="margin-top: 8px;" @onclick="OpenAddTestModal">
+ @localizer["Home_AddTest"]
</button>
</div>
}
else
Expand Down Expand Up @@ -207,7 +210,7 @@
<form @onsubmit="ModalSubmit">
<div class="form-group">
<label>@localizer["Modal_Title"]</label>
<input type="text" @bind="@temporaryTest.Title" placeholder="@localizer["Modal_TitlePlaceholder"]"/>
<input type="text" @bind="@temporaryTest.Title" placeholder="@localizer["Modal_TitlePlaceholder"]" required/>
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
</div>
<div class="form-group">
<label>@localizer["Modal_Subject"]</label>
Expand Down Expand Up @@ -262,6 +265,7 @@
<div class="form-group">
<label>@localizer["Modal_Grade"] @(temporaryTest.DueDate > DateOnly.FromDateTime(DateTime.Today) ? localizer["Modal_GradeAfterDate"].Value : "")</label>
<input type="number" min="1" max="6" step="0.1"
placeholder="1.0 – 6.0"
@bind="temporaryTest.Grade"
disabled="@(temporaryTest.DueDate > DateOnly.FromDateTime(DateTime.Today))"/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion WSIST/WSIST.Web/Components/Pages/Home.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
NavigationManager navigation,
PriorityCalculator calculator,
IStringLocalizer<SharedResource> localizer
) : AuthenticatedComponentBase(management, authStateProvider, navigation)

Check warning on line 14 in WSIST/WSIST.Web/Components/Pages/Home.razor.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Parameter 'TestManagement management' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.

Check warning on line 14 in WSIST/WSIST.Web/Components/Pages/Home.razor.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Parameter 'TestManagement management' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
{
private List<Test> allTests = [];
private List<Test> tests = [];
Expand Down Expand Up @@ -113,7 +113,7 @@

public void OpenAddTestModal()
{
temporaryTest = new Test { Title = "Some Test" };
temporaryTest = new Test { Title = string.Empty };
Mode = Modes.AddTest;
temporaryTest.DueDate = DateOnly.FromDateTime(DateTime.Today);
// Default to a real subject rather than the int default (0), which is
Expand Down
12 changes: 11 additions & 1 deletion WSIST/WSIST.Web/Components/Pages/Login.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
@layout EmptyLayout
@using WSIST.Web.Components.Layout
@inject IStringLocalizer<SharedResource> Localizer
<PageTitle>WSIST — @Localizer["Landing_HeroLine1"] @Localizer["Landing_HeroLine2Pre"]@Localizer["Landing_HeroLine2Em"]</PageTitle>
<PageTitle>WSIST — What Should I Study Today?</PageTitle>
<HeadContent>
<meta name="description" content="WSIST scores every upcoming test by urgency, volume, your understanding and your grades — then tells you exactly what to study today. Free, built in Zürich." />
<meta property="og:title" content="WSIST — What Should I Study Today?" />
<meta property="og:description" content="Every test scored out of 40. The highest score studies first." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://wsist.ch" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="WSIST — What Should I Study Today?" />
<meta name="twitter:description" content="Every test scored out of 40. The highest score studies first." />
</HeadContent>

<div class="landing">

Expand Down
2 changes: 1 addition & 1 deletion WSIST/WSIST.Web/Components/Pages/Privacy.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout EmptyLayout
@using WSIST.Web.Components.Layout
@inject IStringLocalizer<SharedResource> Localizer
<PageTitle>@Localizer["Privacy_Title"] – WSIST</PageTitle>
<PageTitle>Privacy Policy – WSIST</PageTitle>

<div class="legal-page">
<nav class="landing-nav">
Expand Down
2 changes: 2 additions & 0 deletions WSIST/WSIST.Web/Components/Pages/Study.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
NavigationManager navigation,
PriorityCalculator calculator,
IStringLocalizer<SharedResource> localizer
) : AuthenticatedComponentBase(management, authStateProvider, navigation)

Check warning on line 15 in WSIST/WSIST.Web/Components/Pages/Study.razor.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Parameter 'TestManagement management' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.

Check warning on line 15 in WSIST/WSIST.Web/Components/Pages/Study.razor.cs

View workflow job for this annotation

GitHub Actions / build-and-test

Parameter 'TestManagement management' is captured into the state of the enclosing type and its value is also passed to the base constructor. The value might be captured by the base class as well.
{
private List<Test> allTests = [];
private List<Test> recommendations = [];
Expand Down Expand Up @@ -124,6 +124,8 @@
days == 1 ? localizer["Because_InOneDay"] : localizer["Because_InDaysFmt", days],
};

// The average grade line represents the grade pull scoring factor.
// When avgGrade > 0, grade pull contributes +2/+4/+6 to the total score.
if (avgGrade > 0)
parts.Add(localizer["Because_AvgGradeFmt", subjectName, avgGrade.ToString("F1")]);

Expand Down
2 changes: 1 addition & 1 deletion WSIST/WSIST.Web/Components/Pages/Terms.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@layout EmptyLayout
@using WSIST.Web.Components.Layout
@inject IStringLocalizer<SharedResource> Localizer
<PageTitle>@Localizer["Terms_Title"] – WSIST</PageTitle>
<PageTitle>Terms of Use – WSIST</PageTitle>

<div class="legal-page">
<nav class="landing-nav">
Expand Down
2 changes: 1 addition & 1 deletion WSIST/WSIST.Web/Resources/SharedResource.de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
&lt;p&gt;&lt;strong&gt;Google OAuth:&lt;/strong&gt; Die Anmeldung erfolgt über Googles OAuth-2.0-Dienst. Bei der Authentifizierung teilt Google deine Profildaten mit uns, wie in Abschnitt 2 beschrieben. Für den Authentifizierungsvorgang gilt Googles eigene Datenschutzerklärung: &lt;a href="https://policies.google.com/privacy" target="_blank" rel="noopener"&gt;policies.google.com/privacy&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cloudflare:&lt;/strong&gt; Die Anwendung wird über das CDN und den Tunnel von Cloudflare ausgeliefert. Cloudflare verarbeitet im Rahmen seines Dienstes möglicherweise Verbindungsmetadaten (IP-Adresse, Anfrage-Header). Datenschutzerklärung von Cloudflare: &lt;a href="https://www.cloudflare.com/privacypolicy/" target="_blank" rel="noopener"&gt;cloudflare.com/privacypolicy&lt;/a&gt;.&lt;/p&gt;</value></data>
<data name="Privacy_Sec6" xml:space="preserve"><value>&lt;h2&gt;6. Speicherdauer&lt;/h2&gt;
&lt;p&gt;Deine Daten werden so lange gespeichert, wie du ein aktives Konto hast. Wenn du dein Konto und alle zugehörigen Daten löschen möchtest, kontaktiere uns unter &lt;a href="mailto:privacy@wsist.ch"&gt;privacy@wsist.ch&lt;/a&gt;, und wir löschen sie innerhalb von 30 Tagen.&lt;/p&gt;</value></data>
&lt;p&gt;Deine Daten werden so lange gespeichert, wie du ein aktives Konto hast. Du kannst dein Konto und alle zugehörigen Daten jederzeit über &lt;strong&gt;Einstellungen → Konto löschen&lt;/strong&gt; in der App löschen. Du kannst uns auch unter &lt;a href="mailto:privacy@wsist.ch"&gt;privacy@wsist.ch&lt;/a&gt; kontaktieren, und wir löschen sie innerhalb von 30 Tagen.&lt;/p&gt;</value></data>
<data name="Privacy_Sec7" xml:space="preserve"><value>&lt;h2&gt;7. Deine Rechte&lt;/h2&gt;
&lt;p&gt;Nach DSGVO und Schweizer nDSG hast du die folgenden Rechte:&lt;/p&gt;
&lt;ul&gt;
Expand Down
2 changes: 1 addition & 1 deletion WSIST/WSIST.Web/Resources/SharedResource.resx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
&lt;p&gt;&lt;strong&gt;Google OAuth:&lt;/strong&gt; Login is handled via Google's OAuth 2.0 service. When you authenticate, Google shares your profile data with us as described in section 2. Google's own privacy policy applies to the authentication process: &lt;a href="https://policies.google.com/privacy" target="_blank" rel="noopener"&gt;policies.google.com/privacy&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cloudflare:&lt;/strong&gt; The application is served behind Cloudflare's CDN and Tunnel. Cloudflare may process connection metadata (IP address, request headers) as part of its service. Cloudflare's privacy policy: &lt;a href="https://www.cloudflare.com/privacypolicy/" target="_blank" rel="noopener"&gt;cloudflare.com/privacypolicy&lt;/a&gt;.&lt;/p&gt;</value></data>
<data name="Privacy_Sec6" xml:space="preserve"><value>&lt;h2&gt;6. Data retention&lt;/h2&gt;
&lt;p&gt;Your data is retained for as long as you have an active account. If you wish to delete your account and all associated data, contact us at &lt;a href="mailto:privacy@wsist.ch"&gt;privacy@wsist.ch&lt;/a&gt; and we will delete it within 30 days.&lt;/p&gt;</value></data>
&lt;p&gt;Your data is retained for as long as you have an active account. You can delete your account and all associated data at any time via &lt;strong&gt;Settings → Delete account&lt;/strong&gt; inside the app. You can also contact us at &lt;a href="mailto:privacy@wsist.ch"&gt;privacy@wsist.ch&lt;/a&gt; and we will delete it within 30 days.&lt;/p&gt;</value></data>
<data name="Privacy_Sec7" xml:space="preserve"><value>&lt;h2&gt;7. Your rights&lt;/h2&gt;
&lt;p&gt;Under the GDPR and Swiss nDSG, you have the following rights:&lt;/p&gt;
&lt;ul&gt;
Expand Down
Loading