Commit Graph

171 Commits

Author SHA1 Message Date
a988c49ae0 chore: update docker tags formatting
- Change Docker tags configuration to be multiline
- Improve clarity and maintainability of the workflow

This change enhances the readability of the tags in the
Docker workflow, facilitating easier updates and understanding
of the tagging process.
2025-01-22 09:07:52 +08:00
1ab860c739 chore: fix output redirection in docker workflow
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
Build and Publish Docker Image / docker (push) Waiting to run
- Corrected syntax errors in output redirection
- Ensured that LATEST_TAG and VERSION_TAG are set correctly in the GitHub Actions output

These changes fix an issue where the command was improperly formatted,
which could lead to unexpected behavior during the workflow execution.
2025-01-22 01:05:13 +08:00
24cbf13a26 feat: enhance Docker workflow version tagging
- Store latest and version tags in variables
- Clean up output by using variables for tags

This update improves the clarity of the tagging process in the
Docker workflow configuration. The tags are now stored in
variables for better manageability and consistency in
environment output.
2025-01-22 01:02:22 +08:00
5bb91f16fd fix: correct LATEST_TAG output variable
- Remove extraneous dollar sign from LATEST_TAG
- Ensure correct evaluation during workflow execution

This fix resolves an issue that could cause the incorrect
setting of the LATEST_TAG environment variable in the
GitHub Actions workflow, ensuring proper deployment tagging.
2025-01-22 00:58:37 +08:00
04595824e6 feat: configure docker image prefix
Update Docker workflow to include image prefix in version and latest tag

Change the Docker image prefix in the GitHub workflow to include the registry, username and image name.
Update the environment variables to use the new format for the image prefix.
2025-01-22 00:56:58 +08:00
2b4275055c feat: update fetch-depth in docker workflow
- Update fetch-depth in Docker workflow configuration
- No additional dependencies added

This change updates the fetch-depth setting in the GitHub Actions Docker workflow. This ensures that we get the full Git history for the code checkout. There are no additional dependencies added to this change.
2025-01-22 00:51:55 +08:00
0f9b4efc80 chore: add checkout step in docker workflow
- Include checkout code step using actions/checkout@v3
- Set fetch-depth to 0 to retrieve the full git history

This change ensures that the workflow has access to the complete
commit history, which may be necessary for certain operations
within the Docker build process.
2025-01-22 00:51:08 +08:00
ec2c92e6c9 chore: update Docker workflow to use secrets
- Change hardcoded Docker Hub username to use secrets
- Update workflow to securely reference DockerHub credentials

This update enhances the security of the GitHub Actions workflow
by using secrets instead of exposing sensitive information
in the codebase. This ensures that the Docker Hub username is
kept private and reduces the risk of accidental exposure.
2025-01-22 00:47:33 +08:00
54133b2f87 feat: add GitHub Actions workflow for building and publishing Docker image
- Add Docker login step
- Set up QEMU
- Set up Docker Buildx
- Build and push Docker image

This feature allows for automated building and publishing of Docker images to Docker Hub. It includes proper setup of QEMU and Docker Buildx for cross-platform compatibility and efficient image building.
2025-01-22 00:45:11 +08:00
c11d10c86a feat: update city display and database schema
- Change city name display to localized name in both index and show views
- Modify schema to use bigint for certain foreign keys
- Correct country codes in seeds for accurate data representation

These changes improve the handling of city names, ensuring they are displayed in the appropriate localized format and ensuring well-typed foreign key relationships in the schema.
2025-01-21 21:29:26 +08:00
ebaf7a3f34 feat: add countries and regions management
- Implement Country and Region models
- Establish relationships between City, Country, and Region
- Update ActiveAdmin setup for managing countries and regions
- Add localization support for cities and countries in multiple languages
- Create necessary migrations to support the new schema

This update allows for better categorization of cities under their respective countries and regions, enhancing geographical structure and support for multilingual features.
2025-01-21 18:27:26 +08:00
dependabot[bot]
e2e5e38a7d
chore(deps-dev): bump selenium-webdriver from 4.27.0 to 4.28.0
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.27.0 to 4.28.0.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/compare/selenium-4.27.0...selenium-4.28.0)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-21 06:36:52 +00:00
ac199af963 style: standardize quoting for pg gem
- Changed single quotes to double quotes for the 'pg' gem in the production group of the Gemfile.

This change enhances consistency in the Gemfile by standardizing the quoting style.
2025-01-21 09:11:00 +08:00
5fd9573cf2 chore: add pg gem for production environment
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
- Introduced the 'pg' gem for PostgreSQL support in the production
  environment.
- Updated Gemfile to include it in the production group.
- Corresponding update in Gemfile.lock to ensure version 1.5.9 is
  used.

This change prepares the application to use PostgreSQL as the
primary database in production, which is essential for running
production-grade applications effectively.
2025-01-20 18:47:06 +08:00
34c05232ee chore: clean up code style and unused fixtures
- Standardize string quotes in various files for consistency.
- Remove commented-out tests from cities and weather_arts controllers to improve readability.
- Clean up admin_users and weather_arts fixture files by commenting out unused entries instead of removing them.

These changes are aimed at enhancing code readability and maintainability, ensuring that code adheres to style guidelines without removing useful comments for future reference.
2025-01-20 18:08:55 +08:00
d570f43f95 feat: add font styling and enhance city views
- Import Playfair Display and Raleway fonts for better typography
- Add a method to `City` model for fetching the latest weather art
- Revamp city index and show pages for improved layout and usability
- Update styles in the layout and main pages to enhance user experience

These changes promote visual consistency and enhance user interaction within the platform, providing a more engaging experience.
2025-01-20 18:02:28 +08:00
a533390356 feat: add weather art records for Guangzhou
- Update weather date for existing record to 5 days ago
- Add new weather art record for 2 days ago with relevant details
- Include image attachment for the new weather art

This commit adds a second weather art record for Guangzhou reflecting the
weather conditions from 2 days ago, along with relevant data including
humidity, wind speed, and an updated visual representation.
2025-01-20 17:37:24 +08:00
38884bdaa7 chore: cleanup IDE configuration files
- Remove .idea directory and its contents
- Add .idea to .gitignore to prevent tracking

This commit removes the IDE configuration files which are not
necessary for the repository. This keeps the repository clean and
prevents potential conflicts for different developers using different
IDEs. The .idea directory is now also ignored in the .gitignore
file to prevent future commits of these files.
2025-01-20 13:27:29 +08:00
b9801aeb6b feat: enhance cities and weather arts display
- Update CitiesController to list all cities ordered by name
- Add latest and featured weather arts in HomeController
- Display city details, including weather art history, in Cities#show
- Expand layout with a footer and enhanced navigation
- Integrate new daisyUI plugin for improved styling

These changes improve user navigation and visual presentation on both
city and weather art pages, making it easier to browse and view
information. The introduction of daisyUI also modernizes the UI with
consistent design elements.
2025-01-19 22:08:05 +08:00
e5743a5e3f feat: add friendly_id for cities and weather arts
- Integrate 'friendly_id' gem for sluggable functionality in City model
- Create ActiveAdmin resources for managing cities and weather arts
- Implement controller logic for cities
- Add database migrations for cities and weather arts creation
- Seed database with sample data for testing
- Create initial test cases for controllers and models

This commit enhances the application's URL handling by allowing friendly URLs for cities and weather arts. The addition of ActiveAdmin resources facilitates easier management through a web interface.
2025-01-19 12:21:00 +08:00
8517905b68 init with rails8 + active-admin 2025-01-19 01:13:59 +08:00