docs(stratos) - Add explainer on spaces alignment - #113
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughAdded architecture documentation for Permissioned Spaces and Feed Generator services. Added four responsive Vue flow visualizations with animated stages, resize handling, and cleanup. Updated Architecture navigation entries for the new pages. ChangesArchitecture documentation and visualizations
Estimated code review effort: 3 (Moderate) | ~30 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (2)
docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue (2)
159-289: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winExtract the shared responsive-stage boilerplate into one composable. All four components copy-paste the same
containerRef/stageRefrefs, thefit()scale calculation, theResizeObservermount/cleanup pair, and a near-identical<style scoped>block of CSS custom properties and.node/.pill/.tag/.arsvgrules. Under a different mode of production this labor would be pooled from the start; here, four copies of the same forty lines quietly diverge a little more with every future edit.
docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue#L159-L289: extractfit(), theResizeObserversetup/teardown, and the shared CSS custom properties/base classes into a composable (e.g.useResponsiveStage(containerRef, stageRef)) and a shared partial stylesheet; keep the step sequencer local to this file.docs/.vitepress/theme/components/SpaceDataResidencyAnimation.vue#L152-L274: adopt the same composable and shared stylesheet; keep its own step sequencer local.docs/.vitepress/theme/components/FeedgenRequestFlow.vue#L140-L161: adopt the composable forfit()/ResizeObserver; drop the local duplicate.docs/.vitepress/theme/components/FeedgenIndexingFlow.vue#L119-L140: adopt the composable forfit()/ResizeObserver; drop the local duplicate.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue` around lines 159 - 289, Extract the duplicated responsive-stage logic into a shared useResponsiveStage composable and shared stylesheet. In docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue (159-289) and docs/.vitepress/theme/components/SpaceDataResidencyAnimation.vue (152-274), replace local containerRef/stageRef setup, fit(), ResizeObserver lifecycle, and shared base CSS with the shared utilities while keeping each steps sequencer local. In docs/.vitepress/theme/components/FeedgenRequestFlow.vue (140-161) and docs/.vitepress/theme/components/FeedgenIndexingFlow.vue (119-140), adopt the composable and remove their duplicate fit()/ResizeObserver implementations.
1-157: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd
aria-hiddenand respectprefers-reduced-motionon all four decorative animations. Each component renders a purely decorative diagram that restates prose already present in the surrounding markdown, and each runs an unconditional, indefinitely looping animation with no motion-preference check. A screen reader will read through every emoji and pill label with no added information, and a user who has asked the system to reduce motion gets none of the consideration the request implies.
docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue#L1-L157: addaria-hidden="true"to.anim-outer, and wrap thehl/processing/.ar.showanimations in a@media (prefers-reduced-motion: reduce)override that disables or shortens them.docs/.vitepress/theme/components/SpaceDataResidencyAnimation.vue#L1-L151: same two changes.docs/.vitepress/theme/components/FeedgenRequestFlow.vue#L1-L139: addaria-hidden="true"to.anim-outer, and gate the continuous.armarching-ants animation behindprefers-reduced-motion.docs/.vitepress/theme/components/FeedgenIndexingFlow.vue#L1-L118: same two changes.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue` around lines 1 - 157, Make all four decorative animation components aria-hidden and honor reduced-motion preferences: in docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue (lines 1-157), add aria-hidden="true" to .anim-outer and disable or shorten the hl, processing, and .ar.show animations under prefers-reduced-motion: reduce; apply the same changes in docs/.vitepress/theme/components/SpaceDataResidencyAnimation.vue (lines 1-151) and docs/.vitepress/theme/components/FeedgenIndexingFlow.vue (lines 1-118); in docs/.vitepress/theme/components/FeedgenRequestFlow.vue (lines 1-139), add aria-hidden="true" and gate the continuous .ar marching-ants animation behind the reduced-motion media query.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/architecture/feed-generator.md`:
- Around line 62-67: Run the project’s configured markdownlint/table formatter
with fix enabled on the feed-generator architecture document, ensuring the table
in the documented service-auth flow is aligned according to MD060’s visual-width
rules. Do not adjust the pipe spacing manually; verify the resulting markdown
passes the configured lint checks.
In `@docs/architecture/permissioned-spaces.md`:
- Around line 42-65: Update the three fenced URI examples in the
permissioned-spaces documentation to include a text language identifier, then
run the project Prettier formatter to resolve any remaining formatting issues.
---
Nitpick comments:
In `@docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue`:
- Around line 159-289: Extract the duplicated responsive-stage logic into a
shared useResponsiveStage composable and shared stylesheet. In
docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue (159-289) and
docs/.vitepress/theme/components/SpaceDataResidencyAnimation.vue (152-274),
replace local containerRef/stageRef setup, fit(), ResizeObserver lifecycle, and
shared base CSS with the shared utilities while keeping each steps sequencer
local. In docs/.vitepress/theme/components/FeedgenRequestFlow.vue (140-161) and
docs/.vitepress/theme/components/FeedgenIndexingFlow.vue (119-140), adopt the
composable and remove their duplicate fit()/ResizeObserver implementations.
- Around line 1-157: Make all four decorative animation components aria-hidden
and honor reduced-motion preferences: in
docs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vue (lines 1-157),
add aria-hidden="true" to .anim-outer and disable or shorten the hl, processing,
and .ar.show animations under prefers-reduced-motion: reduce; apply the same
changes in docs/.vitepress/theme/components/SpaceDataResidencyAnimation.vue
(lines 1-151) and docs/.vitepress/theme/components/FeedgenIndexingFlow.vue
(lines 1-118); in docs/.vitepress/theme/components/FeedgenRequestFlow.vue (lines
1-139), add aria-hidden="true" and gate the continuous .ar marching-ants
animation behind the reduced-motion media query.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 394f6e36-adce-4204-8da9-11f3c762eced
📒 Files selected for processing (7)
docs/.vitepress/config.tsdocs/.vitepress/theme/components/FeedgenIndexingFlow.vuedocs/.vitepress/theme/components/FeedgenRequestFlow.vuedocs/.vitepress/theme/components/SpaceCredentialFlowAnimation.vuedocs/.vitepress/theme/components/SpaceDataResidencyAnimation.vuedocs/architecture/feed-generator.mddocs/architecture/permissioned-spaces.md
|
@coderabbitai review |
✅ Action performedReview finished.
|
Description
Now that docs CI is working, add a dedicated page explaining how stratos works with permissioned spaces, focuses heavily on the rationale and why we are keeping stratos.
Related Issues
Testing
Type of Change
expected)
Summary by CodeRabbit