Skip to content

Commit daef82e

Browse files
committed
feat(update): v1.0.0-beta.2 push
1 parent f50024b commit daef82e

File tree

112 files changed

+7794
-2455
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+7794
-2455
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
github: CodeMeAPixel
2+
ko_fi: codemeapixel
3+
buy_me_a_coffee: codemeapixel
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Bug Report
2+
description: File a bug report.
3+
title: "[Bug] "
4+
labels: [bug]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this bug report!
10+
- type: textarea
11+
attributes:
12+
label: What is the bug?
13+
description: Describe the bug, what is happening?
14+
placeholder: Tell us what you see!
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: How to reproduce the bug?
20+
description: Tell use how to reproduce the bug.
21+
placeholder: How to reproduce the bug?
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Screenshots
27+
description: Join a screenshot if you can.
28+
placeholder: Drag or paste an image here.
29+
validations:
30+
required: false
31+
- type: dropdown
32+
attributes:
33+
label: Operating System
34+
description: What operating system are you using?
35+
options:
36+
- Windows
37+
- macOS
38+
- Linux
39+
- Other
40+
validations:
41+
required: true
42+
- type: dropdown
43+
attributes:
44+
label: Browser
45+
description: What browser are you using?
46+
options:
47+
- Chrome
48+
- Firefox
49+
- Microsoft Edge (Chromium)
50+
- Microsoft Internet Explorer
51+
- Opera
52+
- Safari
53+
- Other
54+
validations:
55+
required: true
56+
- type: input
57+
attributes:
58+
label: What is the version of the browser?
59+
description: Tell us the precise version of your web browser.
60+
placeholder: v112.0.1722.48
61+
validations:
62+
required: false
63+
- type: input
64+
attributes:
65+
label: What is the version of the web app?
66+
description: Tell us the precise version of the web app you are using.
67+
placeholder: v1.5.0.2108
68+
validations:
69+
required: true
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Feature Request
2+
description: Request/Suggest a feature.
3+
title: "[Enhancement] "
4+
labels: [enhancement]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to suggest a new feature for this project!
10+
- type: textarea
11+
attributes:
12+
label: Enhancement
13+
description: Describe your feature request/your idea here.
14+
placeholder: I would like to see...
15+
validations:
16+
required: true
17+
- type: textarea
18+
attributes:
19+
label: Other informations
20+
description: If you have other informations, like mockups, etc., put them here.
21+
placeholder: Add other informations here.
22+
validations:
23+
required: false

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bun" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "daily"
7+
target-branch: deps
8+
assignees:
9+
- CodeMeAPixel
10+
open-pull-requests-limit: 25

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test Build
2+
on:
3+
push:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
20+
- name: Setup Bun
21+
uses: oven-sh/setup-bun@v1
22+
23+
- name: Install dependencies
24+
run: bun install
25+
26+
- name: Build
27+
run: bun run build

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,6 @@ yarn-error.log*
4444
next-env.d.ts
4545

