Skip to content

feat: add AyahView and ayah search utilities#134

Open
haith2m wants to merge 2 commits into
6km:mainfrom
haith2m:feat/ayah-view-and-search
Open

feat: add AyahView and ayah search utilities#134
haith2m wants to merge 2 commits into
6km:mainfrom
haith2m:feat/ayah-view-and-search

Conversation

@haith2m

@haith2m haith2m commented May 30, 2026

Copy link
Copy Markdown

Adds AyahView component for rendering a single ayah, along with getAyah and searchAyahByText utilities for ayah lookup and text-based search.

Co-authored-by: Cursor <cursoragent@cursor.com>

@6km 6km left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed parts of the changes.

Comment thread src/components/AyahView.tsx Outdated
/**
* Renders a single ayah (verse) using the same font and word styling as ReadingView.
*/
const AyahView = memo(function AyahView({ verse, style = {}, className = '' }: AyahViewProps) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of receiving a Verse object, it would be better to receive two props:

surah: number
ayah: number

After that, it handles getting the Verse object and all the required data.
This ensures simpler code base and better developer experience.

This comment was marked as low quality.

Repository owner deleted a comment from vercel Bot May 30, 2026
Repository owner deleted a comment from vercel Bot May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants