A tool to help Granblue Fantasy players create and share teams and strategies.
Find a file
Justin Edmund fa23c13db1
Modernize Link components to Next.js 13+ patterns (#431)
## Summary
- Removed legacy behavior from Link components
- Fixed onClick warnings with next-intl Link wrapper
- Fixed tab switching on party page
- Fixed JobSkillItem router undefined error

## Changes
- Removed `legacyBehavior` prop and nested `<a>` tags from all Link
components
- Updated GridTabsCompact to use next-intl's Link wrapper correctly
- Fixed PartyPageClient tab switching by mapping string values to
GridType enum
- Removed broken locale assignment code in JobSkillItem

## Test plan
- [x] No more console warnings about onClick and legacyBehavior
- [x] Tab switching works correctly on party page
- [x] No router undefined errors in JobSkillItem
- [x] All navigation links work as expected

🤖 Generated with [Claude Code](https://claude.ai/code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-03 17:07:09 -07:00
.storybook
.vscode Break collection pages into hooks (#414) 2024-04-21 00:46:04 -07:00
app Modernize Link components to Next.js 13+ patterns (#431) 2025-09-03 17:07:09 -07:00
components Modernize Link components to Next.js 13+ patterns (#431) 2025-09-03 17:07:09 -07:00
data February 2024 updates and bug fixes (#407) 2024-02-21 23:18:53 -05:00
extensions
hooks Further GridRep and Collection fixes (#417) 2024-04-23 05:11:23 -07:00
i18n Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
pages Modernize Link components to Next.js 13+ patterns (#431) 2025-09-03 17:07:09 -07:00
public Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
styles Fix intermittent crash: bounded caching + HTTP timeouts/keepAlive + preview route dedupe (#428) 2025-08-31 12:16:42 -07:00
supervisord Fix intermittent crash: bounded caching + HTTP timeouts/keepAlive + preview route dedupe (#428) 2025-08-31 12:16:42 -07:00
types Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
utils Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
.aidigestignore Jedmund/image embeds 2 (#424) 2025-02-09 22:54:15 -08:00
.env.local Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
.env.sample
.eslintrc.json
.gitignore Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
.prettierignore
.prettierrc
CLAUDE.md Fix intermittent crash: bounded caching + HTTP timeouts/keepAlive + preview route dedupe (#428) 2025-08-31 12:16:42 -07:00
i18n.config.ts Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
middleware.ts Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
mise.toml Fix intermittent crash: bounded caching + HTTP timeouts/keepAlive + preview route dedupe (#428) 2025-08-31 12:16:42 -07:00
next-env.d.ts Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
next-i18next.config.js
next.config.js Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
package-lock.json Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
package.json Fix i18n migration to next-intl (#430) 2025-09-03 16:25:59 -07:00
README.md
README.png
tsconfig.json Fix intermittent crash: bounded caching + HTTP timeouts/keepAlive + preview route dedupe (#428) 2025-08-31 12:16:42 -07:00
tslint.json

Header image for hensei-web

hensei-web

hensei-web is the frontend for granblue.team, an app for saving and sharing teams for Granblue Fantasy.

Getting Started

First, you have to set up your environment file. You should start with .env.sample, but here are some gotchas:

App URLs

Don't add a trailing slash to these URLs! The API will run on port 3000 by default, but make sure to change these to match your instance of the API.

NEXT_PUBLIC_SIERO_API_URL='http://127.0.0.1:3000/api/v1'
NEXT_PUBLIC_SIERO_OAUTH_URL='http://127.0.0.1:3000/oauth'

Asset URLs

Next.js serves all assets out of the /public directory. In development we utilize this for all assets, but in production, you will want to host these images on a cloud storage provider like Amazon S3. Once you have that set up and you're running in a production environment, change this to the full bucket URL.

NEXT_PUBLIC_SIERO_IMG_URL='/images'

Dependencies

Once your .env is all set up, install all dependencies:

npm install
# or
yarn install

Then, run the development server with:

npm run dev
# or
yarn dev

Assets

The hensei-api repository has tasks that will help you get assets, although some were crafted or renamed by hand. The front-end expects this folder structure inside of the images folder:

root
├─ accessory-grid/
├─ accessory-square/
├─ awakening/
├─ ax/
├─ character-main/
├─ character-grid/
├─ character-square/
├─ guidebooks/
├─ jobs/
├─ job-icons/
├─ job-portraits/
├─ job-skills/
├─ labels/
├─ mastery/
├─ placeholders/
├─ raids/
├─ summon-main/
├─ summon-grid/
├─ summon-square/
├─ updates/
├─ weapon-main/
├─ weapon-grid/
├─ weapon-keys/
├─ weapon-square/