Upgrade 300 function pages to guide quality#23
Merged
kyleamueller merged 12 commits intomainfrom Mar 9, 2026
Merged
Conversation
… example - Replace hardcoded "161 functions" in homepage CTA with allFunctions.length - Remove hardcoded function/category counts from metadata description - Add CopyCodeBlock client component for the usage example code block - Update usage-example-block CSS to support header+pre layout Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Shows a Copy button on the toggle row itself so users can copy the Table.FromRecords M code without needing to expand the section first. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This reverts commit 82b5737.
The .copy-btn class had opacity:0 set globally (for SyntaxBlock hover reveal), making all SampleTableCode copy buttons invisible since they weren't inside a .syntax-block. Fix: use new .code-copy-btn class with SVG clipboard/check icons matching the SyntaxBlock style, positioned absolutely in .sample-code-pre-wrapper. Also updates CopyCodeBlock to use the same icon approach. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Install vitest, @vitest/coverage-v8, vite-tsconfig-paths, simple-git-hooks - Add vitest.config.ts with tsconfigPaths for @/ alias resolution - Export parseExamples/parseRemarks from route.ts for testability; fix description regex to skip leading blank line - Add 4 test files: content-integrity, mdx, search, parsers (40 tests total) - Add .github/workflows/test.yml for CI on push/PR to main - Add 15 missing function pages discovered by content-integrity tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Audited all pages against the official Microsoft Power Query M function reference and created pages for every missing function. Total coverage grows from 177 to 507 function pages. Categories added: - List: 50 new pages (List.Reverse, List.Zip, List.Union, Date/Time sequence generators, set operations, statistics, etc.) - Table: 55 new pages (Table.Column, Table.Transpose, Table.FuzzyJoin, Table.SplitColumn, membership/ordering/row-operation functions, etc.) - Text: 23 new pages (Text.Start/End/Middle, delimiters, padding, etc.) - Character, Guid, Lines, Splitter, Combiner, Comparer, URI: 15 new pages - Date: 45 new pages (all Date.IsIn* filter functions, week/quarter/day helpers, format/parse functions) - DateTime: 20 new pages (DateTime.IsIn* functions, AddZone, FromText, etc.) - DateTimeZone: 11 new pages - Duration: 5 new pages - Time: 4 new pages - Number: 42 new pages (trig, bitwise, type conversions, log/exp, etc.) - Record: 9 new pages - Type: 18 new pages - Value: 9 new pages - Accessing Data: 24 new pages (Sql, SharePoint, Folder, OData, PDF, Web.Page, MySQL, PostgreSQL, Oracle, Azure Storage, ODBC, etc.) All 40 tests continue to pass (content-integrity, parsers, mdx, search). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add 7 function pages for M literal constructors: #table, #date, #datetime, #datetimezone, #duration, #time, #binary - Add concepts/literal-constructors.mdx explaining all #-prefixed constructors with examples and common pitfalls - Add spec validation test: every function slug must exist in the official Power Query M spec (fixture: official-spec-slugs.json) - Remove two non-existent function pages (table-columntypes, table-removeduplicates) caught by the new spec test; fix cross- references in table-buffer, table-distinct, table-isdistinct, table-columncount, table-columnsoftype, table-schema Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Keep spec validation test additions; re-delete table-columntypes.mdx (not in official spec) which was re-introduced by PR #21. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rewrote ## Remarks and ## Examples sections across all bulk-created pages from PR #21. Frontmatter unchanged throughout. - Date/DateTime/DateTimeZone/Duration/Time (72 pages): culture param guidance, cloud/UTC warnings for IsInCurrent* functions, Day.* enum usage for week functions, FILETIME origin, FixedLocalNow vs LocalNow - List (49 pages): List.Buffer O(n²) gotcha with List.Contains, List.FirstN/LastN condition-mode behavior, statistical edge cases (List.StandardDeviation n=1, PercentileMode options), List.Random non-determinism warning - Table (48 pages): RankKind enum examples, fuzzy function options (Threshold, IgnoreCase, etc.), Table.StopFolding vs Table.Buffer, Table.TransformRows list-not-table output, MissingField.Ignore guidance - Text/Character/Comparer/Splitter (31 pages): case sensitivity and culture guidance, Text.Trim internal-space caveat, Text.NewGuid volatility, URI.Combine trailing slash rule - Number/Record/Type/Value (77 pages): banker's rounding on Number.Round, Number.Atan2 argument order (y,x), trig functions use radians, Value.NativeQuery SQL injection warning, type open/closed/nullable semantics, Value.Metadata behavior - Accessing Data (23 pages): auth modes, gateway requirements, driver prereqs, navigation table structure, query folding capabilities Also adds Chris Webb's BI Blog to resources page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rewrites the
## Remarksand## Examplessections of all 300 bulk-created function pages from PR #21. Frontmatter is unchanged throughout. All 41 tests pass.Changes by category:
IsInCurrent*functions,Day.*enum for week functions,FixedLocalNowvsLocalNowdistinctionList.BufferO(n²) gotcha withList.Contains,List.FirstNcondition-mode stops at first failure,List.Randomnon-determinism warning, statistical edge casesRankKindenum examples, fuzzy function options documented,Table.StopFoldingvsTable.Buffer,MissingField.IgnoreguidanceText.Triminternal-space caveat,Text.NewGuidvolatility,URI.Combinetrailing slash ruleNumber.Round,Number.Atan2argument order, trig functions use radians,Value.NativeQuerySQL injection warning, open/closed/nullable type semanticsAlso adds Chris Webb's BI Blog to the Resources page.
Test plan
npm run test)🤖 Generated with Claude Code