Skip to content
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

v0.1.0 #1

Merged
merged 80 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
50c2564
Install, configure and fix rubocop
unabris Sep 24, 2024
c96c715
Remove unnecessary files
unabris Sep 24, 2024
2a5dda5
Install and configure rspec
unabris Sep 24, 2024
d4ffaa9
Add component SVGs
unabris Sep 24, 2024
f51f9fa
Add some components
unabris Sep 25, 2024
bf704e5
Update rspec output
unabris Sep 25, 2024
d057f6d
Update dependencies
unabris Sep 25, 2024
8140abf
Update gemspec
unabris Sep 25, 2024
8d4b996
Update to use sassc-rails
unabris Sep 25, 2024
0d5e3da
Add missing styles
unabris Sep 25, 2024
353b578
Add tests
unabris Sep 25, 2024
6745049
Add simple_form configuration
unabris Sep 25, 2024
fa2d80c
Fix rubocop
unabris Sep 25, 2024
d66c398
Add button and link components
unabris Sep 25, 2024
b8900b8
Move images
unabris Sep 26, 2024
37d0158
Move action bar to component
unabris Sep 26, 2024
0537c07
Fix rubocop
unabris Sep 26, 2024
e18d4c6
Add basic test page
unabris Sep 26, 2024
b95a06f
Dependency update
unabris Sep 26, 2024
0d454b0
Add conditional rendering
unabris Sep 26, 2024
8c41fbc
Remove unnecessary file
unabris Sep 26, 2024
1b5e59e
Update body rendering
unabris Sep 26, 2024
e4c66d5
Remove unnecessary layout
unabris Sep 30, 2024
b564f7f
Add fetch_or_fallback methods
unabris Sep 30, 2024
9723c11
Remove turbo-rails dependency
unabris Sep 30, 2024
95c7e83
Autoload lib directory
unabris Sep 30, 2024
b62a537
Refactor file retrieval
unabris Sep 30, 2024
70dd897
Rename attribute
unabris Sep 30, 2024
5644226
Add dummy content
unabris Sep 30, 2024
1d57c30
Make default js controllers work
unabris Oct 1, 2024
2a1eec1
Add vendor files
unabris Oct 1, 2024
7231042
Add scroll-shadow-element
unabris Oct 1, 2024
b8b3982
Fix tooltip component
unabris Oct 1, 2024
7e3d14c
Fix js controller
unabris Oct 1, 2024
45dbd46
Fix tooltip hover
unabris Oct 1, 2024
db8a6c6
Add basic toggle input
unabris Oct 3, 2024
35455c1
Fix link and button styles
unabris Oct 4, 2024
2369fc5
Move component import to folder
unabris Oct 4, 2024
04a2f9d
Add view_component configuration
unabris Oct 4, 2024
1658508
Add app_info_component
unabris Oct 4, 2024
2b548b7
Fix minor action_bar style
unabris Oct 4, 2024
86ae064
Add CONTRIBUTING file
unabris Oct 4, 2024
7a55517
Rename license file
unabris Oct 4, 2024
86e0219
Fix rubocop
unabris Oct 4, 2024
78becbc
Update doc files
unabris Oct 4, 2024
c8f6e57
Add previews
unabris Oct 4, 2024
71b7763
Add lookbook and basic configuration
unabris Oct 4, 2024
db7a19e
Update rubocop rules
unabris Oct 4, 2024
2a8452a
Add basic lookbook configuration
unabris Oct 4, 2024
1b5ceb5
Add asset preview
unabris Oct 5, 2024
ae42e66
Minor updates
unabris Oct 6, 2024
21f2c02
Add form previews
unabris Oct 6, 2024
f40b333
Update fields
unabris Oct 6, 2024
c7996a5
Fix collection
unabris Oct 7, 2024
2f0b391
Fix new lines
unabris Oct 7, 2024
a148166
Add lookbook docs
unabris Oct 7, 2024
fa483aa
Fix rubocop
unabris Oct 7, 2024
0ae96a5
Update files
unabris Oct 7, 2024
b705cd4
Fix important quote
unabris Oct 7, 2024
45e7431
Fix rubocop test
unabris Oct 7, 2024
cbd5fe9
Update dependencies
unabris Oct 7, 2024
77152f7
Add missing jobs
unabris Oct 7, 2024
2eb2e90
Save
unabris Oct 7, 2024
9cdecb0
Add rubocop todo
unabris Oct 7, 2024
a88cbc1
Fix deprecation
unabris Oct 8, 2024
2506fc0
Move previews folder
unabris Oct 8, 2024
cc51d30
Add tests to ci
unabris Oct 8, 2024
527b204
Test rspec/github formatter
unabris Oct 8, 2024
4d4b01c
Use default format
unabris Oct 8, 2024
f7688ec
Add empty state component preview
unabris Oct 8, 2024
5220bf5
Add toggle preview
unabris Oct 8, 2024
a5ad4ff
Rename beyond_essence to essence
unabris Oct 8, 2024
9059f23
Move asset folder
unabris Oct 9, 2024
2f62c03
Merge pull request #2 from ePages-de/rename
Oct 9, 2024
bf342cb
Fix disabled button styles
unabris Oct 9, 2024
77b972f
Remove unnecessary layout
unabris Oct 9, 2024
167784d
Add locales
unabris Oct 9, 2024
e932261
Move layout placing
unabris Oct 9, 2024
7dc2505
Fix rubocop
unabris Oct 9, 2024
7283e45
Remove wrangle_html function
unabris Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,42 @@ on:
branches: [ main ]

