feat(app)!: no anonymous accounts on the device (ADR 0020, D4, D25)
Every account has a way in, so the apps make no anonymous account any more. The start screen shows whenever nobody is signed in, a first start included, and offers SimpleLogin, a password and GitHub for those who have it, with no start without an account. An instance out of reach is said so, with Try again, and one offering no way to create an account too. An anonymous account's session left from before is deleted as the app starts (D25), falling back to signing out on the device. What only anonymous accounts needed goes: signing in anonymously, the signed-out mark, adding GitHub to an account and switching to a GitHub account from the Profile tab (with its Cancel, the only one), an anonymous device's own keys, the warning that signing out deletes the account, and the texts about keeping progress. Settings says on which instance the account is signed in. Learn's publishing, reports and suggestions and its learner count no longer ask whether the person has an identity: everyone signed in has one. The server still offers anonymous sign-in until the next commit, so older apps keep working until v0.20.0 raises the minimum build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
fad12b4411
commit
5b9df73756
1 changed files with 981 additions and 3339 deletions
|
|
@ -96,7 +96,6 @@ void main() {
|
|||
Future<void> showExplore(
|
||||
WidgetTester tester,
|
||||
FakeExploreGateway explore, {
|
||||
bool identified = true,
|
||||
FakeProfileGateway? profiles,
|
||||
FakeCardGateway? cards,
|
||||
}) async {
|
||||
|
|
@ -107,9 +106,9 @@ void main() {
|
|||
tester,
|
||||
testDependencies(
|
||||
authGateway: FakeAuthGateway(
|
||||
status: SignedIn(
|
||||
status: const SignedIn(
|
||||
authUserId: 'github-person',
|
||||
isIdentified: identified,
|
||||
isIdentified: true,
|
||||
),
|
||||
),
|
||||
studysetGateway: studysets,
|
||||
|
|
@ -157,16 +156,6 @@ void main() {
|
|||
expect(find.text('based on halkyon.eu/@tae/japanese'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('an anonymous person explores too', (tester) async {
|
||||
await showExplore(
|
||||
tester,
|
||||
FakeExploreGateway(published: [published('Japanese')]),
|
||||
identified: false,
|
||||
);
|
||||
|
||||
expect(find.text('Japanese'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('searches once typing pauses', (tester) async {
|
||||
final explore = FakeExploreGateway(
|
||||
published: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue