Skip to content

[WEB-3985] feat: common postcss config and local fonts across all plane applications#6998

Merged
sriramveeraghanta merged 3 commits intopreviewfrom
feat-local-fonts
May 9, 2025
Merged

[WEB-3985] feat: common postcss config and local fonts across all plane applications#6998
sriramveeraghanta merged 3 commits intopreviewfrom
feat-local-fonts

Conversation

@prateekshourya29
Copy link
Member

@prateekshourya29 prateekshourya29 commented Apr 30, 2025

Description

This PR ensures that all Plane application uses common postcss configs and local fonts.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Improvement (change that would cause existing functionality to not work as expected)
  • Code refactoring
  • Performance improvements
  • Documentation update

Screenshots and Media (if applicable)

Test Scenarios

References

Summary by CodeRabbit

  • New Features

    • Added direct import support for font styles via a new export in the UI package.
    • Included a new font weight (Inter 600) for enhanced typography options.
  • Chores

    • Updated font imports across multiple apps to use a unified package-based approach.
    • Added and reordered dependencies to ensure consistent styling and functionality.
    • Simplified PostCSS configuration by centralizing it across projects.
    • Introduced a new path alias for styles in the admin app.
    • Removed redundant or outdated global stylesheets for improved maintainability.
    • Refined stylesheet import paths and comments for clarity and consistency.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 30, 2025

## Walkthrough

This set of changes standardizes font imports across multiple projects by centralizing font-face declarations in a shared package. It updates CSS and TypeScript configurations to use new path aliases and package exports, removes redundant font imports, and simplifies PostCSS configurations by re-exporting from a common external config. Several package.json files are updated to include or reorder dependencies, and a global CSS file is deleted in favor of the new shared font import. Additionally, the font-face CSS is updated with new path formats and an added font weight.

## Changes

| File(s)                                                                                   | Change Summary |
|-------------------------------------------------------------------------------------------|----------------|
| admin/app/layout.tsx                                                                      | Updated import comments and changed stylesheet import from relative to absolute path. Removed unused comments. |
| admin/package.json, space/package.json                                                    | Added `@plane/propel` to dependencies; reordered or reinserted `@plane/services` in admin. |
| admin/postcss.config.js, packages/propel/postcss.config.js, web/postcss.config.js         | Simplified PostCSS config by re-exporting from `@plane/tailwind-config/postcss.config.js` and added ESLint directive. |
| admin/styles/globals.css, space/styles/globals.css, web/styles/globals.css                | Replaced Google Fonts or URL imports with `@plane/propel/styles/fonts`; reformatted shadow variables in admin. |
| admin/tsconfig.json                                                                       | Added new path alias `"@/styles/*"` for styles directory. |
| packages/propel/package.json                                                              | Added export entry for `"./styles/fonts"` pointing to the font CSS file. |
| packages/propel/src/styles/fonts/index.css                                                | Changed font `src` paths to use `./`; added `Inter` font-face for weight 600. |
| packages/propel/src/globals.css                                                           | Deleted file containing Tailwind base, components, and utility imports, and some base styles. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant App as Application (admin/space/web)
    participant Propel as @plane/propel
    participant Fonts as @plane/propel/styles/fonts

    App->>Propel: Import font styles via package dependency
    Propel->>Fonts: Expose centralized font-face CSS
    App->>Fonts: Apply font-face declarations globally

Suggested labels

🧹chore, 🌟improvement

Suggested reviewers

  • sriramveeraghanta
  • vamsikrishnamathala

Poem

Hopping through the fields of code,
Fonts now travel a central road.
PostCSS configs, tidy and neat,
Path aliases help styles meet.
With every import, rabbits cheer—
Unified styles, far and near!
🐇✨


<!-- walkthrough_end -->

<!-- announcements_start -->

> [!TIP]
> <details>
> <summary>⚡️ Faster reviews with caching</summary>
> 
> - CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure `Review - Disable Cache` at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the `Data Retention` setting under your Organization Settings.
> 
> Enjoy the performance boost—your workflow just got faster.
> 
> </details>

<!-- announcements_end -->

---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 9e7ae9eef7ecee07e9b87bbd90bd99e9b5f0de4f and 560582ab5fe4fbae0149fc6065e019e606a186a5.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `space/package.json` (1 hunks)

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary>

