Skip to content

Feat/use tailwind #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 26, 2025
Merged

Feat/use tailwind #31

merged 9 commits into from
May 26, 2025

Conversation

abolkog
Copy link
Owner

@abolkog abolkog commented May 26, 2025

  • Use tailwindcss instead of Bootstrap
  • Simplify the console and remove unused components
  • add share code

abolkog added 8 commits May 22, 2025 14:32
Update the project to use Tailwind CSS for styling instead of bootstrap.
Simply the Console component by removing the JSONView component.
- Remove JSONView component
- Remove unused Header component
- Remove unused types
- Remove ContextMenu component and its related files
- Remove ActionButton component and its related files
- Remove Clickable component and its related files
- Remove unused code from Console component
- Remove unused code from AppContext
- Remove unused code from Reducer
@abolkog abolkog force-pushed the feat/use-tailwind branch from 165141b to d639496 Compare May 26, 2025 05:12
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
69.84% (-0.34% 🔻)
220/315
🟡 Branches
73.08% (+18.08% 🔼)
38/52
🟡 Functions
67.12% (+2.57% 🔼)
49/73
🟡 Lines
69.37% (+0.17% 🔼)
188/271
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / ActionBar.tsx
92.86% 71.43% 90% 92.11%
🟢
... / index.tsx
100% 100% 0% 100%
🟢
... / Spinner.tsx
100% 100% 100% 100%
🟢
... / index.tsx
100% 100% 100% 100%
🟢
... / History.tsx
95.65% 100% 85.71% 94.74%
🟢
... / index.tsx
100% 100% 100% 100%
🟢
... / ShareCode.tsx
100% 100% 100% 100%
🟢
... / Title.tsx
100% 100% 100% 100%
🔴
... / index.tsx
0% 100% 0% 0%
🔴
... / RootLayout.tsx
0% 100% 0% 0%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / AppContext.tsx
53.33% (-4.56% 🔻)
100% (+33.33% 🔼)
0% (-25% 🔻)
58.33% (-4.17% 🔻)
🔴
... / App.tsx
0%
0% (-100% 🔻)
0% 0%

Test suite run success

44 tests passing in 9 suites.

Report generated by 🧪jest coverage report action from faf383b

@abolkog abolkog requested a review from Copilot May 26, 2025 07:24
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces Bootstrap with Tailwind/HeadlessUI, removes unused components (ContextMenu, Clickable, ActionButton), simplifies the Console component, and adds a ShareCode feature with URL-based code loading.

  • Swap Bootstrap/CSS frameworks: integrate Tailwind, configure PostCSS, update HTML and Webpack
  • Refactor UI components (App, About, Console, CodeEditor) to use Tailwind/HeadlessUI, remove legacy code
  • Introduce ShareCode support and URL parameter loading; update package dependencies and README

Reviewed Changes

Copilot reviewed 65 out of 65 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/components/ContextMenu/* Removed ContextMenu component and tests
src/components/Console/* Refactored rendering logic and styling to Tailwind; updated tests
src/components/CodeEditor/CodeEditor.tsx Fixed editor theme to 'vs-dark', removed dynamic theming effect
src/components/App/App.tsx Replaced layout with react-split/Tailwind, removed ContextMenu, added ShareCode & URL parsing
src/components/About/* Swapped Modal for HeadlessUI Dialog; updated JSX and tests
public/index.html Dropped Bootstrap/Fork Ribbon, set up Inter font and updated body classes
postcss.config.mjs, package.json, webpack.common.js Tailwind integration and new dependencies
README.md Updated sample image path and library list
eslint.config.mjs Added TypeScript lint rules
Comments suppressed due to low confidence (1)

src/components/App/App.tsx:9

  • No tests cover the newly added ShareCode component; consider adding unit tests to verify its rendering, URL-sharing behavior, and interactions.
import ShareCode from 'components/ShareCode';

@abolkog abolkog merged commit d230cab into master May 26, 2025
3 checks passed
@abolkog abolkog deleted the feat/use-tailwind branch May 26, 2025 07:27
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.

1 participant