Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
78de35e
chore: update .gitignore to include graphql codegen files
iamfj Feb 2, 2026
895e7e9
chore(deps): add graphql codegen cli package and scripts
iamfj Feb 2, 2026
ecebea2
chore(vscode): add exts for GraphQL and EditorConfig
iamfj Feb 2, 2026
f9e0d7c
chore: add .editorconfig for consistent coding style
iamfj Feb 2, 2026
dc0f8ef
feat: add GraphQL codegen configuration file
iamfj Feb 2, 2026
e595266
feat: migrate queries and mutations to `.graphql` files
iamfj Feb 2, 2026
5bbcb3f
refactor(issues): add type aliases for codegen types
iamfj Feb 2, 2026
2ef1ed8
refactor(issues): remove transformation in getIssues
iamfj Feb 2, 2026
3a59870
refactor(issues): remove transformation in getIssueById
iamfj Feb 2, 2026
5b82f8b
refactor(issues): remove transformation in updateIssue
iamfj Feb 2, 2026
bd9d9ce
refactor(issues): remove transformation in createIssue
iamfj Feb 2, 2026
a0e8ec5
refactor(issues): fix searchIssues parameter type
iamfj Feb 2, 2026
10199ca
refactor(issues): remove transformation methods
iamfj Feb 2, 2026
807cc38
fix(issues): correct searchIssues parameter type
iamfj Feb 2, 2026
2b569cb
fix(issues): correct updateIssue parameter structure
iamfj Feb 2, 2026
4ba0564
refactor(documents): migrate to raw codegen types
iamfj Feb 2, 2026
5df69cc
refactor(attachments): migrate to raw codegen types
iamfj Feb 2, 2026
de90e3c
fix(cycles): add missing types and use codegen types
iamfj Feb 2, 2026
824e294
fix(milestones): complete migration to codegen types
iamfj Feb 2, 2026
5a1288a
fix(issues): update error handling for issue resolution
iamfj Feb 2, 2026
a04b55e
refactor: remove manual type definitions
iamfj Feb 2, 2026
b35c532
fixup! refactor(attachments): migrate to raw codegen types
iamfj Feb 3, 2026
8fe3eb0
fixup! refactor(documents): migrate to raw codegen types
iamfj Feb 3, 2026
7815170
fix: remove unnecessary type assertion for orderBy
iamfj Feb 3, 2026
a6b81ce
refactor(cycles): enforce return types for GraphQL queries
iamfj Feb 3, 2026
12a2d60
style(service): improve code readability by formatting imports
iamfj Feb 3, 2026
80789cd
fixup! chore(deps): add graphql codegen cli package and scripts
iamfj Feb 3, 2026
85997f9
fixup! feat: migrate queries and mutations to `.graphql` files
iamfj Feb 3, 2026
3db3c3e
fixup! feat: migrate queries and mutations to `.graphql` files
iamfj Feb 3, 2026
b03fcfe
fixup! feat: migrate queries and mutations to `.graphql` files
iamfj Feb 3, 2026
d46f8c8
refactor(file-service): migrate GraphQL mutation to use codegen document
iamfj Feb 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
339 changes: 312 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,326 @@
# Dependencies
node_modules/
# Generated GraphQL code
/src/gql/

# ------------------------------------------------------------
# DO NOT EDIT THE PATHS BELOW THIS LINE
# ------------------------------------------------------------

# Created by https://www.toptal.com/developers/gitignore/api/macos,windows,linux,visualstudiocode,node,dotenv,test
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,windows,linux,visualstudiocode,node,dotenv,test

### dotenv ###
.env

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Node ###
# Logs
npm-debug.log*
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# npm cache
.npm
# Yarn Integrity file
.yarn-integrity

# IDE and editor files
.claude/
.vscode/
.idea/
*.swp
*.swo
# dotenv environment variable files
.env.development.local
.env.test.local
.env.production.local
.env.local

# OS generated files
.DS_Store
._*
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# SvelteKit build / generate output
.svelte-kit

### Test ###
### Ignore all files that could be used to test your code and
### you wouldn't want to push

# Reference https://en.wikipedia.org/wiki/Metasyntactic_variable

# Most common
*foo
*bar
*fubar
*foobar
*baz

# Less common
*qux
*quux
*bongo
*bazola
*ztesch

# UK, Australia
*wibble
*wobble
*wubble
*flob
*blep
*blah
*boop
*beep

# Japanese
*hoge
*piyo
*fuga
*hogera
*hogehoge

# Portugal, Spain
*fulano
*sicrano
*beltrano
*mengano
*perengano
*zutano

# France, Italy, the Netherlands
*toto
*titi
*tata
*tutu
*pipppo
*pluto
*paperino
*aap
*noot
*mies

# Other names that would make sense
*tests
*testsdir
*testsfile
*testsfiles
*test
*testdir
*testfile
*testfiles
*testing
*testingdir
*testingfile
*testingfiles
*temp
*tempdir
*tempfile
*tempfiles
*tmp
*tmpdir
*tmpfile
*tmpfiles
*lol

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Development artifacts
thoughts/
coverage/
# Folder config file
[Dd]esktop.ini

# Build output (published to npm but not tracked in git)
dist/
# Recycle Bin used on file shares
$RECYCLE.BIN/

# Test scripts (keep locally)
test-*.sh
*.test.sh
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Temp files etc.
tmp/
# Windows shortcuts
*.lnk

# Beans
.beans/
.beans.yml
# End of https://www.toptal.com/developers/gitignore/api/macos,windows,linux,visualstudiocode,node,dotenv,test
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"graphql.vscode-graphql",
"graphql.vscode-graphql-syntax",
"editorconfig.editorconfig"
]
}
16 changes: 16 additions & 0 deletions codegen.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
schema: "https://api.linear.app/graphql", // or download schema locally
documents: ["graphql/**/*.graphql"],
generates: {
"./src/gql/": {
preset: "client",
presetConfig: {
fragmentMasking: false,
},
},
},
};

export default config;
Loading