jobs:
scan_ruby:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_GITHUB__COM: ${{ secrets.T42_BUNDLE_GITHUB__COM }}
with:
ruby-version: ruby-3.3.1
bundler-cache: true

- name: Scan for security vulnerabilities in Ruby dependencies
run: bin/brakeman --no-pager

scan_js:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
env:
BUNDLE_GITHUB__COM: ${{ secrets.T42_BUNDLE_GITHUB__COM }}
with:
ruby-version: ruby-3.3.1
bundler-cache: true

- name: Scan for security vulnerabilities in JavaScript dependencies
run: bin/importmap audit

lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -21,4 +57,17 @@ jobs:
- name: Lint code for consistent style
run: bin/rubocop -f github

test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3.3.1
bundler-cache: true

- name: Run tests
run: bundle exec rspec --format RSpec::Github::Formatter
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--require spec_helper
--color
--tty
48 changes: 40 additions & 8 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,40 @@
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }

# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
inherit_from: .rubocop_todo.yml

require:
- rubocop-rails

AllCops:
NewCops: enable
TargetRubyVersion: 3.3
SuggestExtensions: false
Exclude:
- '**/bin/*'
- 'vendor/bundle/**/*'

Style/Documentation:
Enabled: false

Lint/MissingSuper:
Exclude:
- 'app/components/**/*'

Naming/VariableNumber:
EnforcedStyle: snake_case

Metrics/MethodLength:
Enabled: false

Metrics/BlockLength:
Enabled: false

Style/SymbolArray:
EnforcedStyle: brackets

Style/WordArray:
EnforcedStyle: brackets

Metrics/ParameterLists:
Exclude:
- 'app/components/**/*'
- 'site/app/previews/**/*'
- 'spec/components/previews/**/*'
23 changes: 23 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-10-07 13:14:46 UTC using RuboCop version 1.66.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 7
Rails/OutputSafety:
Exclude:
- 'spec/components/**/*'
- 'site/app/previews/**/*'

# Offense count: 12
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Exclude:
- 'spec/components/**/*'
- 'site/app/previews/**/*'
- 'spec/support/**/*'
56 changes: 56 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Contributing to Essence

We love pull requests from everyone. Here are some ways you can contribute:

* By using alpha, beta, and prerelease versions
* By reporting bugs
* By suggesting new features
* By writing or editing documentation
* By writing specifications
* By writing code (**no patch is too small**: fix typos, add comments, etc.)
* By refactoring code
* By closing [issues][]
* By reviewing patches

## Submitting an Issue

* We use the [GitHub issue tracker][issues] to track bugs and features.
* Before submitting a bug report or feature request, check to ensure it hasn't
already been submitted.
* When submitting a bug report, please include a [Gist][gist] with a stack trace
and any details necessary to reproduce the bug, including your gem version,
Ruby version, and operating system. Ideally, a bug report should include a
pull request with failing specs.

## Cleaning up issues

* Issues with no response from the submitter will be closed after 30 days.
* Issues will be closed once they're assumed to be fixed or answered. If the
maintainer is wrong, it can be opened again.
* If your issue is closed by mistake, please understand and explain the issue.
We will happily reopen the issue.

## Submitting a Pull Request

1. [Fork][fork] the [official repository][repo].
1. [Create a topic branch][branch].
1. Implement your feature or bug fix.
1. Add, commit, and push your changes.
1. [Submit a pull request][pr].

### Notes

* Please add tests if you changed code. Contributions without tests won't be
accepted.
* If you're unsure how to add tests, submit a PR and leave a comment asking for
help. We love to assist!
* Please don't update the Gem version.

Inspired by https://github.com/thoughtbot/factory_bot/blob/main/CONTRIBUTING.md

[issues]: https://github.com/ePages-de/essence/issues
[gist]: https://gist.github.com/
[repo]: https://github.com/ePages-de/essence/tree/main
[fork]: https://help.github.com/articles/fork-a-repo/
[branch]: https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/
[pr]: https://help.github.com/articles/using-pull-requests/
33 changes: 25 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
source "https://rubygems.org"
# frozen_string_literal: true

# Specify your gem's dependencies in beyond_essence.gemspec.
gemspec
source 'https://rubygems.org'

gem "puma"
# Specify your gem's dependencies in essence.gemspec.
gemspec

gem "sqlite3"
gem 'puma'

gem "sprockets-rails"
gem 'sqlite3'

# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
gem "rubocop-rails-omakase", require: false
gem 'sprockets-rails'

# Start debugger with binding.b [https://github.com/ruby/debug]
# gem "debug", ">= 1.0.0"

gem 'lookbook'

gem 'rubocop', require: false
gem 'rubocop-rails', require: false

group :development, :test do
gem 'rspec-rails'
end

group :test do
gem 'brakeman'

gem 'capybara'
gem 'selenium-webdriver'

gem 'rspec-github', require: false
end
Loading