Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add PicSnap to serve OpenGraph image #5

Open
wants to merge 121 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
a4862e4
feat: add API endpoint to return a cached file
wa0x6e Apr 19, 2023
fff3ae7
feat: compress response
wa0x6e Apr 19, 2023
f1dedbd
feat: define precise error codes
wa0x6e Apr 19, 2023
e7174fa
chore: rename file to reflect its purpose
wa0x6e Apr 19, 2023
a757ee6
fix: fix missing new line in CSV file
wa0x6e Apr 19, 2023
ed221dc
fix: fix choices columns for votes with multiple choices
wa0x6e Apr 19, 2023
1a8150b
refactor: avoid passing `proposal` object
wa0x6e Apr 19, 2023
2c0fef4
fix: use different name for incomplete file
wa0x6e Apr 19, 2023
474b250
fix: prevent race condition on file generation
wa0x6e Apr 19, 2023
fd8a3c9
Merge branch 'main' into add-api
wa0x6e Apr 19, 2023
07fe282
feat: use AWS as cached file storage
wa0x6e Apr 20, 2023
399c8d4
feat: separate cache fetcher and generator in API endpoint
wa0x6e Apr 20, 2023
f7e8809
fix: do not return an error code on cache generation success
wa0x6e Apr 21, 2023
dbe874b
feat: add additional file storage engine
wa0x6e Apr 21, 2023
8d78400
chore: update README
wa0x6e Apr 21, 2023
a523f2a
fix: use inferred env variables for S3 client setup
wa0x6e Apr 21, 2023
57cb712
feat: custimize location of cached files
wa0x6e Apr 21, 2023
c7bd2cd
feat: protect generate endpoint behind authentication
wa0x6e Apr 21, 2023
cc31a4d
chore: add LICENCE file
wa0x6e Apr 22, 2023
d83e00a
feat: add webhook support for `generate` endpoint
wa0x6e Apr 22, 2023
8d0a8ed
feat: add basic queue system to handle cache file generation
wa0x6e Apr 22, 2023
e18cc3b
chore: update README
wa0x6e Apr 22, 2023
3eae769
chore: add tests
wa0x6e Apr 22, 2023
d0c7733
chore: fix github worflow
wa0x6e Apr 22, 2023
dee6171
fix: fix folder creation
wa0x6e Apr 22, 2023
9821586
chore: rename github workflow
wa0x6e Apr 22, 2023
fbdefa3
chore: update README
wa0x6e Apr 22, 2023
519a499
chorel; add test for weighted votes
wa0x6e Apr 22, 2023
9a36731
feat: add reason to votes report
wa0x6e Apr 22, 2023
9c91d29
chore: fix false positives in linter
wa0x6e Apr 24, 2023
3a391de
chore: dependencies upgrade
wa0x6e Apr 24, 2023
7b5404c
chore: fix CI job name
wa0x6e Apr 24, 2023
57e4400
chore: typecheck task should not also build
wa0x6e Apr 24, 2023
d2343d0
refactor: always throw Error objects instead of literal
wa0x6e Apr 25, 2023
cf48149
feat: add open graph image card for proposal
wa0x6e Apr 30, 2023
6e2a043
feat: add image card for space
wa0x6e Apr 30, 2023
3e32277
fix: show space followers number instead of members count
wa0x6e May 1, 2023
0f9e33d
fix: improve logo UI
wa0x6e May 1, 2023
c40d533
refactor: use `--fix` for default lint, for consistency with other repos
wa0x6e May 1, 2023
32aefba
refactor: allow customisation of logo color and dimension
wa0x6e May 1, 2023
d522592
feat: add new generic image card
wa0x6e May 1, 2023
45fc926
fix: handle errors for invalid file type
wa0x6e May 1, 2023
dc5718a
refactor: DRY
wa0x6e May 1, 2023
f00304f
feat: cache and serve cached ogImage when available
wa0x6e May 1, 2023
26d14fd
chore: fix test
wa0x6e May 1, 2023
1a5238c
fix: fix AWS storage to handle binary file type
wa0x6e May 1, 2023
c02c5e4
refactor: extract function for easier testing
wa0x6e May 1, 2023
fd8f84c
feat: add API endpoint to receive webhook to refresh OG image
wa0x6e May 1, 2023
efe9654
chore: update README with new og endpoint
wa0x6e May 1, 2023
ff92be4
fix(UI): improve UI
wa0x6e May 2, 2023
9f70118
refactor: refactor API endpoint
wa0x6e May 2, 2023
7576ba6
fix: remove members count in space image
wa0x6e May 2, 2023
abb7536
fix: fix missing emoji support
wa0x6e May 2, 2023
800dd1b
chore: update README
wa0x6e May 2, 2023
40430fb
fix: fix logo ratio
wa0x6e May 3, 2023
b9d9f9a
chore: set minimum required node version
wa0x6e May 3, 2023
07cef1f
Update readme
ChaituVR May 3, 2023
4e5acda
Minor updates
ChaituVR May 3, 2023
f9e18ce
fix: add default route
wa0x6e May 4, 2023
447cb91
fix: use await syntax
wa0x6e May 4, 2023
4d026bc
chore: remove unecessary rule
wa0x6e May 4, 2023
2b0fb49
refactor: set the storage engine via an env variable
wa0x6e May 4, 2023
6d76940
refactor: keep private method to bottom of files
wa0x6e May 4, 2023
5469f06
refactor: set the StorageEngine and its related setting to environmen…
wa0x6e May 4, 2023
71864d3
chore: lint task should fix by default
wa0x6e May 4, 2023
00650bb
Merge branch 'add-api' into add-open-graph-image
wa0x6e May 5, 2023
3d4e9eb
Merge branch 'main' into add-open-graph-image
wa0x6e May 5, 2023
3331b5d
chore: fix yarn.lock after merge conflict
wa0x6e May 5, 2023
100b7f7
refactor: refactor code to use main branch feature
wa0x6e May 5, 2023
1887b81
fix: fix invalid return code
wa0x6e May 5, 2023
1b175fd
Merge branch 'main' into add-open-graph-image
wa0x6e Jul 1, 2023
2d57fa7
chore: linting
wa0x6e Jul 1, 2023
17c9a2a
Merge branch 'main' into add-open-graph-image
wa0x6e Jul 17, 2023
1111b61
fix: all storage engine should return the same value type
wa0x6e Jul 17, 2023
6e13c95
refactor: uncouple cache logic from votesReport
wa0x6e Jul 18, 2023
691d715
fix: fix missing sentry capture calls
wa0x6e Jul 18, 2023
fc047e1
refactor: prefer class function over property
wa0x6e Jul 19, 2023
52fca59
refactor: rename ogImage to picSnap to make the module more generic
wa0x6e Jul 19, 2023
b479d06
chore: update README with PicSnap docs
wa0x6e Jul 19, 2023
4850934
chore: refactor to extract more logic into templates and components
wa0x6e Jul 19, 2023
6d0d8fe
chore: add tests for picSnap og-home
wa0x6e Jul 19, 2023
fb4192a
chore: cleanup after tests
wa0x6e Jul 19, 2023
8128ce0
chore: use path from storage engine
wa0x6e Jul 19, 2023
fa7f06f
chore: add tests for OpenGraph space image
wa0x6e Jul 19, 2023
b9a3fc1
chore: add tests to implement
wa0x6e Jul 19, 2023
e139109
chore: add missing test snapshot
wa0x6e Jul 19, 2023
193bc2d
chore: delete unused image snapshot
wa0x6e Jul 19, 2023
bbc2e1e
chore: add more tests
wa0x6e Jul 19, 2023
4fcf715
chore: add E2E tests for votesReport
wa0x6e Jul 19, 2023
2380a81
chore: fix deprecated rmdir usage
wa0x6e Jul 19, 2023
8a70985
fix: remove unused errors code
wa0x6e Jul 19, 2023
cc26966
chore: add more E2E tests
wa0x6e Jul 19, 2023
dc97148
fix: fix rename env var
wa0x6e Jul 19, 2023
70428ee
chore: fix missing sentry capture
wa0x6e Jul 19, 2023
2260b0e
chore: remove errors granularity
wa0x6e Jul 19, 2023
92e9dcf
chore: uncouple the cache engine from votesReport
wa0x6e Jul 19, 2023
5dc5324
chore: refactor webhook to handle more generic events
wa0x6e Jul 19, 2023
f8e5b44
Merge branch 'fix-missing-sentry' into base-pre-picsnap
wa0x6e Jul 20, 2023
ef6d98a
Merge branch 'remove-error-granularity' into base-pre-picsnap
wa0x6e Jul 20, 2023
fc370ed
Merge branch 'base-pre-picsnap' into add-open-graph-image
wa0x6e Jul 20, 2023
ac00d9c
fix: fix duplicate import
wa0x6e Jul 20, 2023
e1902de
chore: fix lint
wa0x6e Jul 20, 2023
38bb738
feat: add support for Buffer when setting/getting a cache
wa0x6e Jul 20, 2023
fc9d1a2
Merge branch 'uncouple-cache' into base-pre-picsnap
wa0x6e Jul 20, 2023
678dbc5
chore: fix tests
wa0x6e Jul 20, 2023
13cbf54
Merge branch 'uncouple-cache' into base-pre-picsnap
wa0x6e Jul 20, 2023
e1a73da
Merge branch 'base-pre-picsnap' into add-open-graph-image
wa0x6e Jul 20, 2023
a30f315
chore: lint
wa0x6e Jul 20, 2023
56f4d29
chore: add retry for flaky test
wa0x6e Jul 20, 2023
e9c003a
Merge branch 'main' into add-open-graph-image
wa0x6e Jul 21, 2023
271714c
Merge branch 'main' into add-open-graph-image
wa0x6e Jul 21, 2023
c70729c
Merge branch 'main' into add-open-graph-image
wa0x6e Jul 22, 2023
f13c040
chore: update README to remove unrelated changes
wa0x6e Aug 23, 2023
eac2788
Merge branch 'main' into add-open-graph-image
wa0x6e Aug 23, 2023
569dedc
Merge branch 'main' into add-open-graph-image
samuveth Aug 26, 2023
130b488
fix: fix wrong example link
wa0x6e Aug 26, 2023
6cff97a
Merge branch 'main' into add-open-graph-image
wa0x6e Aug 26, 2023
e4c35e5
Merge branch 'add-open-graph-image' of https://github.com/snapshot-la…
samuveth Aug 26, 2023
b367268
Fix closed color to match new color on snapshot
samuveth Aug 26, 2023
476e24d
Update e2e ogProposal image
samuveth Aug 26, 2023
f52bd64
chore: fix tests fixtures
wa0x6e Aug 26, 2023
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
Prev Previous commit
Next Next commit
chore: rename github workflow
wa0x6e committed Apr 22, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 9821586398527a6518a3a523262dc177af7cabae
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Run Lint
name: Run Lint
on: [push]
jobs:
build-test: