Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
2bc438e
Update README.md
brijr May 5, 2024
da3e94e
Update README.md
brijr May 6, 2024
e419803
up
brijr May 8, 2024
e8bb13b
update logo
brijr May 9, 2024
8b4ad50
update logo
brijr May 9, 2024
285d4e2
update homepage
brijr May 9, 2024
774a83c
add comments
brijr May 12, 2024
dbef77a
add comments
brijr May 13, 2024
eee832d
update
brijr May 20, 2024
6a6fc80
add links to all the content pages
brijr May 20, 2024
034424d
add 9d8 link to nav
brijr May 20, 2024
643e8cf
add revalidate to layout.ts
brijr May 20, 2024
0c782e5
add revalidate to layout.ts
brijr May 20, 2024
e08f844
add wordpress pages rendering
brijr May 20, 2024
4527bb6
Updated
brijr May 20, 2024
91fa391
add author and date to posts
brijr May 20, 2024
9f9e644
Update README.md
brijr May 24, 2024
1019e8e
fix: typography on post page and cleaned up error
brijr May 29, 2024
f9d22ca
update npm packages
brijr May 31, 2024
a6e728f
Merge branch 'main' of https://github.com/9d8dev/next-wp
brijr May 31, 2024
b1c6e1b
create post card and set up on posts page
brijr May 31, 2024
2c0f337
update the page template
brijr May 31, 2024
c75bc45
global Main tag and animations on load
brijr May 31, 2024
70bdf72
switch to env
brijr May 31, 2024
24af9b1
update readme
brijr May 31, 2024
fad13ab
updates to article in craft
brijr Jun 3, 2024
6982a90
updates to name rendering for posts by author
brijr Jun 3, 2024
bd6e609
updates to name rendering for posts by author
brijr Jun 3, 2024
92ba769
use PostCard on all pages
brijr Jun 3, 2024
b3a3cf3
add metadata
brijr Jun 3, 2024
db0fa16
setup menu and add footer
brijr Jun 3, 2024
4a43012
update footer
brijr Jun 3, 2024
a5c7e2c
update footer
brijr Jun 3, 2024
342678e
pagination
brijr Jun 4, 2024
7d6beaa
refactor pages
brijr Jun 4, 2024
a244a1f
refactor pages
brijr Jun 4, 2024
f636292
add reset filter button
brijr Jun 4, 2024
bf2ed34
update homepage
brijr Jun 4, 2024
6666791
update homepage and menus
brijr Jun 4, 2024
f4b9782
fix: double filters
brijr Jun 4, 2024
be6185d
update homepage
brijr Jun 4, 2024
78ff22f
update homepage
brijr Jun 4, 2024
1128ee5
style updates
brijr Jun 4, 2024
f948a94
style updates
brijr Jun 4, 2024
ebce6bf
Update page.tsx
brijr Jun 4, 2024
b69aba3
Update README.md
brijr Jun 4, 2024
05c2ae9
Update README.md
brijr Jun 4, 2024
6937ff3
Update README.md
brijr Jun 12, 2024
40796bc
Update README.md
brijr Jun 12, 2024
f199f77
update README
brijr Jun 14, 2024
94b88ad
update README
brijr Jun 14, 2024
20d677a
update README
brijr Jun 14, 2024
a249d05
update README
brijr Jun 14, 2024
a0ad7c6
Update README.md
brijr Jun 14, 2024
df7ef40
Update README.md
brijr Jun 14, 2024
4cd1d33
update README
brijr Jun 14, 2024
28b5799
Update README.md
brijr Jun 14, 2024
ffab716
Update README.md
brijr Jun 14, 2024
7bebb28
Add OG image and Twitter image with a Metabase URL
brijr Jun 14, 2024
b7cfca3
Create LICENSE
brijr Jun 14, 2024
f4772e0
Update README.md
youngbloodcyb Jun 14, 2024
63aad9f
Update menu.config.ts
brijr Jun 14, 2024
d323feb
`capital_P_dangit()`*
batuhan Jun 14, 2024
eda2e52
Merge pull request #1 from batuhan/main
youngbloodcyb Jun 15, 2024
92a3ef4
chore: install query-string package
alonsourena Jun 16, 2024
53216cc
feat: add getUrl function
alonsourena Jun 16, 2024
c8e2c34
Merge pull request #5 from alonsourena/main
brijr Jun 17, 2024
2b4d735
fix: preserve filters in URL state and properly disable pagination co…
youngbloodcyb Jun 17, 2024
16e72c2
Merge pull request #6 from 9d8dev/3-the-filters-are-not-preserved-whe…
brijr Jun 17, 2024
f16175d
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 17, 2024
85dbdef
Merge pull request #7 from 9d8dev/dependabot/npm_and_yarn/braces-3.0.3
youngbloodcyb Jun 17, 2024
1fc9c06
fix: rendering of blog titles
brijr Jun 20, 2024
1a50ed4
ui: filter component updates
brijr Jun 24, 2024
61c200d
update Next.js to Latest
brijr Jun 24, 2024
d34ca1a
Update meta
brijr Jun 25, 2024
601c336
Add vercel analytics
brijr Jun 25, 2024
825fc69
Update README.md
brijr Aug 1, 2024
70ad8dc
Update README.md
brijr Aug 5, 2024
60060b1
update get started link
brijr Aug 13, 2024
11834af
Update README.md
brijr Aug 21, 2024
ca349d1
create dynamically generated sitemap
brijr Aug 22, 2024
406ff2b
create dynamically generated sitemap
brijr Aug 22, 2024
07deef3
create site config file
brijr Aug 22, 2024
a4c8db7
add static pages to sitemap
brijr Aug 22, 2024
950eead
Update Readme
brijr Aug 22, 2024
bd93a6b
Update Readme
brijr Aug 22, 2024
4c4cfd0
update next js
brijr Sep 7, 2024
58627c5
Bump micromatch from 4.0.5 to 4.0.8
dependabot[bot] Sep 10, 2024
c842869
Merge pull request #18 from 9d8dev/dependabot/npm_and_yarn/micromatch…
brijr Sep 10, 2024
56366a0
update next.js
brijr Sep 18, 2024
81f1716
Bump next from 14.2.9 to 14.2.12
dependabot[bot] Sep 19, 2024
d5eb2c1
Merge pull request #20 from 9d8dev/dependabot/npm_and_yarn/next-14.2.12
youngbloodcyb Sep 19, 2024
dfb8b0c
chore: upgrade npm packages
brijr Dec 27, 2024
419117e
feat: update to next 15
brijr Dec 27, 2024
1eaa287
fix: post card handles no featured image
brijr Dec 27, 2024
91bc66d
fix: handle no image on dynamic routes
brijr Dec 27, 2024
618dd7e
update footer and logo
brijr Dec 27, 2024
eba0792
Update Readme
brijr Dec 27, 2024
a7f413c
Update README.md
brijr Dec 27, 2024
9df3ead
chore: update npm packages
brijr Jan 8, 2025
791768c
chore: code refactoring
brijr Jan 8, 2025
4089e5a
feat: implement latest craft
brijr Jan 8, 2025
0d18089
update styling
brijr Jan 8, 2025
862e602
feat: implement latest craft
brijr Jan 8, 2025
a3c16ff
feat: implement latest craft
brijr Jan 8, 2025
76032d8
feat: implement latest craft
brijr Jan 8, 2025
166bc51
chore: update footer
brijr Jan 8, 2025
ea8b9ac
chore: update nav
brijr Jan 8, 2025
833c824
refactor code
brijr Jan 8, 2025
68d3503
update site config
brijr Jan 8, 2025
eff4d1a
update site config
brijr Jan 8, 2025
6d3a85e
update page
brijr Jan 8, 2025
ce09716
feat: dynamic OG cards for posts
brijr Jan 8, 2025
adfabb9
feat: dynamic OG cards for pages
brijr Jan 8, 2025
fdf4671
feat: /admin redirect to wp-admin
brijr Jan 8, 2025
25e89d5
fix: styling of image on posts
brijr Jan 8, 2025
f0b34e4
fix: styling of image on posts
brijr Jan 8, 2025
5d6d05d
fix: eager loading on logo for lcp
brijr Jan 8, 2025
2d9da1d
fix: styling on homepage
brijr Jan 8, 2025
6d6d0a8
fix: size on vercel deploy button
brijr Jan 8, 2025
957dcfd
fix: hydration error on mobile nav
brijr Jan 8, 2025
2d6adcf
update readme with info on dynamic OG
brijr Jan 8, 2025
6307d4f
fix: limit og description to 2 lines
brijr Jan 8, 2025
fd90fe2
Update README.md
brijr Jan 8, 2025
9fbc731
feat: canonical domain default to site_domain
brijr Jan 10, 2025
911d649
implement latest craft
brijr Jan 11, 2025
b620855
update /posts page
brijr Jan 11, 2025
e7ea2c0
update /pages page
brijr Jan 11, 2025
b432794
example pages styling and metadata
brijr Jan 11, 2025
e393485
refactor / update icons
brijr Jan 11, 2025
38d1e34
update /posts page
brijr Jan 11, 2025
e8f84a6
update /posts page
brijr Jan 11, 2025
d398909
remove animation
brijr Jan 11, 2025
2fcd2a7
fix: layout shift on vercel deploy button
brijr Jan 11, 2025
8184d3e
wip
brijr Jan 11, 2025
01443eb
wip
brijr Jan 11, 2025
3e7b5f7
fix: styling on /posts/slug page
brijr Jan 11, 2025
15840d1
handle revailidation in the WP server actions
brijr Jan 11, 2025
84bb49a
Merge pull request #32 from 9d8dev/15-updates
brijr Jan 11, 2025
a51f9a7
update readme
brijr Jan 11, 2025
b637ea5
fix: styling on dynamic pages route
brijr Jan 11, 2025
1dad80b
update theme toggle
brijr Jan 11, 2025
2dc17b6
Common Interfaces:
brijr Jan 11, 2025
2ff080c
update readme
brijr Jan 11, 2025
282d00a
move filter component
brijr Jan 11, 2025
8dd6461
move filter component
brijr Jan 11, 2025
4b0f102
create search component
brijr Jan 11, 2025
0f53706
allow search by category, tag, authors, etc
brijr Jan 11, 2025
e233745
update readme
brijr Jan 11, 2025
569e112
update typescript
brijr Jan 11, 2025
45ff523
chore: upgrade eslint
brijr Jan 11, 2025
4a2fc41
chore: upgrade eslint
brijr Jan 11, 2025
142ff75
update to use revalidation and dynamic on posts page
brijr Jan 13, 2025
2c2d663
Update README.md
brijr Jan 13, 2025
1966ed3
Update README.md
brijr Jan 13, 2025
86a1b64
Update README.md
brijr Jan 13, 2025
0162d54
chore: update readme
brijr Jan 13, 2025
95d58d0
chore: update readme
brijr Jan 13, 2025
1a1323d
chore: update readme
brijr Jan 13, 2025
7d597ea
chore: update readme
brijr Jan 13, 2025
56d3f04
wip
brijr Jan 13, 2025
50130dc
chore: update robots.txt
brijr Jan 13, 2025
3fe9e57
chore: update npm packages
brijr Jan 14, 2025
3e2016f
Merge branch 'main' of https://github.com/9d8dev/next-wp
brijr Jan 14, 2025
b9bc7e0
Fix error in post page when no featured image is set
lacruzwebdev Jan 28, 2025
18da521
Merge pull request #37 from lacruzwebdev/main
brijr Jan 28, 2025
91e8963
chore: update npm packages
brijr Feb 10, 2025
881cb1b
chore: clean up types
brijr Feb 10, 2025
3685cbe
feat: add ssg
brijr Feb 10, 2025
6df9bd7
feat: add ssg to pages
brijr Feb 10, 2025
1cc0ed3
fix: type errors
brijr Feb 10, 2025
160ca94
chore: update next js
brijr Mar 4, 2025
d0ec1dd
chore: update packages
brijr Mar 4, 2025
fdf1e54
chore: update packages
brijr Mar 18, 2025
15ad24e
feat: create revalidate route and plugin
brijr Mar 18, 2025
7facbf4
feat: add comment to help with secret gen
brijr Mar 18, 2025
af4db5a
chore: update packages
brijr Mar 23, 2025
e7932b8
chore: update packages
brijr Apr 15, 2025
119e04e
chore: update payload
brijr May 5, 2025
b20a26f
update plugin readme
brijr May 5, 2025
0f605b2
refactor layout.tsx
brijr May 5, 2025
a464f44
fix: wp plugin issues
brijr May 5, 2025
80ea3f2
Merge branch 'main' of https://github.com/9d8dev/next-wp into brijr/p…
brijr May 5, 2025
c0cfdfa
Merge pull request #51 from 9d8dev/brijr/plugin
brijr May 5, 2025
67bb62b
fix: package.json
brijr May 5, 2025
5010e72
fix: lock file
brijr May 5, 2025
3c40298
feat: simplify revalidation and update WP Plugin
brijr May 5, 2025
37594b9
chore: update plugin package
brijr May 5, 2025
03e7624
feat: update plugin to work on delete / draft etc
brijr May 5, 2025
576fdce
chore: update next-revalidate plugin
brijr May 5, 2025
e000c60
fix: resetting page param on filter change
islamBelabbes May 5, 2025
7f71bf0
Merge pull request #52 from islamBelabbes/reset-page-no-filter-change
brijr May 6, 2025
2e9319d
ui/ux : disable filters on empty data
islamBelabbes May 6, 2025
5df965e
Merge pull request #53 from islamBelabbes/disable-filters-on-empty-data
brijr May 6, 2025
f768521
Update README.md
brijr May 6, 2025
a06e38b
chore: update packages
brijr May 7, 2025
bb47c74
refactor wordpress.ts
brijr May 7, 2025
1be66ab
chore: update packages
brijr May 27, 2025
cc13e33
chore: update packages
brijr May 30, 2025
cd00429
chore: update packages
brijr Jun 2, 2025
0ef96db
chore: upgrade packages
brijr Jun 10, 2025
0558f85
feat: add claude.md so that AI agents can reference
brijr Jun 10, 2025
c2c9993
chore: update packages
brijr Jun 16, 2025
e837405
refactor: simplified API implementation
fearphage Jun 19, 2025
f57895b
cleaned up missed method
fearphage Jun 19, 2025
c18cc8c
Merge pull request #55 from fearphage/remaining-changes
brijr Jun 19, 2025
5f76f10
chore: update packages
brijr Jun 26, 2025
2089afd
feat: implement server-side pagination system
brijr Jun 26, 2025
3979f8e
feat: generateStaticParams optimization
brijr Jun 26, 2025
b1bb268
feat: enhance revalidation logic with specific content type tags and …
brijr Jun 26, 2025
05c944c
docs: add cache tags integration and detailed caching system explanat…
brijr Jun 26, 2025
0f2667c
Merge pull request #56 from 9d8dev/54-retrieve-totalpages-from-the-po…
brijr Jun 26, 2025
9b174b8
Update site.config.ts
toffyjar Oct 3, 2025
09f366d
Update site.config.ts
toffyjar Oct 3, 2025
1610224
chore: trigger develop deployment for preview URL
toffyjar Oct 3, 2025
eb2b607
feat: Implement Gutenberg block system with Hero block
toffyjar Oct 6, 2025
6b7cae7
feat: Implement Gutenberg block system with Hero block
toffyjar Oct 6, 2025
fc84904
feat: Add Block Generator CLI tool
toffyjar Oct 6, 2025
875ba1e
feat: Add Block Generator CLI tool
toffyjar Oct 6, 2025
5f2ab43
feat: Complete Gutenberg block system with working Hero blocks
toffyjar Oct 6, 2025
28c0a63
feat: Complete Gutenberg block system with working Hero blocks
toffyjar Oct 6, 2025
a27f92d
fix: Align block types to prevent TypeScript build error
toffyjar Oct 6, 2025
df02528
fix: Align block types to prevent TypeScript build error
toffyjar Oct 6, 2025
ce8daa2
feat: Implement complete core WordPress blocks system with React comp…
toffyjar Oct 6, 2025
b15be53
feat: Implement complete core WordPress blocks system with React comp…
toffyjar Oct 6, 2025
003c58d
fix: TypeScript error in CoreButtons align property
toffyjar Oct 6, 2025
23e6872
fix: TypeScript error in CoreButtons align property
toffyjar Oct 6, 2025
2fcc21f
feat: Dynamic WordPress menu system with Flowout-style header
toffyjar Oct 7, 2025
a22b697
feat: Dynamic WordPress menu system with Flowout-style header
toffyjar Oct 7, 2025
d3898e2
WS-2025-001: Fix block prop shape; add core/cover; respect Columns co…
toffyjar Oct 16, 2025
60580b7
WS-2025-001: Fix block prop shape; add core/cover; respect Columns co…
toffyjar Oct 16, 2025
0549799
WS-2025-001 – Summary of changes
toffyjar Oct 16, 2025
796bc3b
WS-2025-001 – Summary of changes
toffyjar Oct 16, 2025
834b675
update page.tsx
toffyjar Oct 16, 2025
78a70c4
update page.tsx
toffyjar Oct 16, 2025
0255ea9
update sitemap
toffyjar Oct 16, 2025
6db9444
fix: Improve WordPress API error handling for build resilience
toffyjar Oct 16, 2025
f133120
fix: Remove .pnpm-store from git tracking and improve error handling
toffyjar Oct 16, 2025
275f2fa
elementor 1
navedfakru Oct 16, 2025
9991f2f
elementor + Nextjs by naved
navedfakru Oct 22, 2025
e036551
fixed type
navedfakru Oct 23, 2025
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
267 changes: 267 additions & 0 deletions .context/GETTING_STARTED_BLOCKS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
# Getting Started with DapFlow Blocks

**Quick Start Guide for the Gutenberg Block System**

---

## What Was Built

A system that lets you:
1. **Create** React components with your design system (shadcn/ui + craft + Tailwind)
2. **Make them editable** in WordPress Gutenberg editor
3. **Render them** on your Next.js frontend with full design control

---

## How It Works (Simple Explanation)

```
You build React component → We make it editable in WordPress → Renders on your site
```

**Example**:
- You have a Hero section component
- Content editors can change text, colors, buttons in WordPress
- It renders on the frontend with your exact styling

---

## Installation

### 1. Install WordPress Plugin

```bash
# Go to WordPress plugins directory
cd /path/to/wordpress/wp-content/plugins/

# Copy plugin from your DapFlow project
cp -r /path/to/DapFlow/plugin/dapflow-blocks/ ./

# Install dependencies
cd dapflow-blocks
npm install

# Build plugin
npm run build
```

### 2. Activate Plugin

1. Go to WordPress Admin → Plugins
2. Find "DapFlow Blocks"
3. Click "Activate"
4. Go to "DapFlow Blocks" menu to verify installation

### 3. Test Next.js Integration

```bash
# From your DapFlow project root
npm run dev

# Visit http://localhost:3000/pages/about
# Should work (though no custom blocks yet)
```

---

## Next Steps