* space/package.json

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAbQB1AFEAITAAZgBOAA4AVgBdSAAzEmouJlZ8LG58RFwGRGQmDEL4InQMei98BjRfQsrcZDQGChqhnx4vTA80bm4veB7xSsRoyAB3NGQHAWZ1Gno5MNgPbERKHioaEgBrRFh8bBc0ACYM9GRbSAxHAQuANgy2Q0MBOkGY2iwDFgmFIKAwuFGtGwDCi8CwuAQnzsqExpww8BaS3glX4hWsNVwAGEAMo0hTNVpPagkjBDDrHU7nMmQLo9PoDIYjMboCZWKbkdBzBbElYguCobDcWjUDyoJYkIj4CjwABeUS27RQzF4+CkbARABp4bRFiyMG1MdQUKFmIpCfBpJASAAPJDiB1FbAYMSs3rqeTo9AbNDyJ2u2PoQrFMSMJ7+BGQP4wiQkigggBy+Cz2DaLR90mt5HWRRKuCelYUSj8JEKwwIOod1u4lH6FAhIbVJtG5vYiGt2sgtG6jnYLNJSpVNCG/nhDC82CUtHlYKUiBG8G4yyw069GHwoVNuebiB7DA9DCnJFw2i8QwEj1CeON8xIFpfx78Hwy4Bm0+5kM4JLjt8k6nsg6hrhuN4jCQZD3BeyCTv4xQZqiyAEC2UwHCgDTBIgO4eFqvQ8t+Xy4sWtSYCqFC2vq9i4LICyBk0LREMyx7svQ/SZmcaBwgRaENgyiD+mQDDyMMowNJy1gSh48zUH2zAaEY+jGOAUBkPQ+DkmgeCEKQ5BXFE5T/lwvD8MIojiFIMjyEwShUKo6haDoekmFACrweyOAEMQZDKMRtnsFwVA1g4TguFm7mKMo3maNouhgIY+mmAYaC0HsGAAPSzNwxVT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FrdDabbQFRayH+DQByCyjZZ1dldwAVaVZVeiVoDlaMj7aAA -->

<!-- internal state end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=makeplane/plane&utm_content=6998):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Generate unit testing code for this file.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

@makeplane
Copy link

makeplane bot commented Apr 30, 2025

Pull Request Linked with Plane Work Items

Comment Automatically Generated by Plane

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
packages/propel/postcss.config.js (1)

1-2: Simplify PostCSS configuration via shared export
Re-exporting the PostCSS config from @plane/tailwind-config ensures consistency across all Plane packages. Consider migrating this CommonJS pattern to ESM (import/export) to remove the ESLint disable comment and align with modern module standards.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5a1df8b and 57802b5.

⛔ Files ignored due to path filters (8)
  • packages/propel/src/styles/fonts/Inter/inter-v13-latin-200.woff2 is excluded by !**/*.woff2
  • packages/propel/src/styles/fonts/Inter/inter-v13-latin-300.woff2 is excluded by !**/*.woff2
  • packages/propel/src/styles/fonts/Inter/inter-v13-latin-500.woff2 is excluded by !**/*.woff2
  • packages/propel/src/styles/fonts/Inter/inter-v13-latin-600.woff2 is excluded by !**/*.woff2
  • packages/propel/src/styles/fonts/Inter/inter-v13-latin-700.woff2 is excluded by !**/*.woff2
  • packages/propel/src/styles/fonts/Inter/inter-v13-latin-800.woff2 is excluded by !**/*.woff2
  • packages/propel/src/styles/fonts/Inter/inter-v13-latin-regular.woff2 is excluded by !**/*.woff2
  • packages/propel/src/styles/fonts/Material-Symbols-Rounded/material-symbols-rounded-v168-latin-regular.woff2 is excluded by !**/*.woff2
📒 Files selected for processing (14)
  • admin/app/layout.tsx (1 hunks)
  • admin/package.json (1 hunks)
  • admin/postcss.config.js (1 hunks)
  • admin/styles/globals.css (2 hunks)
  • admin/tsconfig.json (1 hunks)
  • packages/propel/package.json (1 hunks)
  • packages/propel/postcss.config.js (1 hunks)
  • packages/propel/src/globals.css (0 hunks)
  • packages/propel/src/styles/fonts/main.css (7 hunks)
  • packages/propel/src/styles/index.css (1 hunks)
  • space/package.json (1 hunks)
  • space/styles/globals.css (1 hunks)
  • web/postcss.config.js (1 hunks)
  • web/styles/globals.css (1 hunks)