4646
data
47-
data/**
47+
data/**
48+
.vscode
49+
.vscode/**

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
npx --no-install lint-staged

CHANGELOG.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on "Keep a Changelog" and this project adheres to Semantic Versioning.
6+
7+
For more information, see:
8+
9+
- https://keepachangelog.com/en/1.0.0/
10+
- https://semver.org/
11+
12+
---
13+
14+
## [v1.0.0-beta.2] - 2025-08-17
15+
16+
### Added
17+
18+
- Global Sidebar context and layout wrapper for unified sidebar state and responsive content shifting.
19+
- Sidebar overlays and shrinks main content on desktop; mobile layout remains full width.
20+
- Navbar now renders on all pages and uses shared sidebar logic.
21+
- Sidebar links grouped: main site links always visible, dashboard links and sign out button for authenticated users.
22+
- Created a global loading spinner (`GlobalLoader`) shown for all pages during suspense/loading.
23+
- Changelog API and `/changelog` page: fetches and displays GitHub releases with full metadata, author, assets, and badges latest release.
24+
- User and global stats APIs: `/api/stats/user` and `/api/stats/lexicon` for dashboard and homepage stats.
25+
- Dashboard now shows user stats (definitions, rephraser results, activities, quiz attempts, tests created, public results).
26+
- Homepage now displays live Lexicon stats (totals, recent public definitions, popular terms).
27+
- Public sharing for Definer and Rephraser results: users can make results public and copy/share links.
28+
- Latest release badge in changelog page.
29+
- Expanded Tailwind color palette: blue, orange, purple, etc.
30+
- Spellcheck tool: AI-powered spell/grammar correction with API endpoints (`/api/spellcheck/generate`, `/api/spellcheck/store`, `/api/spellcheck/public`), dashboard UI, and Prisma `Spellcheck` model for saved results and public sharing.
31+
- OpenAI helpers: added `src/lib/openai/spellcheck.ts` and `src/lib/openai/rephraser.ts` to centralize model prompts and streaming logic for increased maintainability.
32+
- Centralized NextAuth options in `src/lib/auth.ts` to provide a typed, single source of truth for server-side authentication config.
33+
34+
### Changed
35+
36+
- Dashboard layout refactored to remove duplicate header/sidebar; now relies on global Navbar/sidebar.
37+
- `SidebarLayoutWrapper` uses margin and max-width to shrink content when sidebar is open (desktop).
38+
- Hydration mismatch fixed by using mobile padding on SSR and switching to desktop after client mount.
39+
- Navbar sidebar footer shows sign out for authenticated users and social links for guests.
40+
- Updated server API routes to import `authOptions` from `@/lib/auth` instead of exporting them from the NextAuth app route; this prevents runtime route module types from leaking into other compiled route modules.
41+
- Dashboard: gate stats, activity and verification checks on auth `status` and prefer `session.user.emailVerified` when present to avoid unnecessary roundtrips and UI flicker on initial load.
42+
43+
- Rephraser and Definer pages now use unified result panel UX: input panel becomes result panel after generation, with public sharing and link copy.
44+
- Changelog client and API now expose full release metadata and latest-release detection.
45+
- Improved homepage and dashboard layouts for stats and activity cards.
46+
- Rephraser API now delegates OpenAI streaming to `src/lib/openai/rephraser.ts` (keeps route slim and centralizes model logic).
47+
- Spellcheck generation moved to `src/lib/openai/spellcheck.ts` to ensure consistent extraction of model output and avoid leaking SDK objects to clients.
48+
- Authentication: added NextAuth `redirect` callback to default post-auth navigation to `/dashboard` (honors explicit callbackUrl when provided).
49+
50+
### Fixed
51+
52+
- Build error in `SidebarLayoutWrapper` due to missing function declaration.
53+
- Hydration mismatch caused by inconsistent SSR/client padding logic.
54+
55+
- Build error in changelog API route (missing export async function GET).
56+
- Parsing error in changelog API route (misplaced closing brace).
57+
- Minor UI bugs in stats and changelog pages.
58+
- Fixed spellcheck endpoint returning raw SDK payloads by normalizing OpenAI responses to plain corrected text.
59+
- Resolved Next.js build-time type error caused by exporting `authOptions` from the NextAuth app route.
60+
- Fixed verification banner sometimes appearing during initial page load by ensuring the banner only shows when the user is authenticated and explicitly unverified.
61+
- Minor TypeScript/ESLint fixes (replaced `any` with `unknown`/`Record<string, unknown>` and fixed unused catch variables) in API routes.
62+
63+
### Removed
64+
65+
- Old dashboard-specific sidebar/header logic.
66+
- Old dashbaord and public pages layout
67+
- ignore eslint errors on build
68+
- ignore typescript errors on build

0 commit comments

Comments
 (0)