### Option 1: Implement Your Hero Block

We have your Hero component code. Next session, we'll:
1. Convert it to prop-driven version (small changes)
2. Create WordPress block for it
3. Test end-to-end
4. Document the pattern

**Timeline**: 2-3 hours

### Option 2: Add More Components

Give me more React components (Hero, CTA, Features, etc.) and I'll convert them to blocks.

**Timeline per block**: 2-4 hours once pattern is established

---

## Workflow (Once Setup)

### As a Developer:

1. **Give me a React component**:
```tsx
// Your component from Tailwind UI, etc.
export default function MySection() {
return <div>...</div>
}
```

2. **I convert it**:
- Make it prop-driven
- Create WordPress block
- Register in system
- Test it

3. **You review and approve**

### As a Content Editor:

1. Open page in WordPress
2. Click "+" to add block
3. Search "DapFlow"
4. Insert block (Hero, CTA, etc.)
5. Edit content in sidebar
6. Publish
7. See it live on your site

---

## Current Status

✅ **Phase 1 Complete**: Foundation
- WordPress plugin infrastructure
- Next.js block system
- REST API extension
- Type definitions
- Documentation

⏳ **Phase 2 Next**: Your Hero Block
- Convert your Hero component
- Create WordPress block
- Test complete flow

⏸️ **Phase 3 Later**: More Blocks
- As you provide components
- Repeatable pattern established