💤 Files with no reviewable changes (1)
  • packages/propel/src/globals.css
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (14)
packages/propel/package.json (1)

12-13: Exports Mapping Improved
The new ./charts/* and ./styles exports expose chart components and centralized styles directly from @plane/propel. Ensure the target files (src/charts/*/index.ts and src/styles/index.css) are present and included in the published package.

space/package.json (1)

25-25: Add @plane/propel as a dependency
Introducing @plane/propel into space aligns with the centralized styling and font management strategy. Remember to update your lockfile and verify that using a wildcard * version fits your release workflow.

packages/propel/src/styles/index.css (1)

1-1: Centralize font-face declarations
Importing ./fonts/main.css consolidates all font-face rules into the shared style bundle. Confirm the relative path is accurate and that PostCSS or your build pipeline correctly processes CSS imports.

admin/tsconfig.json (1)

9-10: Verify new TypeScript path aliases
Adding @/plane-admin/* and @/styles/* simplifies imports for shared components and global styles. Please rebuild or reload your TS server to ensure these aliases resolve correctly, and update any import statements accordingly.

space/styles/globals.css (1)

1-1: Centralize font and style imports Consolidating your font imports via @import "@plane/propel/styles"; correctly replaces multiple direct Google Fonts imports and aligns with the shared styling approach. Ensure the @plane/propel dependency is declared and installed in the space project’s package.json.

admin/app/layout.tsx (2)

6-6: Clarify import grouping comment Updating the comment to // plane imports improves the clarity of grouping for Plane-specific modules.


15-15: Use absolute alias for global stylesheet Switching to import "@/styles/globals.css"; matches your new TypeScript path alias. Please confirm that the paths setting in admin/tsconfig.json includes an entry like "@/styles/*": ["styles/*"] so this resolves correctly.

web/styles/globals.css (1)

1-1: Centralize font imports Replacing the URL-based font import with @import "@plane/propel/styles"; streamlines dependency management and ensures consistent styling across Plane apps. Verify that the @plane/propel dependency is declared in the Web project’s package.json.

admin/package.json (1)

20-21: Add shared styling and services dependencies Including @plane/propel and re-inserting @plane/services is required for the new shared styles and utilities. Please ensure this is reflected in your lockfile (package-lock.json/yarn.lock) and that the correct versions are installed.

admin/styles/globals.css (2)

1-1: Centralize font imports The new import @import "@plane/propel/styles"; appropriately replaces individual Google Fonts imports with the shared style entry.


62-88: Reformat shadow custom properties Splitting the shadow variable declarations across multiple lines enhances readability without changing their values. Confirm that this formatting satisfies your project’s CSS linting/formatting rules.

packages/propel/src/styles/fonts/main.css (1)

7-7: Path updates and font weight addition look good.

The changes properly update the font file paths to use relative paths with the format ./Inter/... instead of the previous fonts/Inter/.... This is consistent with the centralization of font resources in the @plane/propel package.

The addition of the Inter font with weight 600 fills a gap in the font weight range, providing more flexibility for typography across applications.

Also applies to: 16-16, 25-25, 34-35, 37-43, 52-52, 61-61, 70-70

web/postcss.config.js (1)

1-2: Good standardization of PostCSS config.

The configuration now properly re-exports the PostCSS config from the central @plane/tailwind-config package, which helps maintain consistency across all Plane applications. The ESLint disable comment is appropriate since requires are not typically allowed in TypeScript files.

admin/postcss.config.js (1)

1-2: Good standardization of PostCSS config.

This matches the changes in web/postcss.config.js, properly centralizing the PostCSS configuration by importing from the shared @plane/tailwind-config package. This standardization helps ensure consistent styling behavior across all applications.

@sriramveeraghanta sriramveeraghanta merged commit 30db595 into preview May 9, 2025
5 of 6 checks passed
@sriramveeraghanta sriramveeraghanta deleted the feat-local-fonts branch May 9, 2025 08:56
al-jaber-nishad pushed a commit to Xinotrix-Home/task-and-meeting-management that referenced this pull request May 27, 2025
…ne applications (makeplane#6998)

* [WEB-3985] feat: common postcss config and local fonts across all plane applications

* improvement: split fonts into a separate exports
lifeiscontent pushed a commit that referenced this pull request Aug 18, 2025
…ne applications (#6998)

* [WEB-3985] feat: common postcss config and local fonts across all plane applications

* improvement: split fonts into a separate exports
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.

2 participants