LinkedIn tokens last 60 days and can't be renewed without signing in again. The expiry LinkedIn reports is now recorded (60 days from sign-in for older connections). The LinkedIn card says until when; from two weeks before, the Overview, the Inbox and the card remind you, with a Reconnect button. Once expired, LinkedIn counts as not connected, due posts come back to the Inbox saying why, and a 401 from LinkedIn reads "reconnect LinkedIn" instead of the raw error. Also fixes a leftover "Settings → Credentials" in a publish error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
62 lines
1.9 KiB
HTML
62 lines
1.9 KiB
HTML
{{define "content"}}{{$inbox := .Inbox}}{{with .Data}}
|
|
<div class="page-head">
|
|
<h1>Overview</h1>
|
|
<p class="lede">Supermarket's modules, and what's left to set up.</p>
|
|
</div>
|
|
{{template "reminders" .Reminders}}
|
|
|
|
<div class="grid">
|
|
{{range .Modules}}
|
|
{{if .Link}}
|
|
<a class="card module" href="{{.Link}}">
|
|
<h3>{{template "icon" .ID}}{{.Name}} <span class="badge">{{.Phase}}</span></h3>
|
|
<p>{{.Body}}</p>
|
|
{{if eq .ID "content"}}<span class="stat">{{if $inbox}}{{$inbox}} waiting in the Inbox{{else}}Inbox empty{{end}}{{with $.Data.Scheduled}} · {{.}} scheduled{{end}}</span>{{end}}
|
|
</a>
|
|
{{else}}
|
|
<section class="card module later">
|
|
<h3>{{template "icon" .ID}}{{.Name}} <span class="badge">{{.Phase}}</span></h3>
|
|
<p>{{.Body}}</p>
|
|
</section>
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
|
|
{{if .Pending}}
|
|
<section class="card">
|
|
<h2>Setup</h2>
|
|
<ul class="steps">
|
|
{{range .Steps}}
|
|
<li class="{{if .Done}}done{{else}}todo{{end}}">
|
|
<a href="{{.Link}}"><strong>{{.Label}}</strong></a>
|
|
<span>{{.Detail}}</span>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</section>
|
|
{{else}}
|
|
<details class="card">
|
|
<summary>Setup: all done</summary>
|
|
<ul class="steps">
|
|
{{range .Steps}}
|
|
<li class="done"><a href="{{.Link}}"><strong>{{.Label}}</strong></a><span>{{.Detail}}</span></li>
|
|
{{end}}
|
|
</ul>
|
|
</details>
|
|
{{end}}
|
|
|
|
{{if .ImportErr}}
|
|
<section class="card warn">
|
|
<h2>Import from the old app failed</h2>
|
|
<p>{{.ImportErr}}</p>
|
|
<p>The old files are untouched in the data folder's <code>import/</code> directory. Fix the file named above and restart Supermarket (<code>supermarket restart</code>) to try again.</p>
|
|
</section>
|
|
{{else if .ImportStatus}}
|
|
<details class="card">
|
|
<summary>Imported from the old terminal app {{ago .ImportStatus.At}}</summary>
|
|
<ul>{{range .ImportStatus.Summary}}<li>{{.}}</li>{{end}}</ul>
|
|
{{if .QueuedPosts}}<p>Its queued posts are now drafts: <a href="/inbox">{{.QueuedPosts}} waiting in the Inbox</a>.</p>{{end}}
|
|
</details>
|
|
{{end}}
|
|
{{end}}{{end}}
|