---

## File Locations

### WordPress Plugin
```
/plugin/dapflow-blocks/
├── dapflow-blocks.php # Main file
├── includes/ # PHP classes
├── blocks/ # Block definitions (empty for now)
├── src/ # JavaScript source
└── build/ # Compiled JavaScript
```

### Next.js
```
/lib/blocks/
├── block-renderer.tsx # Main renderer
├── block-registry.ts # Component mapping
└── types.ts # TypeScript types

/components/blocks/
└── (your block components) # To be added
```

---

## Testing

### Test WordPress Plugin

```bash
# Check if plugin is active
wp plugin list

# Check REST API
curl https://cms.dapflow.com/wp-json/wp/v2/pages/123
# Should include "blocks" field
```

### Test Next.js

```bash
npm run dev

# Visit any page
# Should render without errors
# HTML fallback working for existing content
```

---

## Troubleshooting

### WordPress plugin won't activate

```bash
# Check PHP errors
tail -f /path/to/wordpress/wp-content/debug.log

# Check PHP version
php -v
# Need PHP 8.0+
```

### Build fails

```bash
# Reinstall dependencies
cd /path/to/plugin/dapflow-blocks
rm -rf node_modules
npm install
npm run build
```

### Next.js errors

```bash
# Check TypeScript
npm run build

# Check for type errors
# Fix any import issues
```

---

## Documentation

### Full Documentation

- [ADR-2025-001](.context/decisions/ADR-2025-001-gutenberg-block-system.md) - Architecture decisions
- [Feature Spec](.context/features/gutenberg_blocks.md) - Detailed feature specification
- [Session SES-2025-001](.context/sessions/SES-2025-001-gutenberg-block-system-foundation.md) - Implementation session notes

### Quick References

- [WordPress Block API](https://developer.wordpress.org/block-editor/)
- [Next.js Documentation](https://nextjs.org/docs)
- [Your site.config.ts](./site.config.ts) - Site configuration

---

## Support

Questions? Issues? Ask in your next session:
- How to add new blocks
- How to modify existing blocks
- How to debug issues
- How to extend the system

---

## What's Next?

**Ready to implement your Hero block?**

Just say "let's do the Hero block" and I'll:
1. Convert your Hero component to prop-driven
2. Create WordPress Hero block with full editing controls
3. Test it end-to-end
4. Show you how to add more blocks yourself

**Or:**

Give me more React components and I'll convert them all!

---

**Status**: ✅ Foundation complete. Ready for block implementation.

Loading