feat(points): show points result on every status save

Core now settles on GET /api/rewards/games/{appid}. The Frontend
shows a toast, refreshes the header balance, and lists the paid
rows and reasons on the game page. Deploy Core first.
This commit is contained in:
lobo committed 2026-10-09 15:25:04 +02:00
1 parent 9adc606c57
commit 814decc781
20 files changed
+429 -12

No files matched your search

+9
View File
@@ -61,6 +61,15 @@ afterEach(() => {
});
describe('PointsPage', () => {
it('lists all thirteen rules', async () => {
await renderPage();
const rules = ['STARTED', 'FINISHED', 'PROOF', 'COMPLETED', 'FINISHED_MANUAL', 'ONCE', 'PLAYSTATION', 'HIDDEN', 'CHECKED',
'MONTH', 'STREAK', 'STARTER', 'UNLOCK'];
const shown = screen.getAllByRole('listitem').map((item) => item.textContent);
expect(shown.filter((text) => text.startsWith('POINTS.RULES.'))).toEqual(rules.map((rule) => `POINTS.RULES.${rule}`));
});
it('shows the effect slots with a preview of each look', async () => {
await renderPage();